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

Try to get files into squashfs without rebuild #6

Open
NiKiZe opened this issue Jul 24, 2021 · 2 comments
Open

Try to get files into squashfs without rebuild #6

NiKiZe opened this issue Jul 24, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@NiKiZe
Copy link
Owner

NiKiZe commented Jul 24, 2021

Often customizations is wanted to pxe booted machines, such as init scripts, or config files (public ssh keys)
It would be nice to have this without need for squashfs rebuilds, maybe that is possible already, but could do with documentation if it is.
And if not we want to be able to transfer files from initrd root (which can be modified by appending to cpio) to the "realroot" (new root when switching to squashfs)

This is in part in reference to numberly/gentoo-pxe-builder#5
Another usecase is the mess at https://github.com/ASoft-se/Gentoo-HAI/blob/master/gentoocd_unpack.sh#L68-L72

@NiKiZe NiKiZe added the help wanted Extra attention is needed label Jul 24, 2021
NiKiZe added a commit to NiKiZe/gentoo-pxe-builder that referenced this issue Jul 30, 2021
Move modification logic from build.sh into cdupdate.sh
include all files directly instead.

This removes need for squashfs rebuild and becomes quicker and cleaner

Developed here while doing tests for NiKiZe/Gentoo-iPXE#6
NiKiZe added a commit to NiKiZe/gentoo-pxe-builder that referenced this issue Jul 31, 2021
Move modification logic from build.sh into cdupdate.sh
Include files via cpio instead, cdupdate.sh will see to correct modification.

This removes need for squashfs rebuild, which in turn removes need for sudo.
This is much quicker and cleaner

Relates to ASoft-se/Gentoo-HAI#8 and NiKiZe/Gentoo-iPXE#6 and
NiKiZe added a commit to NiKiZe/gentoo-pxe-builder that referenced this issue Jul 31, 2021
Move modification logic from build.sh into cdupdate.sh
Include files via cpio instead, cdupdate.sh will see to correct modification.

This removes need for squashfs rebuild, which in turn removes need for sudo.
This is much quicker and cleaner

Relates to ASoft-se/Gentoo-HAI#8 and NiKiZe/Gentoo-iPXE#6
Depends on numberly#6
@NiKiZe
Copy link
Owner Author

NiKiZe commented Jul 31, 2021

So create a cpio directory structure, add basic cdupdate.sh and folders for possible data with .keep files

local.d for x.start files
bashrc extensions
root user dir (fix .ssh and authorization keys)

Make sure all this can support Gentoo-HAI testing.

NiKiZe added a commit to NiKiZe/gentoo-pxe-builder that referenced this issue Sep 6, 2021
Move modification logic from build.sh into cdupdate.sh
Include files via cpio instead, cdupdate.sh will see to correct modification.

This removes need for squashfs rebuild, which in turn removes need for sudo.
This is much quicker and cleaner

Relates to ASoft-se/Gentoo-HAI#8 and NiKiZe/Gentoo-iPXE#6
Depends on numberly#6
ultrabug pushed a commit to numberly/gentoo-pxe-builder that referenced this issue May 11, 2022
Move modification logic from build.sh into cdupdate.sh
Include files via cpio instead, cdupdate.sh will see to correct modification.

This removes need for squashfs rebuild, which in turn removes need for sudo.
This is much quicker and cleaner

Relates to ASoft-se/Gentoo-HAI#8 and NiKiZe/Gentoo-iPXE#6
Depends on #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant