- don't run fsck on root if its tmpfs
authorMarcin Krol <hawk@tld-linux.org>
Sat, 23 Nov 2013 14:05:01 +0000 (14:05 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 23 Nov 2013 14:05:01 +0000 (14:05 +0000)
rc-scripts-no_tmpfs_root_fsck.patch [new file with mode: 0644]

diff --git a/rc-scripts-no_tmpfs_root_fsck.patch b/rc-scripts-no_tmpfs_root_fsck.patch
new file mode 100644 (file)
index 0000000..dd294d0
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur rc-scripts-0.4.9.orig/rc.d/rc.sysinit rc-scripts-0.4.9/rc.d/rc.sysinit
+--- rc-scripts-0.4.9.orig/rc.d/rc.sysinit      2013-11-11 10:58:44.000000000 +0000
++++ rc-scripts-0.4.9/rc.d/rc.sysinit   2013-11-23 14:01:46.596625480 +0000
+@@ -550,7 +550,7 @@
+       _ROOTFS_DEVICE=$(awk '($1 !~ /^#/ && $2 == "/" && NF >= 6) { print $1}' /etc/fstab)
+       _ROOTFS_TYPE=$(awk '$2 == "/" && $3 != "rootfs" { print $3 }' /proc/mounts 2>/dev/null)
+-      if [ -z "$fastboot" -a "$_ROOTFS_TYPE" != "aufs" -a "$_ROOTFS_TYPE" != "nfs" -a "$_ROOTFS_TYPE" != "romfs" -a "$_ROOTFS_TYPE" != "squashfs" -a "$_ROOTFS_PASSNO" != 0 -a -e $_ROOTFS_DEVICE ] && [[ "$container" != lxc* ]]; then
++      if [ -z "$fastboot" -a "$_ROOTFS_TYPE" != "aufs" -a "$_ROOTFS_TYPE" != "nfs" -a "$_ROOTFS_TYPE" != "romfs" -a "$_ROOTFS_TYPE" != "tmpfs" -a "$_ROOTFS_TYPE" != "squashfs" -a "$_ROOTFS_PASSNO" != 0 -a -e $_ROOTFS_DEVICE ] && [[ "$container" != lxc* ]]; then
+               check_root_fs
+       fi