Project

General

Profile

Actions

Bug #11783

closed

Print a message when rebooting due to a stale boot archive

Added by Andy Fiddaman over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

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.

Actions #1

Updated by Andy Fiddaman over 3 years ago

Testing:

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...
Actions #2

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 <omnios@citrus-it.co.uk>
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 <tsoome@me.com>
    Reviewed by: Dominik Hassler <hadfl@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF