Commit f92a41f7 authored by Natanael Copa's avatar Natanael Copa

scripts: fix -vanilla suffix in bootloaders configs

since commit 697e3045 the vanilla kernel
has a flavor suffix on vmlinuz. Adjust the boot loader configs
parent 2a158182
......@@ -94,15 +94,12 @@ syslinux_gen_config() {
local _f _kf
for _f in $kernel_flavors; do
[ "$_f" = vanilla ] || _kf=-$_f
if [ -z "${xen_params+set}" ]; then
cat <<- EOF
MENU LABEL Linux $_f
KERNEL /boot/vmlinuz$_kf
KERNEL /boot/vmlinuz-$_f
INITRD /boot/initramfs-$_f
APPEND $initfs_cmdline $kernel_cmdline
......@@ -123,13 +120,10 @@ grub_gen_config() {
local _f _kf
echo "set timeout=2"
for _f in $kernel_flavors; do
[ "$_f" = vanilla ] || _kf=-$_f
cat <<- EOF
menuentry "Linux $_f" {
linux /boot/vmlinuz$_kf $initfs_cmdline $kernel_cmdline
linux /boot/vmlinuz-$_f $initfs_cmdline $kernel_cmdline
initrd /boot/initramfs-$_f
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