godarch / darch

A tool for building and booting stateless and immutable images, bare metal.
https://godarch.com/
MIT License
832 stars 32 forks source link

Grub not being run/can't be run #48

Open phunni opened 4 years ago

phunni commented 4 years ago

It doesn't appear that running stage upload updates grub afterwards. There is no related error message, but after doing a stage upload and rebooting, I seem to be in the same image. This is based on the fact that pacman -Syu return a large list of updates - despite the latest image having been built with the last hour. If I try and manually run "grub-mkconfig -o /boot/grub/grub.cfg" I get the following error:

/usr/bin/grub-probe: error: failed to get canonical path of `overlay'.

I'm guessing that, perhaps, this issue is related to this one?

I am running all of this on a booted darch image which is in common with that image at least.

phunni commented 4 years ago

bump?

pauldotknopf commented 4 years ago

This sounds like it might be similar to that other issue.

Here are my mounts.

UUID=5DD7-D4DC          /boot/efi   vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2
UUID=ee69ed43-b54f-4a2e-83a5-7cd9b67d394c   /etc/darch  ext4        rw,relatime 0 2
UUID=4819fb13-c364-4d23-821e-1d58963286f1   /var/lib/darch  ext4        rw,relatime 0 2
UUID=ac2be534-0ffa-4482-86d2-d570145336f0   /home       ext4        rw,relatime 0 2
UUID=cf1dffd5-2cb6-479e-9100-e8a63d26a2b9   /rootfs     ext4        rw,relatime 0 2
UUID=f9df641b-6cea-43a4-b8f0-20cf12df8302   none        swap        defaults,pri=-2 0 0

I think the root issue is grub throwing that error. I'm not sure what to do with that on my end, since I can't reproduce it.

aaroncwhite commented 4 years ago

I also had issues with the /etc/darch/grub.cfg loading- even after making a separate partition for /etc/darch. Splitting my /boot folder into it's own partition instead of being part of the root file system seems to have solved the issue for me.