From 843d674af78b9e781c941ecd8f8a8b128a69281a Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Sat, 25 Feb 2012 20:49:56 +0000 Subject: don't overwrite /dev after udev handles it --- rescue/tree/etc/rc.sysinit | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rescue/tree') 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 / -- cgit v1.2.1