-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
mkinitcpio: fix mounting root with mountpoint=legacy #54391
base: master
Are you sure you want to change the base?
Conversation
I'm not sure that this is the right fix. We know what the root is and where it should be mounted, because it was provided on the command line. It can be mounted without After the root is mounted at
|
Thinking about this some more, I hate the entire loop and think it should go away. None of this belongs in this hook, which is not generally correct in the first place. The standard practice in the initramfs is to mount only the root filesystem. The default mkinitcpio root mount looks to command-line arguments like The
I think the right behavior here is to drop the loop entirely, and mount only the root (omitting the The final question, then, is how to handle automatic mounts of |
I reverted the first commit and now just handle rootfs when fstab is not yet available. Rootfs is mounted as expected. I don't know how to test child mounts. Should work though, as |
See #54402, where I tried to clean up the process considerably. |
I looked. Sorry, I can't really follow what you did there. You wrote you don't like the loop but then replace the easy-readable I tried to "test" your implementation in a shell and got this: zfs list -H -o fs,mountpoint,canmount -r -t filesystem z2/os/void
bad property list: invalid property 'fs'
usage: [...] As I don't understand your implementation and it doesn't seem to work, I decided to fix mine. Also, in my opinion, for something that is not easily tested, fewer changes is better. But I don't want to start an argument, I only care that it works on my machine without needing to keep yet another package separate from the default :) So if you make yours work, I'll be equally happy as with this one (which I tested for my use-case) |
${node}
was/new_root
(logged out withmsg
) - there's nothing in that directory at this point.findmnt
finds nothing (in absence of afstab
) so boot stops.Copying fstab to the ramfs and removing
${node}
from path fixes this.Testing the changes
Local build testing