aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-01-19 01:33:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-07 12:56:04 +0000
commit647718ddf6d355e5c2b53cd3d5317df540996314 (patch)
tree38e9228d34755583abce7db0b6504128174b63d0
parentabbe2696496bfbf8da4060b775a2f99105fcf810 (diff)
downloadalpine-conf-647718ddf6d355e5c2b53cd3d5317df540996314.tar.bz2
alpine-conf-647718ddf6d355e5c2b53cd3d5317df540996314.tar.xz
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.
-rw-r--r--update-kernel.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/update-kernel.in b/update-kernel.in
index dc78782..0d20371 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -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