Print a message when rebooting due to a stale boot archive
I just spent a few hours diagnosing why a server was rebooting after an upgrade and it turned out to be because the boot archive was stale and needed rebuilding.
An information message should be printed to the console when rebooting due to this.
Updated by Andy Fiddaman 10 days ago
bloody% pfexec beadm create test Created successfully bloody% pfexec beadm mount test /a Mounted successfully on: '/a' bloody% pfexec bootadm update-archive -R /a bloody% echo | pfexec tee -a /a/etc/versions/build bloody% pfexec beadm umount /a Unmounted successfully bloody% pfexec beadm activate test Activated successfully bloody% pfexec init 6 Connection to bloody closed.
SunOS Release 5.11 Version omnios-ba_reboot-ebcfd43a90 64-bit Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2017-2019 OmniOS Community Edition (OmniOSce) Association. Hostname: bloody WARNING: Reboot required. The system has updated the cache of files (boot archive) that is used during the early boot sequence. To avoid booting and running the system with the previously out-of-sync version of these files, the system will be restarted. WARNING: Fast reboot is not supported on this platform due to presence of boot-time modules syncing file systems... done rebooting...
Updated by Electric Monk 4 days ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit e39d848858aa235e4715efe1293ed57ddb0231c5 Author: Andy Fiddaman <firstname.lastname@example.org> Date: 2019-10-11T21:19:23.000Z 11782 reboot -f ends up creating bad /boot/transient.conf 11783 Print a message when rebooting due to a stale boot archive Reviewed by: Toomas Soome <email@example.com> Reviewed by: Dominik Hassler <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>