summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2012-02-25 20:49:56 +0000
committerMaarten Vanraes <alien@mageia.org>2012-02-25 20:49:56 +0000
commitb2d72b23bce159b274bf955b7f5f57bf8f7ae568 (patch)
treed2981b82d35d4b356524be34b654a96baac3bad5 /rescue
parent8b7d94cb083b66d1d04ec5b435f7d3e48691d42e (diff)
downloaddrakx-backup-do-not-use-b2d72b23bce159b274bf955b7f5f57bf8f7ae568.tar
drakx-backup-do-not-use-b2d72b23bce159b274bf955b7f5f57bf8f7ae568.tar.gz
drakx-backup-do-not-use-b2d72b23bce159b274bf955b7f5f57bf8f7ae568.tar.bz2
drakx-backup-do-not-use-b2d72b23bce159b274bf955b7f5f57bf8f7ae568.tar.xz
drakx-backup-do-not-use-b2d72b23bce159b274bf955b7f5f57bf8f7ae568.zip
don't overwrite /dev after udev handles it
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/tree/etc/rc.sysinit5
1 files changed, 2 insertions, 3 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit
index a9cdef981..602a05cdd 100755
--- a/rescue/tree/etc/rc.sysinit
+++ b/rescue/tree/etc/rc.sysinit
@@ -21,6 +21,7 @@ mkdir /dev/shm
mount -t devpts -o mode=620 devpts /dev/pts
mount -t tmpfs -o mode=1777,nosuid,nodev tmpfs /dev/shm
+cp -a /tmp/stage2/dev/. /dev/
/lib/udev/udevd --daemon --resolve-names=never
udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
@@ -30,9 +31,7 @@ ln -s /tmp/stage2/etc/* /etc 2>/dev/null
rm -f /etc/passwd
cp /tmp/stage2/etc/passwd /etc/
-rm -f /dev ; cp -a /tmp/stage2/dev /dev
-
-mkdir -p /mnt /var/log /dev/pts
+mkdir -p /mnt /var/log
>/etc/mtab
mount -f /