[Discuss] systemd reboot

Mike Small smallm at sdf.org
Sat Mar 3 21:56:51 EST 2018


jbk <jbk at kjkelra.com> writes:

> On 03/03/2018 08:20 AM, Richard Pieri wrote:
>> On 3/2/2018 9:09 PM, Mike Small wrote:
>>> I see behaviour where if I change something under /etc/grub.d/, run
>>> update-grub and then immediately run /sbin/reboot, upon start up grub
>>> sees the old grub.cfg not the new one. This is a Ubuntu Xenial based
>> I don't think systemd has anything to do with it. My guess is that you
>> have more than one /boot/grub on the system (perhaps a replica, perhaps
>> a dual-boot system), possibly more than one grub2 installed, and the
>> active loader is reading from one of those alternate /boot/grub points.
>>
> I'd have to agree with Rich that it is something to do with the path
> to the active grub.cfg.
>
> On Fedora I use this command to effect grub updates:
>
> grub2-mkconfig --output=/boot/grub2/grub.cfg

update-grub does exactly that.

>
> The update-grub command you are using is probably a plain text script
> in /bin or /sbin that issues the same as above.
>
> The other place you might look is /var/log/grubby which on my system
> is a record of every manual or scripted update of
> /boot/grub(2)/grub.cfg.
>
> Look at the UUID's for the root partition it is pointing to if you
> multi boot distro's or versions.

Multiboot isn't involved.

-- 
Mike Small
smallm at sdf.org



More information about the Discuss mailing list