Bug#966575: How to fix LLVM/LUKS installs?
Todd Howe
todhowe at sourcefire.com
Tue Aug 11 17:51:17 BST 2020
I got around to fixing my desktop today. In addition to the instructions I
posted above and the procedure to mount system directories below, there was
only one necessary change:
https://gist.github.com/samuelcolvin/43c5ed2807e7db004b1058d0c9bfb068
That guy suggested used grub-install /dev/sda instead of dpkg-reconfigure
grub-pc.
That worked no problem. Thanks for your help!
Todd
On Tue, 4 Aug 2020 23:04:17 +0100 Colin Watson <cjwatson at debian.org> wrote:
> 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]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20200811/523649db/attachment.html>
More information about the Pkg-grub-devel
mailing list