diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-26 16:01:53 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-15 01:11:09 +0100 |
commit | 0d46d5cdd93ad1086ceb023876d3d071f3148db7 (patch) | |
tree | 330b1f6e7a4eeadef85ea33d5fad53bccc5374a1 /install/autodetect | |
parent | 09bbcaf175be235874cceee0f0e75781ed100d02 (diff) | |
download | mkinitcpio-0d46d5cdd93ad1086ceb023876d3d071f3148db7.tar.gz mkinitcpio-0d46d5cdd93ad1086ceb023876d3d071f3148db7.tar.xz |
autodetect: store rootfstype for use by other hooks
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 35f1cb2..5537f7c 100644 --- a/install/autodetect +++ b/install/autodetect @@ -10,7 +10,7 @@ build() { auto_modules | grep -xEv '(ata|ide)_generic' >"$MODULE_FILE" - if ! findmnt -uno fstype "${BASEDIR:-/}" >>"$MODULE_FILE"; then + if ! rootfstype=$(findmnt -uno fstype "${BASEDIR:-/}" | tee -a "$MODULE_FILE"); then error "failed to detect root filesystem" fs_autodetect_failed=1 fi |