aboutsummaryrefslogtreecommitdiffstats
path: root/update-kernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-kernel.in')
-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