Print a message when rebooting due to a stale boot archive
cmd - userland programs
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 over 3 years 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 over 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
git commit e39d848858aa235e4715efe1293ed57ddb0231c5
commit e39d848858aa235e4715efe1293ed57ddb0231c5 Author: Andy Fiddaman <email@example.com> 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 <firstname.lastname@example.org> Reviewed by: Dominik Hassler <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>