summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-14 03:44:01 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-28 21:38:47 +0100
commit7c08cee96e703e927e6f4029d5ec617eeecadc5e (patch)
tree8edd5db540138efaeca3cde8f81e25f33c9e5d69 /install
parentc8684fd231b717ee866a9b86e073db1714c8fc04 (diff)
downloadmkinitcpio-7c08cee96e703e927e6f4029d5ec617eeecadc5e.tar.gz
mkinitcpio-7c08cee96e703e927e6f4029d5ec617eeecadc5e.tar.xz
fsck: add helper for usr if different fs from root
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install')
-rw-r--r--install/fsck9
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