Hi all,
I just attempted upgrading from Ubuntu 18.04.4 LTS to 20.04 LTS and found my grub config was hosed. I can see the new kernels in /boot
This is my disk-layout
NAME FSTYPE LABEL UUID MOUNTPOINT
sr0
xvda
├─xvda1 ext2 ca3c4b9e-417d-49c4-bbf9-1a721b256b1f /boot
├─xvda2
├─xvda3 LVM2_member fWFXlh-O1Nr-qqsT-ZeCj-BTp3-3DA7-cCAzoX
│ └─gitlab--vg-root ext4 a6df0d99-1813-4511-bd4e-953b1fdeb304 /
├─xvda4 LVM2_member HSbyEz-SM5f-Qp1a-275C-n7z1-UfeS-dFBhco
│ └─gitlab--vg-root ext4 a6df0d99-1813-4511-bd4e-953b1fdeb304 /
└─xvda5 LVM2_member wv22ai-RQLB-Khyp-esKa-9pDh-Hv2H-SjRAww
├─gitlab--vg-root ext4 a6df0d99-1813-4511-bd4e-953b1fdeb304 /
└─gitlab--vg-swap_1 swap 416a1c87-b4b1-4d81-93c9-491c35abc6f5 [SWAP]
mdesilva@ubuntu-builder0:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.1M 1.6G 1% /run
/dev/mapper/gitlab--vg-root 195G 155G 32G 84% /
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/xvda1 472M 213M 235M 48% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/1001
Logical volume /dev/gitlab-vg/root
From within a chroot (in /rescue
and xvda1
mounted at /rescue/boot
), I tried to reinstall grub, however, I’m getting the following: Screenshot as I’m using lightsout console access for my VM:
Any ideas?