Commit 647718dd authored by Natanael Copa's avatar Natanael Copa

update-kernel: handle -vanilla suffix in System.map, config and vmlinuz

Previously the vanilla kernel did not add any suffix to System.map,
config and vmlinuz for the vanilla kernel, but it does now. Fix
update-kernel to handle both cases.

Note also that /lib/modules/$ver still does not have any -vanilla
suffix.
parent abbe2696
......@@ -259,7 +259,11 @@ mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \
-o "$STAGING/initramfs-$FLAVOR" "$KVER"
for file in System.map config vmlinuz; do
cp "$BOOT/$file$KVER_FLAVOR" $STAGING
if [ -f "$BOOT/$file-$FLAVOR" ]; then
cp "$BOOT/$file-$FLAVOR" $STAGING
else
cp "$BOOT/$file" $STAGING
fi
done
if [ "$MNTDIR" ]; then
......
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