Re: [RFC PATCH] Move actually mounting the root filesystem into its own series of hooks.

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

 



Hi all

Warren Togami wrote:
[snip]
root=dhcp is a kernel cmdline given by the bootloader (syslinux, grub, pxelinux, etc.) which directs the initrd during runtime to bring up eth0 and do DHCP. It then mounts the rootfs depending on options given by the DHCP server. Fedora 10 mkinitrd implements the following two types of mounts with root=dhcp.

        option root-path "172.31.100.254:/path/to/target_root";
        option root-path "nbd:172.31.100.254:2000:squashfs:ro";

An existing RFC specifies syntax for iscsi that could be implemented as well. (Although iscsi is problematic because some types require authentication.) Arbitrary types of root=dhcp rootfs mounts can be implemented with hooks made possible with your patch.

A question: Why not use root=/dev/nfs and the other options according to kernel doc, like nfsroot=... and ip=autoconf? For me that is much more readable.

Maybe even leave nfsroot-mounting to the kernel as long as that features remains in the tree.

I guess nbd and iscsi could go the same way like root=/dev/iscsi ...

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

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux