Hello everyone. I'm putting together an Ubuntu Base 20.04 installation and everything is going well expect for the installation of the boot loader. Although everything appears to succeed, it fails to create/link normal.mod in /boot/grub/i386-pc, resulting in a failure to boot. Here are the basic steps I have taken.
1. Boot to Ubuntu live CD
2. Download Ubuntu Base3. Use gparted to create and format two filesystems:
- /boot, ext4, 500MB, set flag to bootable
- OS, ext4, remaining size
4. Mount newly created paritions and create filesystem:
- sudo su -
- mkdir /mnt/base
- mount /dev/sda2 /mnt/base
- tar xvzf /home/ubuntu/Downloads/ubuntu* -C /mnt/base
- mount /dev/sda1 /mnt/base/boot
5 Copy over resolv.conf
- cp /etc/resolv.conf /mnt/base/etc
6 Bind mount and chroot
- for i in /sys /proc /dev; do mount --rbind $i /mnt/base/$i; done && chroot /mnt/base
7. Install stuff (this also brings grub down as a dependency - apt update
- apt install linux-{headers,image}-azure (or whatever kernel is needed)
8. Install the bootloader
- grub-install --boot-directory=/boot /dev/sda
I've also tried just:
- grub-install /dev/sda
And then..
update-grub
The directory structure gets created in /boot, but the only place normal.mod exists is /usr/lib/grub/i386-pc. I suppose I could just link or copy it to /boot/grub/i386-pc, but this seems like it shouldn't be necessary.
Bookmarks