From d397043814a47f0762175a9999a01f3ec0088152 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 27 Mar 2012 21:40:59 -0400 Subject: fsck: leverage blank /etc/fstab included by base Since 3b18c9cd we have a blank /etc/fstab in the image. This is also forward thinking for the next release of util-linux (2.22), where fsck complains loudly about my filthy hack of using /dev/null as /etc/fstab. Signed-off-by: Dave Reisner --- init_functions | 2 +- install/base | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init_functions b/init_functions index 0233aa2..b11e2e1 100644 --- a/init_functions +++ b/init_functions @@ -107,7 +107,7 @@ fsck_device() { fi msg ":: performing fsck on '$1'" - FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f} + fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f} } fsck_root() { diff --git a/install/base b/install/base index 87c0b5d..eee61c9 100644 --- a/install/base +++ b/install/base @@ -28,7 +28,7 @@ build() { add_symlink "/etc/mtab" "/proc/self/mounts" - # Add an empty fstab to avoid mount warning when -o remount is used + # Add an empty fstab for mount and fsck >"$BUILDROOT/etc/fstab" add_file "/usr/lib/initcpio/init_functions" "/init_functions" -- cgit v1.2.3-24-g4f1b