summaryrefslogtreecommitdiffstats
path: root/install/fsck
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-22 01:44:09 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-28 21:38:50 +0100
commit828c5f7c54c1205feb2c9928646dec24a790d734 (patch)
tree310f35b45bf8cb255e6647a0f9f5d0c4aa07c712 /install/fsck
parent15988f0f8b8232b010179dc834ca4dd851a14f00 (diff)
downloadmkinitcpio-828c5f7c54c1205feb2c9928646dec24a790d734.tar.gz
mkinitcpio-828c5f7c54c1205feb2c9928646dec24a790d734.tar.xz
avoid absolute paths in add_binary calls
This makes us more resilient against path changes -- add_binary is smart enough to resolve the path for us. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/fsck')
-rw-r--r--install/fsck6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/fsck b/install/fsck
index e4927fc..f613c5b 100644
--- a/install/fsck
+++ b/install/fsck
@@ -5,10 +5,10 @@ build() {
if (( ! fs_autodetect_failed )) && [[ $rootfstype$usrfstype ]]; then
if [[ $rootfstype ]]; then
- add_binary /sbin/fsck.$rootfstype && (( ++added ))
+ add_binary fsck.$rootfstype && (( ++added ))
fi
if [[ $usrfstype && $usrfstype != $rootfstype ]]; then
- add_binary /sbin/fsck.$rootfstype && (( ++added ))
+ add_binary fsck.$rootfstype && (( ++added ))
fi
else
for fsck in "$BASEDIR"/sbin/fsck.*; do
@@ -18,7 +18,7 @@ build() {
fi
if (( added )); then
- add_binary /sbin/fsck
+ add_binary fsck
else
warning "No fsck helpers found. fsck will not be run on boot."
fi