Skip to content
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

New dracut based gentoo minimal livecds do not use cdupdate.sh #74

Open
DarkDefender opened this issue Sep 13, 2024 · 2 comments
Open

Comments

@DarkDefender
Copy link

DarkDefender commented Sep 13, 2024

cdupdate.sh is only run when using genkernel.

dracut instead looks for a /updates and/or /run/initramfs/live/updates directory:
https://github.com/dracutdevs/dracut/blob/master/modules.d/90dmsquash-live/apply-live-updates.sh

The contents of the /updates will be copied onto the live file systems root.
So for example the bashrc path should now be updates/root/.bashrc.

If you want some more concrete example I've combined the iPXE repo and this repo into a derivative project:
https://projects.blender.org/ZedDB/gentoo-pxe-builder

I just wanted to contribute back here so you don't have to figure out what to change with dracut. :)

@NiKiZe
Copy link
Contributor

NiKiZe commented Sep 13, 2024

Do you know if this means that the minimal cd now is systemd instead of openrc? If it is, that is actually a worse bug IMO (and might mean I will pin to an older minimal ISO untill fixed)

@DarkDefender
Copy link
Author

DarkDefender commented Sep 13, 2024

No, it is still using OpenRC. :)

They just changed how they build the kernel and initramfs. Now they use the sys-kernel/gentoo-kernel package for the majority (or perhaps even all?) their live images.
From what I understand genkernel was unmaintained and kinda dead, so for the sys-kernel/gentoo-kernel and sys-kernel/gentoo-kernel-bin packages they are using dracut to create the initramfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants