tags 691264 pending thanks On 10/23/2012 02:32 PM, Lennart Sorensen wrote: > On Tue, Oct 23, 2012 at 02:03:46PM -0400, Milan Kupcevic wrote: >> Partitioning recipe for IBM Power machines already creates PReP >> partition for yaboot. If we do check for PReP partition in addition to >> /boot/grub to allow grub installer it will make grub the default >> bootloader on IBM Power machines for wheezy. Actually, we can enable grub-installer on IBM Power machines in wheezy. Yaboot-installer will stay the default option because it has higher menu-item priority. Grub-installer will become an optional item that user can choose in expert installation mode. In this case the current partitioning recipe will work for grub, too. >> >> This would be great if we are sure that d-i installs grub with no >> issues. I did not test it, so I'm not quite sure. > > It does seem a bit late for wheezy. And at least yaboot now seems to > be a version that might actually work. I seem to recall some issues > with ofpathname, but I can't quite remember what they were right now or > whether they were fixed or not. A quick check says that yes indeed in > wheezy the ofpathname issue (bug 607001) was fixed. > > Actually given grub is 1.99 in wheezy I think it is safe to say it > won't work in a number of cases. 2.00 fixed some endianess issues with > software raid among other things that matter to powerpc, which is why > I am running grub 2.00 and not 1.99 now. The older versions were OK > with the old mdraid format, but not the 1.x format which is of course > now the default in debian's installer. >
diff --git a/debian/changelog b/debian/changelog
index 204cc11..cf478cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ grub-installer (1.83) UNRELEASED; urgency=low
* Allow grub installation on PowerPC machines if /boot/grub partition
is present. Closes: #664128
+ * Allow grub installation on IBM Power machines. Closes: #691264
- -- Milan Kupcevic <milan@physics.harvard.edu> Mon, 22 Oct 2012 17:39:07 -0400
+ -- Milan Kupcevic <milan@physics.harvard.edu> Wed, 24 Oct 2012 09:22:28 -0400
grub-installer (1.82) unstable; urgency=low
diff --git a/debian/isinstallable b/debian/isinstallable
index 89fadb7..c86173f 100755
--- a/debian/isinstallable
+++ b/debian/isinstallable
@@ -15,6 +15,8 @@ case $ARCH in
exit 1
fi
;;
+ powerpc/chrp|powerpc/chrp_rs6k|powerpc/chrp_ibm|powerpc/cell)
+ ;;
powerpc/*)
mount | grep "on /target/boot/grub" 1>&2 || {
log "GRUB requires OF bootable partition mounted at /boot/grub on PowerPC systems"
diff --git a/grub-installer b/grub-installer
index 7056f11..d709de0 100755
--- a/grub-installer
+++ b/grub-installer
@@ -225,6 +225,8 @@ bootfstype=$(findfstype /boot)
[ -n "$bootfstype" ] || bootfstype="$(findfstype /)"
case $ARCH in
+ powerpc/chrp|powerpc/chrp_rs6k|powerpc/chrp_ibm|powerpc/cell)
+ ;;
powerpc/*)
offs=$(findfs /boot/grub)
[ -n "$offs" ] || error "GRUB requires that the OF partition is mounted in /boot/grub" 1>&2
Attachment:
signature.asc
Description: OpenPGP digital signature