-
Notifications
You must be signed in to change notification settings - Fork 78
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
document & implement initramfs scripts for ubuntu #250
base: master
Are you sure you want to change the base?
Conversation
Wow, thank you for sharing it. Take a closer look to implement it in the Makefile. |
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.
Wow, thank you for sharing it.
Take a closer look to implement it in the Makefile.
@Antynea Will this do?
I try to follow the established pattern.
Have you looked at kernel option systemd.volatile=overlay
?
It appears to do the same for any systemd-managed OS.
Maybe I should open an issue for that.
447a903
to
2b9c1d2
Compare
thanks for that. I hope you are willing to maintain this in the future, because we as Arch and Gentoo Users can not really. Maybe we can get the guys from Kaisen (@kevinchevreuil) interested in this? Although Kaisen is based on Debian, idk if it is similar to how Ubuntu does things. |
provide a hook to require overlayfs module so the file system is available define a general script to overlay any readonly root filesystem into a non-persistent, writable filesystem
kernel parameters normally identify root filesystem as readonly before boot process remounts them writable, so the readonly parameter does not identify readonly filesystems the script reduces scope to btrfs for simplicity as a standard linux util, findmnt is copied & used arrange commands so executables are checked before file system queries and short-circuit evaluation skips unavailable commands for robustness, trap on error & exit events replace panic with failure logging, since panic doesn't appear to break to shell
parse options and subcommands in setup script update readme
introduce feature flag for mkinitramfs in Makefile extend install & uninstall targets when feature flag is true document flag in help target
2b9c1d2
to
de6ff16
Compare
uninstall recipe should proceed for other distros
de6ff16
to
c3e2c19
Compare
I'll probably maintain while I use it. |
Looks good to me now. I am going to merge this later. |
Hello @lmmarsano and @Schievel1! Yeah, I had started to develop this feature on Kaisen! Great work @lmmarsano 🤩 I added this: |
@Schievel1, don't merge this! |
@kevinchevreuil could you elaborate a bit more please? |
I wrote these for myself & figured others would find them useful: scripts for initramfs-tools as documented for Ubuntu.
Adapted from the Arch Linux scripts.
Tested on a VM & my workstation (both UEFI-boot enabled).
Though they might work for Debian, I haven't tested that.