rc.diff

pasted by jue [options]

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- rc.orig     2012-09-12 11:46:01.398193753 +0200
+++ rc  2012-09-12 11:46:43.961394940 +0200
@@ -9,8 +9,8 @@
 . /etc/rc.conf
 
 # Start udev
-/bin/mount -n -t proc none /proc
-/bin/mount -n -t sysfs none /sys
+/bin/mount -t proc none /proc
+/bin/mount -t sysfs none /sys
 /sbin/start_udev
 
 # Create device-mapper device nodes and scan for LVM volume groups
@@ -20,7 +20,7 @@
 fi
 
 # Mount root read-only
-/bin/mount -n -o remount,ro /
+/bin/mount -o remount,ro /
 
 if [ -f /forcefsck ]; then
 FORCEFSCK="-f"
@@ -43,16 +43,12 @@
        /sbin/sulogin -p
        echo "Automatic reboot in progress..."
        /bin/umount -a -r
-       /bin/mount -n -o remount,ro /
+       /bin/mount -o remount,ro /
        /sbin/reboot -f
        exit 0
 fi
 
 # Mount local filesystems
-/bin/mount -n -o remount,rw /
-/bin/umount /sys /proc
-/bin/rm -f /etc/mtab*
-/bin/touch /etc/mtab
 /bin/mount -o remount,rw /
 /bin/mount -a -O no_netdev