CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
rc: aligned with upstream
authorJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 14:13:39 +0000 (14:13 +0000)
committerJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 14:13:39 +0000 (14:13 +0000)
rc/.md5sum
rc/Pkgfile
rc/rc [changed mode: 0644->0755]

index ddfaef53ac62ddb2b8737815f1a8a72ff50f9120..8a410a83fbd2b4c49e60330564dd1b54dfbf1714 100644 (file)
@@ -1,5 +1,5 @@
 d2a8e98a8b10ba09b2a9da34326b526a  inittab
-ef539e1a7680641ef76b38001eb86682  rc
+3858dfcab370c4e9b9d7356a1d3464a1  rc
 c8fe38143dffbbc628a7a33966fae408  rc.conf
 afe5cd67920474246ae74e54a9845339  rc.fix
 d1be35927946756c68242f29c16ee983  rc.local
index e074cf2ad79b5ddc5a81a631b9f3dca69411ccc9..e4098d8288782d056c28420311850d32483fcd98 100644 (file)
@@ -5,7 +5,7 @@
 
 name=rc
 version=2.26
-release=1
+release=3
 source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf)
 
 build() {
diff --git a/rc/rc b/rc/rc
old mode 100644 (file)
new mode 100755 (executable)
index 1ae73c2..4fc61d2
--- a/rc/rc
+++ b/rc/rc
@@ -9,8 +9,8 @@ echo "The system is coming up.  Please wait."
 . /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
@@ -19,8 +19,13 @@ if [ -x /sbin/lvm ]; then
        /sbin/vgchange --ignorelockingfailure -a y
 fi
 
+# Scan for btrfs volumes to simplify fstab entries
+if [ -r /sys/fs/btrfs ]; then
+       /sbin/btrfs dev scan
+fi
+
 # Mount root read-only
-/bin/mount -n -o remount,ro /
+/bin/mount -o remount,ro /
 
 if [ -f /forcefsck ]; then
 FORCEFSCK="-f"
@@ -43,16 +48,12 @@ if [ $? -gt 1 ]; then
        /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