summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-26 16:01:53 +0200
committerDave Reisner <dreisner@archlinux.org>2011-11-15 01:11:09 +0100
commit0d46d5cdd93ad1086ceb023876d3d071f3148db7 (patch)
tree330b1f6e7a4eeadef85ea33d5fad53bccc5374a1
parent09bbcaf175be235874cceee0f0e75781ed100d02 (diff)
downloadmkinitcpio-0d46d5cdd93ad1086ceb023876d3d071f3148db7.tar.gz
mkinitcpio-0d46d5cdd93ad1086ceb023876d3d071f3148db7.tar.xz
autodetect: store rootfstype for use by other hooks
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--install/autodetect2
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