[Bug 1316968] Re: grub-2 file 10_lupin wrong partition_table

syscon-hh syscon.kono at freenet.de
Thu May 8 14:18:44 UTC 2014


As workaround we inserted in the file "10_lupin" - see last 4 lines:

******
 if [ x$type != xrecovery ] ; then
      save_default_entry | sed -e "s/^/\t/"

      echo "	gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
  fi

  echo  "              insmod gzio" | sed "s/^/$submenu_indentation/"

  part_table=$( ${grub_probe} --device ${GRUB_DEVICE_BOOT} --target=partmap )
  if [ ! "x$part_table" = "x" ]; then 
      echo "	insmod part_$part_table" | sed "s/^/$submenu_indentation/" 
  fi 
******

so the menuentry shows after "sudo update-grub" :

******
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9d02382b-d877-4844-b33b-033f83da7bd8' {
	gfxmode $linux_gfx_mode
	insmod gzio
        insmod part_gpt
	insmod ntfs
	set root='hd1,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  2072C65972C632F8
	else
	  search --no-floppy --fs-uuid --set=root 2072C65972C632F8
	fi
	loopback loop0 /ubuntu/disks/root.disk
	set root=(loop0)
	linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=2072C65972C632F8 loop=/ubuntu/disks/root.disk rw   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-24-generic
}
******

The whole revised file see attachment

** Attachment added: "10_lupin"
   https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1316968/+attachment/4108078/+files/10_lupin

-- 
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/1316968

Title:
  grub-2 file 10_lupin wrong partition_table

Status in “grub2” package in Ubuntu:
  New

Bug description:
  Using the wubi trusty-thar (14.04 lts) installation, the upstart don't
  finishes on a

   * guid partition table formatted device / harddisk.

  The package / files

   * "10_lupin" 
   * "usr/share/grub/mkconfig_lib"

  generates while ->  sudo update-grub

  (only relevant lines copied)

  menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c885195e-c258-4459-9115-85102cf401bc' {
  	gfxmode $linux_gfx_mode
  	insmod gzio
  	insmod ntfs
  	set root='hd1,gpt2'
  	if [ x$feature_platform_search_hint = xy ]; then
  ....

  The line "set root=i'hd1,gpt2' is showing the correct information, but
  it's missing a line with

   * insmod part_gpt

  so the following lines

   * search --no-floppy --fs-uuid --set=root 2072C65972C632F8
   * loopback loop0 /ubuntu/disks/root.disk

  won't work and the upstart will stop undifined.

  Inserting the missing line into the "/boot/grub/grub.cfg" manually,
  lets the wubi-installation working as expected.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: grub-common 2.02~beta2-9
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.2-0ubuntu2
  Architecture: amd64
  Date: Wed May  7 09:48:50 2014
  InstallationDate: Installed on 2012-10-02 (581 days ago)
  InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121002)
  ProcEnviron:
   LANGUAGE=de_DE
   TERM=xterm
   PATH=(custom, no user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list