Get rid of SELinux-related warnings - mount /proc

Without /proc, sed cannot see that SELinux is disabled
This commit is contained in:
Marek Marczykowski 2011-09-24 11:59:25 +02:00
parent 179c658348
commit 7c5604fc7f

View File

@ -34,6 +34,7 @@ echo "--> Mouting $IMG"
mkdir -p mnt
mount -o loop $IMG mnt || exit 1
mount -t proc proc mnt/proc
echo "--> Installing RPMs..."
rpm --force --root=$(pwd)/mnt -ihv rpms_to_install/*
@ -63,7 +64,7 @@ mv mnt/usr/local mnt/usr/local.orig
ln -sf /rw/usrlocal mnt/usr/local
echo "--> Unmounting $IMG"
umount mnt
umount mnt/proc mnt
echo "Qubeized image stored at: $IMG"