From 07a27a778f8023c7b88840e9e0b50376fb606ee9 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 23 Nov 2013 14:05:01 +0000 Subject: [PATCH] - don't run fsck on root if its tmpfs --- rc-scripts-no_tmpfs_root_fsck.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rc-scripts-no_tmpfs_root_fsck.patch 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 + -- 2.46.0