Commit 04a12ef0 authored by Michael Shigorin's avatar Michael Shigorin

stage2: cosmetic fixup for aufs/overlayfs check

This has been made a bit messy with commit 9f72780d, just split the "involved" and straightforward checks into two.
parent d2f892ab
......@@ -24,8 +24,10 @@ configured()
ls $CONFIGS >&/dev/null || fatal "no stage1 kernel config found in /boot"
# test for installer-required filesystems support
for opt in SQUASHFS AUFS_FS OVERLAY_FS $GLOBAL_STAGE1_KCONFIG; do
[ "$opt" = AUFS_FS ] && [ $(configured "OVERLAY_FS=[my]") -a $(configured "AUFS_FS=n") ] && continue
configured "OVERLAY_FS=[my]" || configured "AUFS_FS=[my]" ||
echo fatal "stage1 kernel must support overlayfs or aufs"
for opt in SQUASHFS $GLOBAL_STAGE1_KCONFIG; do
configured "$opt=[my]" || fatal "stage1 kernel must have $opt support"
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment