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:
Richard Jones
2009-08-12 16:31:06 +01:00
parent 8157503b09
commit 2361905686
3 changed files with 15 additions and 2 deletions

View File

@@ -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) |