------- Comment From [email protected] 2015-08-26 14:34 EDT-------
Canonical,

The problem here is the grub-installer script expects SCSI disks w/ only one 
letter (/dev/sda), but this scenario has two (/dev/sdaf).
This misclassifies the disk, and the script fails.

Script grub-install, line 327 [1]:
/dev/[hmsv]d[a-z0-9]|...)

It works with this change, at install time:
~ # sed '327 s,|,*|,' -i /usr/bin/grub-installer
So that line is now:
/dev/[hmsv]d[a-z0-9]*|...)

[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/grub-
installer/wily/view/head:/grub-installer#L327

Debugging tip
-------------------

I debugged it by reading the bash traces with this change:
-#set -x
+set +x; exec 2>/g-i.stderr
and noticed this:
+ prefix=/dev/sdaf
+ echo /dev/sdaf2
+ sed s:\(.*\)/.*:\1/disc:
+ disc_offered_devfs=/dev/disc
+ mapdevfs /dev/disc
+ disc_offered=

Verification
---------------

Differences in syslog:
Before:
<...> grub-installer: info: architecture: ppc64el/chrp_ibm
<...> grub-installer: info: Mounting /proc into /target
<...> in-target: <...>
<...> main-menu[295]: WARNING **: Configuring 'grub-installer' failed with 
error code 1
<...> main-menu[295]: WARNING **: Menu item 'grub-installer' failed.
After:
<...> grub-installer: info: architecture: ppc64el/chrp_ibm
<...> grub-installer: info: Mounting /proc into /target
<...> in-target: <...>
<...> grub-installer: info: Identified partition label for /dev/sdaf2: gpt
<...>
<...> grub-installer: info: grub-install ran successfully

------- Comment From [email protected] 2015-08-26 14:38 EDT-------
Typo here (set -x/+x)
+set +x; exec 2>/g-i.stderr
+set -x; exec 2>/g-i.stderr

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

Title:
  ISST-SAN: fsp-chip: Alpine: LE-UBUNTU 15.10: LPAR chip01 unable to
  install base OS due to inability to install the GRUB boot loader on
  hard disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1479213/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to