diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-11-25 11:16:55 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-11-25 11:17:46 +0200 |
commit | 6990b9edfe70239852f9d2906f831f21295655af (patch) | |
tree | 890557f8b0346535f9265fe71932dc39e8cb298c /scripts | |
parent | 435c69849fe3a8af59563473445f105ebba5dda1 (diff) | |
download | aports-6990b9edfe70239852f9d2906f831f21295655af.tar.bz2 aports-6990b9edfe70239852f9d2906f831f21295655af.tar.xz |
scripts/mkimage: fix vanilla kernel image name for bootloaders
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkimg.base.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh index 0c07fd79dc..00eebea7bc 100755 --- a/scripts/mkimg.base.sh +++ b/scripts/mkimg.base.sh @@ -92,14 +92,17 @@ syslinux_gen_config() { echo "PROMPT ${syslinux_prompt:-1}" echo "DEFAULT ${kernel_flavors%% *}" - local _f + local _f _kf for _f in $kernel_flavors; do + _kf="" + [ "$_f" = vanilla ] || _kf=-$_f + if [ -z "${xen_params+set}" ]; then cat <<- EOF LABEL $_f MENU LABEL Linux $_f - KERNEL /boot/vmlinuz-$_f + KERNEL /boot/vmlinuz$_kf INITRD /boot/initramfs-$_f DEVICETREEDIR /boot/dtbs APPEND $initfs_cmdline $kernel_cmdline @@ -110,20 +113,23 @@ syslinux_gen_config() { LABEL $_f MENU LABEL Xen/Linux $_f KERNEL /boot/syslinux/mboot.c32 - APPEND /boot/xen.gz ${xen_params} --- /boot/vmlinuz-$_f $initfs_cmdline $kernel_cmdline --- /boot/initramfs-$_f + APPEND /boot/xen.gz ${xen_params} --- /boot/vmlinuz$_kf $initfs_cmdline $kernel_cmdline --- /boot/initramfs-$_f EOF fi done } grub_gen_config() { - local _f + local _f _kf echo "set timeout=2" for _f in $kernel_flavors; do + _kf="" + [ "$_f" = vanilla ] || _kf=-$_f + cat <<- EOF menuentry "Linux $_f" { - linux /boot/vmlinuz-$_f $initfs_cmdline $kernel_cmdline + linux /boot/vmlinuz$_kf $initfs_cmdline $kernel_cmdline initrd /boot/initramfs-$_f } EOF |