-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernels with builtin ZFS support lack a way to mount a ZFS dataset as a rootfs without an initramfs #872
Comments
I'm not sure I exactly understand the issue here. |
On Solaris, GRUB provides the kernel with information on the root pool, which is used to mount the root filesystem: https://github.com/dajhorn/pkg-zfs/wiki/Dual-booting-Linux-and-Solaris-with-ZFS-aware-GRUB-0.97 On Linux, there is no equivalent. Currently, people circumvent this by using an initramfs image. This made sense when ZFS existed solely as an external module, but it is a hack when ZFS is built into the kernel. It would be nice to have a way to boot without an initramfs when ZFS support is built into the kernel. This is probably a low priority for all contributors, but I thought it would be worthwhile to have an issue for it so that people know that we are aware of it |
spa_import_rootpool() in ./module/zfs/spa.c could be used to enable this to work. We just need to provide GRUB with a way to pass the requisite information to the kernel module and have the kernel module run this routine when it sees it during initialization. |
Is there anyone working on this? I would love to see this feature! |
@ryao Is this still an issue with latest grub (which have quite extensive zfs support)? |
@FransUrbo It is an issue because the module makes upcalls to userspace. |
I am also interested in this feature as well. |
+1 |
It's 2017 and we absolutely need this. |
initramfs less boot zfs root feature should the advantage against btrfs, we need this feautre |
I'm closing this in favor of #4300, which has more notes. |
…object_agent/wasm-bindgen-futures-0.4.35 Bump wasm-bindgen-futures from 0.4.34 to 0.4.35 in /cmd/zfs_object_agent
Currently, the only way to do this is with an initramfs. It would be nice to support mounting the rootfs from a ZFS dataset without an initramfs when ZFS is built into the kernel binary.
The text was updated successfully, but these errors were encountered: