diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-01-12 01:12:45 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-01-12 01:12:45 +0100 |
commit | 1c9a57232165a2b48678848e739a14d0bd2687b3 (patch) | |
tree | 16b2b2991959421b6b11ffb7aa768782f4667749 /install/autodetect | |
parent | bdd563a5d2d17bcc1ce417766b62a9bc9dea4f71 (diff) | |
download | mkinitcpio-1c9a57232165a2b48678848e739a14d0bd2687b3.tar.gz mkinitcpio-1c9a57232165a2b48678848e739a14d0bd2687b3.tar.xz |
If filesystem autodetection fails, use all_modules instead of checked_modules
Diffstat (limited to 'install/autodetect')
-rw-r--r-- | install/autodetect | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect index 1275232..82dca3c 100644 --- a/install/autodetect +++ b/install/autodetect @@ -20,7 +20,12 @@ install () } if [ ${UID} -eq 0 -o "$(groups | grep disk)" != "" ]; then - for fs in $(findfs | sort | uniq); do + fss=$(findfs | sort | uniq) + if [ -z "${fss}" ]; then + err "Root file system type detection failed." + autodetect_fs_detection_failed=1 + fi + for fs in ${fss}; do allfs="${fs} $(modprobe --set-version ${KERNELVERSION} --resolve-alias ${fs})" for mod in ${allfs}; do for modfile in $(find "${MODULEDIR}" -type f -name "${mod}.ko"); do @@ -43,6 +48,8 @@ install () done fi else + autodetect_fs_detection_failed=1 + autodetect_raid_detection_failed=1 err "User does not have proper permissions to read superblocks, raid and filesystem modules are not detected" fi |