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

Re: Updated installation images for Debian Ports 2019-04-09

On 4/10/19 12:44, John Paul Adrian Glaubitz wrote:
On 4/10/19 12:17 PM, aggaz wrote:
Grub installation failed again with:
"An installation step failed. You can try to run the failing item again
from the menu, or skip it and choose something else. The failing step
is: Install the GRUB boot loader on a hard disk"

On the log window I can see:
Apr 10 09:56:15 main-menu[5707]: (process:20056): /usr/bin/grub-installer:
Apr 10 09:56:15 main-menu[5707]: (process:20056): line 252:
Apr 10 09:56:15 main-menu[5707]: (process:20056):
/usr/lib/grub-installer/mkhfs-bootstrap.sh: Permission denied
Apr 10 09:56:15 main-menu[5707]: (process:20056):
Apr 10 09:56:15 main-menu[5707]: WARNING **: Configuring
'grub-installer' failed with error code 1
Apr 10 09:56:15 main-menu[5707]: WARNING **: Menu item 'grub-installer'

Opened a shell and saw:
~ # ls -l /usr/lib/grub-installer
-rwxr-xr-x    1 root     root         68032 Apr  7 21:31 ensure-active
-rw-r--r--    1 root     root          2610 Apr  5 21:03 mkhfs-bootstrap.sh
-rwxr-xr-x    1 root     root         67888 Apr  7 21:31 prep-bootdev

So, as suggested [3] I changed permissions of mkhfs-bootstrap.sh to 755.
But it failed again with the same error shown on the installer. On the
log I see:
Apr 10 10:09:12 mkhfs-bootstrap: The HFS bootstrap partition couldn't be
found. Cannot continue! Exiting.

That's a different error though and it indicates that Frank's script was
not run properly or not run at all.

The `mkhfs-bootstrap.sh` script does some checking before formatting the
designated HFS bootstrap partition. In total it checks that:

1. The partition has the boot flag set

2. The partition was created with method newworld

3. The partition's designated mount point is `/boot/grub`

Now during my last installation test an hour ago or so I recognized that
one can't define a mount point for that partition in manual mode, though
it is accepted when this is done via a partman-auto recipe.

Not sure what to do. We could remove the last check (and maybe also
update the partman-auto recipe) to be in sync with the possible options
of partman-newworld during manual partitioning, though I find the last
check the "best" check to determine if this partition is the "right" one.

Enhancing partman-newworld to support the definition of a mount point
might not work as expected, as partman-newworld doesn't format the
partition and if the installer expects it to be mountable and mounted
after the partitioning step, things will break.

At this time, I stopped the installation.
Did I partitioned my drive in the wrong way?

No, your partitioning was correct, apart from the missing mount point
which you can't define in manual mode as we found out.

I don't know the proper partitioning setup from the top of my head, so
Frank has to comment on this. But either way, you should refrain from
manual partitioning until we have the proper checks in place.

Exactly, don't use manual partitioning for now.

Or, start with automatic partitioning to get the HFS bootstrap created
as expected by `mkhfs-bootstrap.sh` and only then modify the remaining
partitions at will.


Reply to: