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

Update build_rootfs.sh #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Update build_rootfs.sh #8

wants to merge 5 commits into from

Conversation

omac777
Copy link

@omac777 omac777 commented Dec 6, 2023

containers/podman@8cb1af9

We cannot make nodes unless we are root. Tweaked to use fakeroot mknod. A few other fakeroot commands following that were needed as well.

containers/podman@8cb1af9

We cannot make nodes unless we are root.  Tweaked to use sudo mknod.
fakeroot mknod passes without error
needed fakeroot for the cpio and tar as well
Ensure the mknod, cpio, tar behave correctly by running everything entirely in this script in fakeroot.
This also ensures cpio.gz and the tar.xz preserve the root:root afterwards.
ensure the mknod, cpio, tar behave correctly by invoking this script differently with ./podman_shell.sh fakeroot /bin/bash build_rootfs.sh

The script itself has no sudo/fakeroot within it.
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

Successfully merging this pull request may close these issues.

1 participant