wililupy / ubuntu-onie

13 stars 6 forks source link

Installation step failed: The falling step is: Install the GRUB boot loader on hardisk #2

Open mariusz-stordis opened 2 years ago

mariusz-stordis commented 2 years ago

The installation process goes pretty much to the end and at the end there is some problem with GRUB.

wililupy commented 2 years ago

Can you please provide a screen shot or log dump? I need an error message to assist in troubleshooting.

mariusz-stordis commented 2 years ago

I've already found the error. The problem was the script under BIOS not EFI. But I have three other questions. We can possibly correspond by email.

  1. When manually install GRUB is ok, however how would I like to edit this entry
    # Alternatively, if you want to install to a location other than the mbr,
    -i grub-installer/bootdev string (hd0,1) or
    -i grub-installer/bootdev string (dev/sdb)

    whatever I don't change it can't install GRUB.

    • if I type dev/sdb during manual installation everything is ok - screenshot) 2.After these steps the installation is successful and Ubuntu 20.04 starts but there is no way to select ONIE unless I manually edit grub.cfg 3.Is there any way to edit the ubuntu.bin file build script so that it does a completely offline version of the Ubuntu install?

I am uploading the file.

ubuntu-preseed.zip grub

mariusz-stordis commented 2 years ago

EDIT:

Automatic grub installation works when I change:

d-i grub-installer/bootdev string (/dev/sdb)

to

d-i grub-installer/bootdev boolean dev/sdb

mariusz-stordis commented 2 years ago

Can you please provide a screen shot or log dump? I need an error message to assist in troubleshooting.

Everything is already working. Is it possible to convert this script to work with a full iso image that doesn't require an internet connection?

wililupy commented 2 years ago

In theory, yes. Just change the script so that it pulls the full image from the releases site.

mariusz-stordis commented 2 years ago

Unfortunately, changing the link itself does not work.

wililupy commented 2 years ago

It looks like Canonical removed the legacy ISO files that use the preseed file that I have for this. They have the netboot mini.iso which does the network booting which you don't want for Focal, but not Jammy. I may have to experiment how to do this with the live installer

mariusz-stordis commented 2 years ago

I made a fork. And it works with the FOCAL version of the netboot but there are cases that the switch has no internet. I also saw onie packer has an interesting approach but it doesn't work with me because on 9180 is Kernel version 4 and when I change the image to 20.04 it starts the process but gives errors with kernel. I try to load Kernel with kexec command but it stays in busybox and does nothing. Your script I still have rewritten so that it copies the entire ISO or unzipped ISO to the bin file but I don't know how to force the installer to fire. It would be nice if it would work even without the preseed file. And in automatic mode it's already a fairy tale.

mariusz-stordis commented 2 years ago

If that's not a problem how about contacting via email?