summaryrefslogtreecommitdiff
path: root/update-kernel.in
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-01-26 11:02:41 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-01-26 11:02:41 +0200
commit33da382fec1edeaad5764f68a1c4942f848a7481 (patch)
tree911ed97a070982e11460c3caae3c4d8063cb49d7 /update-kernel.in
parentfc48d4317ef5583b3f204e43ef638c5ed7d598ea (diff)
downloadalpine-conf-33da382fec1edeaad5764f68a1c4942f848a7481.zip
update-kernel: update also System.map and config
Diffstat (limited to 'update-kernel.in')
-rw-r--r--update-kernel.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 8563d2c..5f477b5 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -6,7 +6,7 @@
# with setup-bootable
#
# Copyright (c) 2014 Timo Teräs
-# Copyright (c) 2014 Kaarle Ritvanen
+# Copyright (c) 2014-2015 Kaarle Ritvanen
SCRIPT=update-kernel
@@ -211,7 +211,10 @@ _exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz
_exec mkinitfs -q -b $ROOT -F "$features base squashfs" \
-o "$STAGING/initramfs-$FLAVOR" "$KVER"
-cp "$BOOT/vmlinuz$KVER_FLAVOR" $STAGING
+
+for file in System.map config vmlinuz; do
+ cp "$BOOT/$file$KVER_FLAVOR" $STAGING
+done
if [ "$MNTDIR" ]; then