From: Marcin Krol Date: Sat, 23 Nov 2013 14:05:01 +0000 (+0000) Subject: - don't run fsck on root if its tmpfs X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=07a27a778f8023c7b88840e9e0b50376fb606ee9;p=packages%2Frc-scripts.git - don't run fsck on root if its tmpfs --- diff --git a/rc-scripts-no_tmpfs_root_fsck.patch b/rc-scripts-no_tmpfs_root_fsck.patch new file mode 100644 index 0000000..dd294d0 --- /dev/null +++ b/rc-scripts-no_tmpfs_root_fsck.patch @@ -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 +