[arch-projects] [mkinitcpio][PATCH 01/10] fsck: add helper for usr if different fs from root

Dave Reisner d at falconindy.com
Sat Jan 28 15:39:37 EST 2012


Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 install/fsck |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/install/fsck b/install/fsck
index 852ae6a..e4927fc 100644
--- a/install/fsck
+++ b/install/fsck
@@ -3,8 +3,13 @@
 build() {
     local added=0
 
-    if (( ! fs_autodetect_failed )) && [[ $rootfstype ]]; then
-        add_binary /sbin/fsck.$rootfstype && (( ++added ))
+    if (( ! fs_autodetect_failed )) && [[ $rootfstype$usrfstype ]]; then
+        if [[ $rootfstype ]]; then
+            add_binary /sbin/fsck.$rootfstype && (( ++added ))
+        fi
+        if [[ $usrfstype && $usrfstype != $rootfstype ]]; then
+            add_binary /sbin/fsck.$rootfstype && (( ++added ))
+        fi
     else
         for fsck in "$BASEDIR"/sbin/fsck.*; do
             [[ -f $fsck ]] || continue
-- 
1.7.8.4



More information about the arch-projects mailing list