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

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



Hi Adrian,

On 10/19/2017 11:19 AM, John Paul Adrian Glaubitz wrote:
* Modifying the NVRAM to automatically boot GRUB. But this can be done easily from OF itself,
e.g. with `boot hd:2,BootX` with my modifications.

How does yaboot-installer do it?

It uses the `nvsetenv` tool via `ybin`, but the above was more of a "not implemented yet" bullet point. It should work the same for d-i/grub-installer when implementing functionality with `nvsetenv` or `nvram` tools. The NVRAM config done by `grub-install` uses a non-working OF path, i.e.:

```
/ht@0,f2000000/pci@9/k2-sata-root@c/scsi@0/sd@0,0:2,\\BootX
```

...instead of:

```
/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0:2,\System\Library\CoreServices\BootX
```

...so doesn't work anyhow - at least not on my PowerMac11,2

As my modifications also install the boot script in the root directory of the NewWorld boot partition, I can simply boot it with `boot hd:2,BootX`.

[...]
So, assuming that additional templates with unique names won't hurt other existing code, I suggest the following patch to d-i/grub-installer:

I can just upload updated versions of the packages to the Debian Ports FTP servers
for testing and before committing any changes to git.

I see, I'm just afraid of killing already working functionality for other users with my patches.

[...]
@Adrian:
What do you think?

My suggestion would be that you send me the necessary patches for all packages that need to be patched. I'll then build and upload patched versions of those packages,
then rebuild updated installation images.

We can then test your changes and if everything works, I'll commit your patches.

Ok then, attached are two patches (one for d-i/partman-auto and one for d-i/grub-installer).

The patch for d-i/partman-auto increases the size of the NewWorld boot partition to 10 MB for all selections.

The code for d-i/grub-installer currently executes the `nw_select_offs_part` part but always selects `/dev/sda2` as NewWorld boot partition afterwards as I don't yet know how this will behave with the debconf templates in place. The main part for NewWorld Power Macs currently runs before `grub-ieee1275` is installed in-target, as it was easier to concentrate things at this specific case clause, but this can be reordered later.

Using this code during an expert installation with the ISO from 2017-10-10 and most likely also the latest ISO on a PowerMac11,2 with a single SATA disk and selecting the GRUB installation instead of the yaboot installation results in a working system that needs to be manually booted with `boot hd:2,BootX` as already mentioned above. As the default kernel arguments from GRUB include "quiet", most of the kernel and systemd messages are omitted during boot.

Cheers,
Frank

Attachment: d-i-grub-installer.diff.gz
Description: application/gzip

Attachment: d-i-partman-auto.diff.gz
Description: application/gzip


Reply to: