-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Image should not contain folders /run /sys /proc /dev. These should be deleted at the end of the build process.
Rationale:
- These don't belong there. Serve no purpose. Are instantiated during the boot process.
- Are confusing dracut. Relevant code excerpt:
elif [ -d /run/initramfs/squashfs/proc ]; then
FSIMG=$SQUASHED
if [ -z "$overlayfs" ] && [ -n "$DRACUT_SYSTEMD" ]; then
reloadsysrootmountunit=":>/xor_overlayfs;"
fi
overlayfs="required"
(Some dracut internals: Folder /run/initramfs/squashfs/proc is inside the LiveOS/squashfs.img, which can be based on grml-debootstrap (and created by mksquashfs). An image containing an already existing /proc folder can be useful for I don't know what. But either the /proc folder should be complete. This is probably for a complex use case we don't know about. Absent of this, best if the /proc folder doesn't exist. There should not be an empty folder /proc inside the image.)
Would a PR deleting these folders be welcome?
Metadata
Metadata
Assignees
Labels
No labels