From ef077ea621dda9b0f1b6e76af330d1052a58f14a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 14 Apr 2013 20:23:00 +0200 Subject: [PATCH] installer.sh: also bind mount /run as required by dracut when systemd is running --- installer/installer.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/installer/installer.sh b/installer/installer.sh index 0d31518..d12dcd0 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -366,7 +366,7 @@ chmod 0750 $MOUNTPOINT/root UDEV_ROOT=$MOUNTPOINT/dev /lib/udev/devices/MAKEDEV dcop_write $"Binding system dirs to new mountpoint..." 73 -echo $"Binding /dev, /proc and /sys to new mountpoint" +echo $"Binding /dev, /proc, /run and /sys to new mountpoint" mount -o bind /dev $MOUNTPOINT/dev || { echo $"Error: could not bind /dev to new mountpoint; aborting." >&2 abort @@ -375,6 +375,10 @@ mount -o bind /proc $MOUNTPOINT/proc || { echo $"Error: could not bind /proc to new mountpoint; aborting." >&2 abort } +mount -o bind /run $MOUNTPOINT/run || { + echo $"Error: could not bind /run to new mountpoint; aborting." >&2 + abort +} mount -o bind /sys $MOUNTPOINT/sys || { echo $"Error: could not bind /sys to new mountpoint; aborting." >&2 abort @@ -661,6 +665,7 @@ rm -f $MOUNTPOINT/root/.DCOPserver* $MOUNTPOINT/root/.ICEauthority umount $MOUNTPOINT/dev umount $MOUNTPOINT/proc +umount $MOUNTPOINT/run umount $MOUNTPOINT/sys [ "$INSTALL_HOME_DEVICE" ] && umount $MOUNTPOINT/home