-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor SYSV init, initramfs and dracut (Phase 3) #3560
Conversation
42b0156
to
5aa94f1
Compare
8ec6331
to
6172672
Compare
ac4d557
to
eec3394
Compare
* Support 'zfs:<rootfs>' import and mounting. This was for some reason removed in eda3d4e. * Support booting from snapshots. * Support mounting recursive filesystems. * Support mounting of additional filesystems. * Support mounting nativly encrypted filesystems. Signed-off-by: Turbo Fredriksson <[email protected]>
7f34fee
to
c07cfb2
Compare
@Vaelatern With your fix (which I've just merged and force-pushed), does it work as expected? Do you want to add your Signed-off-by? |
@FransUrbo The patch now looks right. Yes, it works on one of my machines. I'm happy to add my Signed-off-by. I assume you rebase and append it to the end of the commits? |
No, I merged it to the first commit (Refactoring of common code between the SYSV init, initramfs and dracut scripts.). It made no sense having it in it's separate commit. |
I was referring to my Signed-off-by, I'm not sure if I add it or if you. |
Ah, that one. No, that have not been added yet. It's in here, if @behlendorf ever feels like this might be important or relevant to look at. |
Why is this in so many different commits? |
someone mind sharing their kernel command line? |
here's the output, it also didn't try to import the pool https://gist.github.com/prometheanfire/5dc33fcc55579bc6fd56 |
@prometheanfire, is "AUTO" your pool name? |
nope, I'll try changing that then :D |
and it didn't work with zfs:mthode-work (name of the pool) the drive is decrypted then the mount is called and fails. within the recovery shell I can import the pool and all still. |
it seems to me that the mount command doesn't understand zfs:foo or something... |
The feature is specifically |
|
here's a portion of the rdsoreport.txt kernel cmdline
and the systemctl status
|
seems to be trying |
tried manual mounting in the initram with mount -t zfs, failed because couldn't find the dataset, imported dataset with -N and tried again, failed because dataset was not marked as legacymount, which I don't think I should change. |
@prometheanfire, are you sure you are using zfs with the above patches actually applied? At no point should it be trying to mount "zfs:rpool" but rather importing "rpool" |
I'm sure... here is |
@ryao it includes the commits from "Phase 2" as well. Only the last three is relevant to the Dracut changes. @prometheanfire |
@FransUrbo if you have time on I'm on the freenode channel as prometheanfire, we can debug if you want. |
Where is the status of this? Were the systemd issues worked out yet? |
According to the other thread, the systemd issues are elsewhere, and not related to this patch, #3605. Is this likely to be merged or shall I adopt the last three commits, rewrite them to not require any of the preceding commits, and PR that (with appropiate credit given)? |
|
||
AC_MSG_CHECKING([whether dracut is available]) | ||
if test -d /usr/lib/dracut ; then | ||
DEFINE_DRACUT='--define "_dracut 1"' |
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.
- Is
/usr/share/dracut
no longer supported? - Is the check to be performed by the host building the package? Doesn't this break building an F23 package in an F22 host, or building the package in a host that has no Dracut? Or are we all already deep into the Mock ideology that this is a lost cause?
Just wondering.
If (when!?) this actually attracts some actual interest to be merged, I can spend time on it. But not a second until then! I've been tricked before. |
There are some nice improvements in these proposed patches. Unfortunately, they never got the attention they deserved in terms of reviewers and testing. As such I was never comfortable with merging them to master. If someone would like to continue with this work my suggestion would be to start with the most important changes and open new PRs against master. Keeping the PRs small and as functionally independent as possible will make it easier to review and test the changes. Closing. |
This depend on #3559, this PR is "Phase 3". It seriously modifies the dracut code (tested extensively on Fedora 17).
Because #3559 have not been accepted yet, this PR includes those commits as well. But once that PR have been accepted (eventually?), I do a new push and they should vanish.
Even though the intention is to get dracut accepted in dracut upstream, there is no reason why not to do this. The
zfs-functions
could either be pushed there "as is" or code used could be extracted. Considering the added functionality, which would be next to impossible (and extremely difficult to maintain), giving ALL systems the exact same boot parameters and functionality is, in my opinion, extremely important for a project as ZoL.Therefor, this should then be tagged 0.6.6 as earliest, but I'm good with 0.6.7. I DO think it needs to be done eventually though.