From 828c5f7c54c1205feb2c9928646dec24a790d734 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 21 Jan 2012 19:44:09 -0500 Subject: 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 --- install/fsck | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/fsck') 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 -- cgit v1.2.3-24-g4f1b