mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
If using SELinux, mount /selinux in the appliance.
If selinux=1 on the Linux kernel command line, then we mount /selinux in the appliance. We will also bind-mount this directory into guests when we run commands.
This commit is contained in:
@@ -47,6 +47,9 @@ if [ "@DIST@" = "REDHAT" ]; then
|
||||
# Create /tmp if it is missing.
|
||||
@FEBOOTSTRAP_RUN@ initramfs -- mkdir -p --mode=0777 /tmp
|
||||
|
||||
# Create /selinux if it is missing.
|
||||
@FEBOOTSTRAP_RUN@ initramfs -- mkdir -p --mode=0755 /selinux
|
||||
|
||||
# Nuke some stuff. The kernel pulls mkinitrd and plymouth which pulls in
|
||||
# all of Python. Sheez.
|
||||
(cd initramfs && find -name '*plymouth*' -print0) |
|
||||
|
||||
Reference in New Issue
Block a user