#!/usr/sbin/sh # # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. # . /lib/svc/share/smf_include.sh . /lib/svc/share/fs_include.sh FILELIST=$SMF_SYSVOL_FS/boot_archive_filelist UPDATEFILE=$SMF_SYSVOL_FS/boot_archive_needs_update smf_is_globalzone || exit $SMF_EXIT_OK # # Now check the archive. # /usr/sbin/bootadm update-archive -vnC 2> /dev/null if [ $? = 0 ]; then exit $SMF_EXIT_OK fi if [[ ! -w / ]]; then cecho "WARNING: The boot archive is out of date but the" cecho "root file system is read-only." smf_is_zone_immutable && cecho "Login using the Trusted Path and" cecho "update the boot archive using 'bootadm update-archive'" cecho "command and then reboot the system from the same device that" cecho "was previously booted." cecho "" exit $SMF_EXIT_OK fi touch $UPDATEFILE exit $SMF_EXIT_OK