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
commit843d674af78b9e781c941ecd8f8a8b128a69281a (patch)
treed2981b82d35d4b356524be34b654a96baac3bad5 /rescue
parent214233778c3a3d7bd8085fac3805e06f2eda39d3 (diff)
downloaddrakx-843d674af78b9e781c941ecd8f8a8b128a69281a.tar
drakx-843d674af78b9e781c941ecd8f8a8b128a69281a.tar.gz
drakx-843d674af78b9e781c941ecd8f8a8b128a69281a.tar.bz2
drakx-843d674af78b9e781c941ecd8f8a8b128a69281a.tar.xz
drakx-843d674af78b9e781c941ecd8f8a8b128a69281a.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 /