Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] systemd reboot



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



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org