stage2: no kernels no go

The flexible KFLAVOURS handling has a downside:
if no packages match the regexp it's silently OK
until too late, and the error is incomprehensible.
Let's fix the latter at least.
This commit is contained in:
Michael Shigorin 2015-07-10 22:29:08 +03:00
parent 928d7a8188
commit a277a6cce3

View File

@ -4,5 +4,9 @@
cd /lib/modules cd /lib/modules
for i in *.*; do for i in *.*; do
if [ "$i" = "*.*" ]; then
echo "** error: no valid KFLAVOURS installed, bailing out" >&2
exit 1
fi
depmod -a -F /boot/System.map-$i $i depmod -a -F /boot/System.map-$i $i
done done