-
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
[RFC] 'Fixes' for initramfs creation #8796
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8796 +/- ##
==========================================
+ Coverage 78.73% 78.84% +0.11%
==========================================
Files 382 382
Lines 117812 117809 -3
==========================================
+ Hits 92758 92889 +131
+ Misses 25054 24920 -134
Continue to review full report at Codecov.
|
Fixing the missing file seems clearly correct. Adding |
@rlaager thanks for the comments:
re: "error if missing" - if we don't do that, we build initramfs which don't work; surely an error at such a time as someone can address/fix it it better than finding out after a reboot it's not working? force-pushed the update, not sure if github noticed... |
what i pushed earlier wasn't supposed to work, it was for people to eyeball and comment on however, in trying to make it work cleanly ... well, it's not clear or working i'm wondering if instead we should just remove |
*** INCOMPLETE *** This is not entirely correct, it works in some cases for me, though not reliably, it seems I have to ./autogen.sh twice to get the files in etc/init.d/ created and put in place for the initramfs Makefile. zfs-functions is required, copy to /etc/zfs/ The zfs hook that copies files will error on critical files. The argument for this is we do not want to create a non-functional initramfs. Some files are optional, those we do silently ignore.
If it works with
My point was that
Sure. If whatever problem you're catching is definitely fatal on boot, yes, it's better to catch it earlier.
No. This is the initramfs script used by Debian and Ubuntu, at least. |
Can this one get some higher priority attention? Because otherise the missing file causes a kernel panic during boot. And that leads to broken (not bootable) system. Without any prior warnings / error messages to indicate anything was missing during previous building of initramfs. |
@dreamcat4 IIRC, I couldn't find a robust way to make sure zfs-functions was always present for packaging so this patch is incomplete (the change to add it work, but the file isn't always generated). |
@dreamcat4 @cwedgwood could you both test, if #9089 solves this for you, please? |
I'm going to close this in favor of #9089 which is more appropriate. |
INCOMPLETE*
This 'kinda' works for me.
I'm pushing this out now in the hope someone can help work out what the right approach is in a few places.
Motivation and Context
initframfs creation on Debian systems does not presently work because a critical file is missing
Partially addresses: #7904
Description
RFC right now, changes are for illustrative purposes. It will however build a functional initramfs.
How Has This Been Tested?
Local build testing, inspection of output and limited VM boot testing.
Types of changes
Checklist:
Signed-off-by
.