tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

The root partition inside a slice.



Hello.
Tell me please.
Why now NetBSD can has the root partition only on beginning of a slice?
For instance: 
"boot hd0e:netbsd" can't find the root if the hd0e is inside a slice and
hasn't a dos partition twin.
For effectively and flexibility it's not handy.
Perfunctory the code inspection has given only this, but
I am sure it is not really reason.
Maybe it is a issue inside the wedges' code or it is must be so.

init_main.c
static void
rootconf_handle_wedges(void)
{
.......
        dev = dkwedge_find_partition(dev, startblk, nblks);
        if (dev != NULL) {
                booted_device = dev;
                booted_partition = 0;
        }
.......
}

P.S.
I don't mean the bootloader.
Bootloader must be on the first(beginning of a slice) partition.

Thank you.
Ilia.


Home | Main Index | Thread Index | Old Index