Bug#966575: How to fix LLVM/LUKS installs?
Colin Watson
cjwatson at debian.org
Tue Aug 4 23:04:17 BST 2020
On Tue, Aug 04, 2020 at 05:08:44PM -0400, Todd Howe wrote:
> ls /media/root/$UUID
> apt install grub
> grub-install --root-directory=/media/root/$UUID /dev/sda
I generally don't recommend this sort of approach. Instead, and
simpler:
for x in dev proc sys; do
mount --rbind "/$x" "/media/root/$UUID/$x"
done
chroot "/media/root/$UUID/$x"
dpkg-reconfigure grub-pc
exit
for x in dev proc sys; do
umount -l "/media/root/$UUID/$x"
done
(Untested and there may be some minor roadblocks, but this is my usual
approach; if you do this interactively then hopefully it'll be
reasonably clear how to make whatever minor adjustments are needed. I
think it's essentially just the bind-mounts that you were missing when
you tried to chroot later on.)
--
Colin Watson (he/him) [cjwatson at debian.org]
More information about the Pkg-grub-devel
mailing list