From 0d46d5cdd93ad1086ceb023876d3d071f3148db7 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 26 Oct 2011 10:01:53 -0400 Subject: autodetect: store rootfstype for use by other hooks Signed-off-by: Dave Reisner --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b