installer.sh: also bind /sys to destination mount point which seems to fix issues with dracut

This commit is contained in:
Silvan Calarco 2012-11-03 18:42:37 +01:00
parent 25e7fecd0c
commit 455c6e9f39
2 changed files with 8 additions and 3 deletions

View File

@ -364,7 +364,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 to new mountpoint"
echo $"Binding /dev, /proc and /sys to new mountpoint"
mount -o bind /dev $MOUNTPOINT/dev || {
echo $"Error: could not bind /dev to new mountpoint; aborting." >&2
abort
@ -373,6 +373,10 @@ mount -o bind /proc $MOUNTPOINT/proc || {
echo $"Error: could not bind /proc to new mountpoint; aborting." >&2
abort
}
mount -o bind /sys $MOUNTPOINT/sys || {
echo $"Error: could not bind /sys to new mountpoint; aborting." >&2
abort
}
# set root partition in fstab
# must be done before mkinitrd
@ -655,6 +659,7 @@ rm -f $MOUNTPOINT/root/.DCOPserver* $MOUNTPOINT/root/.ICEauthority
umount $MOUNTPOINT/dev
umount $MOUNTPOINT/proc
umount $MOUNTPOINT/sys
[ "$INSTALL_HOME_DEVICE" ] && umount $MOUNTPOINT/home
# NOTE: move INPUT_FILE instead of copying to prevent mambawelcome from starting from

View File

@ -683,8 +683,8 @@ msgstr "Errore: non posso eseguire MAKEDEV; uscita."
msgid "Binding system dirs to new mountpoint..."
msgstr "Collego i percorsi di sistema al nuovo punto di mount..."
#: installer.sh:226
msgid "Binding /dev to new mountpoint"
msgstr "Collego /dev al nuovo punto di mount"
msgid "Binding /dev, /proc and /sys to new mountpoint"
msgstr "Collego /dev, /proc e /sys al nuovo punto di mount"
#: installer.sh:228
msgid "Error: could not bind /dev to new mountpoint; aborting."
msgstr "Errore: non posso legare /dev al nuovo punto di mount; uscita."