diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-08-27 23:51:31 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-08-28 13:37:50 +0200 |
commit | 60475ade761e85ef2c1b0f2daef569b134d44fc0 (patch) | |
tree | 4c679526df3a1269dced67b80cc59f44b9393818 /install/autodetect | |
parent | 31e5439dd5a78d413a77a79ffa8179815a02570c (diff) | |
download | mkinitcpio-60475ade761e85ef2c1b0f2daef569b134d44fc0.tar.gz mkinitcpio-60475ade761e85ef2c1b0f2daef569b134d44fc0.tar.xz |
rely on libmount defaults for file locations
Using --tab-file for findmnt calls is redundant if we can rely on the
defaults. Sanitize the environment from any LIBMOUNT_* variables so
that we can be sure of what file we're reading.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/autodetect')
-rw-r--r-- | install/autodetect | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect index 3710e68..b3db536 100644 --- a/install/autodetect +++ b/install/autodetect @@ -37,7 +37,7 @@ build() { fi # detect filesystem for separate /usr - if usrfstype=$(findmnt -snero fstype --tab-file '/etc/fstab' -T '/usr'); then + if usrfstype=$(findmnt -snero fstype -T '/usr'); then add_if_avail "$usrfstype" fi |