[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New discussion: ppc64 installer -- ext2 /boot partition to keep yaboot happy.



On 10/08/2017 11:07 PM, Rick Thomas wrote:
> So let me get this straight.  Please fill in the places where I have left ????.
> The procedure we need to follow is:
> 
> 0) do an “expert” mode install so we get a chance to intervene manually when necessary

Just perform a standard textmode install.

> 1) When the installer gets to partitioning, choose manual and:
>  1a) create a 256MB (or larger) ext2 partition with mount point /boot

There is no need for a small partition mounted to /boot. GRUB doesn't have the
limitations that Yaboot has in this regard, so we don't need that.

>  1b) create a 10MB (or larger) “unused” bootable, partition with no mount point

Yes, this should be the first partition.

>  1c) Do whatever we like for / (root) and all the rest.

Yes.

> 2) Allow the partitioning step to complete and format the partitions (this will *not*
> format the HFS bootstrap partition because that part hasn’t been written yet.

Yes.

> But it *will* format the ext2 /boot.)

Again, no ext2 /boot needed.

> 3) Choose “install yaboot” to get the HFS partition formatted.  Or:
>  3a) Alternatively, break out into a shell and use hfsutils to format it.  How, in detail, would one do this ????

Read the manpage of hfsutils. It explains how to use it.

Most likely you want something like

	hformat -l "GRUB" /dev/sda1
.

>  3b) If hfsutils is not yet available, install it by doing ????

chroot /target
apt install hfsutils
exit

> 4) Break out into a shell and:
>  4a) mount the newly formatted HFS partition on /target/boot/grub

Yes.

>  4b) remove the yaboot stuff (e.g. “rm /target/boot/grub/*”) so it will have to use grub during the reboot phase.

There won't be any Yaboot files left after you formatted the partition.

>  4b) verify that grub-install is available.  If not, ????

chroot /target
apt install grub-ieee1275
exit

>  4c) install grub with grub-install using some parameters ????

grub-install /dev/sda1

> 5) Return from the breakout shell and allow the installation to proceed to completion.
>  5a) When it gets to “install bootloader” choose “proceed without bootloader”.

Once debian-installer has attempted either the Yaboot installation or GRUB installation,
it will not try to do it again.

> 6) allow it to reboot.  Observe it using grub — or not.  If all goes well, this will happen automatically.  If not ????

If not, re-read the documentation, modify parameters and try again.

Again, I haven't performed any tests on NewWorld Macs myself yet, so I cannot give
you precise instructions. Just use trial and error and write down what you did.

Frank has already written down an extensive list of instructions on how to install
GRUB on NewWorld Macs. However, he used grub-mkimage which I don't want to use
but rather GRUB's own "grub-install" script.

What we need is:

* Knowledge of the proper partitioning for partman-auto
* Finding a mechanism to find the boot partition (look at the grub-installer
  script from debian-installer how it's done for other architectures)
* Writing down the steps for properly HFS formatting and mounting /boot/grub
* Finding the proper command line for grub-install which needs to be added
  to grub-installer, i.e. "grub-install /dev/sda1"

PS: Please don't confuse "grub-install" and "grub-installer". The former is GRUB's
    own installation script, the latter is the GRUB installer script of d-i we need
    to modify to perform the steps above.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: