WoeUSB-ng icon indicating copy to clipboard operation
WoeUSB-ng copied to clipboard

Grub dependency isn't available for Ubuntu for ARM

Open rgov opened this issue 6 months ago • 0 comments

The list of dependencies for Ubuntu includes grub-pc-bin, which is only published for amd64.

You can work around this by passing --workaround-skip-grub or using the "Skip legacy grub bootloader" in the Options menu of woeusbgui.


Looking over the package contents it does not obviously contain any executables that might be run during the install process...

So I decided to YOLO it:

$ wget http://security.ubuntu.com/ubuntu/pool/main/g/grub2/grub-pc-bin_2.04-1ubuntu26.12_amd64.deb
$ mkdir debwork
$ dpkg-deb -R grub-pc-bin_2.04-1ubuntu26.12_amd64.deb debwork
$ sed -i '/^Depends:/d' debwork/DEBIAN/control
$ sed -i 's/^Architecture: amd64/Architecture: arm64/' debwork/DEBIAN/control 
$ dpkg-deb -b debwork HORRIBLE-grub-pc-bin.deb
$ sudo dpkg -i HORRIBLE-grub-pc-bin.deb 

The GRUB install step seemed to succeed but I didn't investigate much further than that. My AMD64 device booted the thumb drive successfully but I don't know if it went through GRUB.

rgov avatar Jan 15 '24 03:01 rgov