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

Re: initramfs tools



On May 6 2007 07:25, Nigel Kukard wrote:
>
>Hi Guys,
>
>For those that compile in an initramfs which is responsible for
>finding & mounting the root fs, I've written a package BootUtils
>which contains a utility called switchroot. Switchroot lends some
>ideas and code from nash and adds libblkid in order to detect the
>filesystem and mount the root device.
>
>It supports automatic detection of FS's labeled "root", override via
>kernel cmdline option root=<device> or root=LABEL:xxx.
>
>Also support kernel cmdline option emergency, if --enable-emergency
>is passed to switchroot. This will drop to ./emergency (possibly a
>shell) if something goes horribly wrong when trying to find & mount
>the root device.

That sounds very much like you just reinvented the wheel, since I can
do that already with opensuse's initrds. Perhaps not only that.
Everyone who packages GNU mount (which does in fact use blkid) has
the ability to mount by label, and Fedora is another one which can do
that. Plus, everyone should be supporting -b to start the emergency
shell. As far as switchroot is concerned, klibc provides run-init.


Jan
-- 
-
To unsubscribe from this list: send the line "unsubscribe kernel-packagers" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Site Home]     [Linux IBM ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]


  Powered by Linux