-
Notifications
You must be signed in to change notification settings - Fork 333
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
mkosi-initrd: honor x-initrd.attach options in crypttab #3136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code between fstab and crypttab is largely the same and should go into a shared function.
So systemd already parses /sysroot/etc/fstab from inside the initrd, so I'm wondering if the /etc/fstab changes are really necessary? |
That is a good point. Simple test:
|
So without /etc/fstab in the initrd /root and /var are still mounted in /sysroot which is what you want? Or am I misunderstanding? |
4c24878
to
a70dc3f
Compare
No, you understood correctly, it's not necessary here. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM code-wise
a70dc3f
to
75ddd3b
Compare
Entries in
/etc/crypttab
with thex-initrd.attach
option are intended to be set up in the initrd.