[Bug 887320] Re: burg-mkconfig and grub-mkconfig using set variable

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 12:57:11 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

** Changed in: grub2 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/887320

Title:
  burg-mkconfig and grub-mkconfig using set variable

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  Here the following bug :

  cat /etc/burg.d/41_custom 
  #!/bin/sh
  cat <<EOF
  if [ -f  \$prefix/custom.cfg ]; then
    source \$prefix/custom.cfg;
  fi
  menuentry  "SystemRescueCd (iso)" {	
  	insmod lvm
  	insmod ext2
  	set root='(linux-linux_home)'
  	search --no-floppy --fs-uuid --set e6d4eab5-ca7c-4873-b093-8fbd29523c53
  	set isofile='/ulefr01/iso/systemrescuecd-x86-2.3.1.iso'
  	loopback loop $isofile
  	linux (loop)/isolinux/rescuecd isoloop=$isofile setkmap=be 
          initrd (loop)/isolinux/initram.igz
  }
  EOF

  
  when i do : 
  burg-mkconfig -o test.cfg

  cat test.cfg

  ### BEGIN /etc/burg.d/41_custom ###
  if [ -f  $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
  fi
  menuentry  "SystemRescueCd (iso)" {	
  	insmod lvm
  	insmod ext2
  	set root='(linux-linux_home)'
  	search --no-floppy --fs-uuid --set e6d4eab5-ca7c-4873-b093-8fbd29523c53
  	set isofile='/ulefr01/iso/systemrescuecd-x86-2.3.1.iso'
  	loopback loop 
  	linux (loop)/isolinux/rescuecd isoloop= setkmap=be 
          initrd (loop)/isolinux/initram.igz
  }

  The $isofile is empty in the test.cfg

  This same problem occurs with the grub-mkconfig !

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/887320/+subscriptions



More information about the foundations-bugs mailing list