Commits

Uelsk8s committed 6400cd0

fix grub splash entry if no initrd found

Comments (0)

Files changed (1)

var/vabs/grub2/src/10_linux

   cat << EOF
 menuentry "$1" {
 EOF
+  if test -n "${initrd}" ; then
   prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
   cat << EOF
 	linux16	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro quiet splash vga=$VGA $2
 EOF
+  else
+  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
+  cat << EOF
+	linux16	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro quiet vga=$VGA $2
+EOF
+  fi
   if test -n "${initrd}" ; then
     cat << EOF
 	initrd16 ${rel_dirname}/${initrd}