Re: Update Debian Ports installation images 2021-04-14
On 4/15/21 4:07 PM, Johannes Brakensiek wrote:
> Hi Adrian,
>
> thanks for your work again!
>
> On 14 Apr 2021, at 22:43, John Paul Adrian Glaubitz wrote:
>
>> Let me know how the image works for you, then I can commit the changes
>> for
>> the grub-installer package to git when we know it works for most
>> people for
>> the time being.
>
> I now found some time to run the install procedure from USB disks (I
> could boot fine via `boot ud:\boot\grub\powerpc.elf`). I did a very
> default install with the preset partition table. But it failed at
> installing grub at the end of the installation procedure. I can see the
> obvious: It is not correct to install grub to /dev/sdb3 as this is the
> partition that was created for swap. But there seems to be even more
> going wrong:
>
> ```
> Apr 15 19:52:24 grub-installer: info: Installing grub on '/dev/sdb3'
> Apr 15 19:52:24 grub-installer: info: grub-install does not support
> --no-floppy
> Apr 15 19:52:24 grub-installer: info: Running chroot /target
> grub-install --macppc-directory=/boot/grub --no-nvram --force
> Apr 15 19:52:24 grub-installer: Installing for powerpc-ieee1275 platform.
> Apr 15 19:52:25 grub-installer: grub-install: error: filesystem on
> /boot/grub is neither HFS nor HFS+
> Apr 15 19:52:25 grub-installer: .
> Apr 15 19:52:25 grub-installer: error: Running 'grub-install
> --macppc-directory=/boot/grub --no-nvram --force failed.
> Apr 15 19:55:20 main-menu[245]: (process:4796): dpkg-divert: warning:
> diverting file '/sbin/start-stop-daemon' from an Essential package with
> rename is dangerous, use --no-rename
> Apr 15 19:55:20 main-menu[245]: (process:4796): dpkg-divert: warning:
> diverting file '/sbin/start-stop-daemon' from an Essential package with
> rename is dangerous, use --no-rename
> Apr 15 19:55:20 main-menu[245]: (process:4796): dpkg-divert: warning:
> diverting file '/sbin/start-stop-daemon' from an Essential package with
> rename is dangerous, use --no-rename
> Apr 15 19:55:20 main-menu[245]: (process:4796): grub-probe: error:
> Apr 15 19:55:20 main-menu[245]: (process:4796):
> Apr 15 19:55:20 main-menu[245]: (process:4796): failed to get canonical
> path of `/boot/grub'
> ```
>
I also see similar behavior. However I simply used the most trivial
partition options in the default installer AND with the expert mode and
in both cases I see in partman log :
* * * * default mode stuff * * * * *
/lib/partman/finish.d/75reformat_after_restart: IN: PARTITIONS =dev=sda
parted_server: Read command: PARTITIONS
parted_server: command_partitions()
parted_server: Opening outfifo
parted_server: OUT: OK
parted_server: OUT: 1 512-32767 32256 primary unknown /dev/sda1 Apple
parted_server: OUT: 2 32768-1033215 1000448 primary hfs /dev/sda2 untitled
parted_server: OUT: 3 1033216-299045033471 299044000256 primary ext4
/dev/sda3 untitled
parted_server: OUT: 4 299045033472-300069027327 1023993856 primary
linux-swap /dev/sda4 swap
parted_server: OUT: -1 300069027328-300069052415 25088 primary free
/dev/sda-1
parted_server: Partitions printed
parted_server: OUT:
So there we do see /dev/sda3 is the single large ext4 filesystem for
everything. There is no separate /boot or /boot/grub. Perhaps /dev/sda2
should be the /boot/grub ? I don't know.
Regardless the syslog reports :
Apr 15 03:09:17 grub-installer: info: Installing grub on '/dev/sda3'
Apr 15 03:09:17 grub-installer: info: grub-install does not support
--no-floppy
Apr 15 03:09:17 grub-installer: info: Running chroot /target
grub-install --macppc-directory=/boot/grub --no-nvram --force
Apr 15 03:09:17 grub-installer: Installing for powerpc-ieee1275 platform.
Apr 15 03:09:19 grub-installer: grub-install: error: filesystem on
/boot/grub is neither HFS nor HFS+.
Apr 15 03:09:19 grub-installer: error: Running 'grub-install
--macppc-directory=/boot/grub --no-nvram --force failed.
* * * * expert mode stuff * * * * *
parted_server: Read command: PARTITIONS
parted_server: command_partitions()
parted_server: Opening outfifo
parted_server: OUT: OK
parted_server: OUT: 1 512-32767 32256 primary unknown /dev/sda1 Apple
parted_server: OUT: 2 32768-1033215 1000448 primary hfs /dev/sda2 untitled
parted_server: OUT: 3 1033216-299045033471 299044000256 primary ext4
/dev/sda3 untitled
parted_server: OUT: 4 299045033472-300069027327 1023993856 primary
linux-swap /dev/sda4 swap
parted_server: OUT: -1 300069027328-300069052415 25088 primary free
/dev/sda-1
parted_server: Partitions printed
parted_server: OUT:
That looks similar.
Apr 15 02:43:00 grub-installer: info: Installing grub on '/dev/sda3'
Apr 15 02:43:00 grub-installer: info: grub-install does not support
--no-floppy
Apr 15 02:43:04 grub-installer: info: Running chroot /target
grub-install --macppc-directory=/boot/grub --no-nvram --force
Apr 15 02:43:05 grub-installer: Installing for powerpc-ieee1275 platform.
Apr 15 02:43:05 grub-installer: grub-install: error:
Apr 15 02:43:05 grub-installer: filesystem on /boot/grub is neither HFS
nor HFS+.
Apr 15 02:43:05 grub-installer: error: Running 'grub-install
--macppc-directory=/boot/grub --no-nvram --force failed.
So it seems that I should try again but manually create a /boot
filesystem that is what? Apple HFS somehow ?
I sent the log files in a previous email to John Paul Adrian Glaubitz
and this list. It "feels like" everything should just work with a minor
tweak somewhere.
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
Reply to: