stage2: cosmetic fixup for aufs/overlayfs check
This has been made a bit messy with commit
9f72780d17
,
just split the "involved" and straightforward
checks into two.
This commit is contained in:
parent
d2f892abda
commit
04a12ef053
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user