grub---problem

Oliver Grawert ogra at ubuntu.com
Sun Nov 29 19:51:12 UTC 2015


hi,
Am Sonntag, den 29.11.2015, 20:04 +0100 schrieb Ralf Mardorf:
> On Sun, 29 Nov 2015 18:46:58 +0100, Nils Kassube wrote:
> > sudo grub-install --boot-directory=/mnt/boot /dev/sda
> 
> That's perhaps easier, than to chroot (systemd-nspawn) and detailed
> explained here:
> 
> https://help.ubuntu.com/community/Grub2/Installing#via_the_LiveCD_ter
> minal
why do you permanently try to promote systemd-nspawn ... especially in
this context it doesnt help a bit, it is not available on any ubuntu
livecd, the chroot command is though and is well documented ...

> The chroot or systemd-nspawn might still be useful, but indeed,
> grub-install not necessarily requires it.
> 
> grub-mkconfig has got the -o option, so this should work without a
> chroot too.
> http://manpages.ubuntu.com/manpages/wily/man8/grub-mkconfig.8.html
> 
> I suspect that chroot is only required, if there should be the need
> to
> reinstall the grub2 packages.

the chroot is required because grub in ubuntu never uses grub-mkconifg
directly, instead you use update-grub which assembles the proper ubuntu
config from info on the rootfs ... 
ergo: you need to chroot if you need to generate a config ...
if the OP is just repairing a messed up boot record using grub-install
for a system that has a working config already, then the chrooting is
indeed not necessary ...

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20151129/812d8cec/attachment.pgp>


More information about the ubuntu-users mailing list