diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-05-04 23:07:08 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-05-04 23:07:08 +0400 |
commit | 56005c35a017ffe425734fd7a03f69fdcffb1ccf (patch) | |
tree | f60de547eb48ca4a3edd99a12214b727de7f7075 /bootadm/debian/bootadm.postinst | |
parent | 67524dfee4c91c15000fa6dc19b30d231d794700 (diff) | |
download | illumos-packaging-56005c35a017ffe425734fd7a03f69fdcffb1ccf.tar.gz |
bootadm (2.10+1) unstable; urgency=medium
* Add a possibility to disable boot archive trigger by exporting
DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE, see README.Debian
* Use native version scheme
Diffstat (limited to 'bootadm/debian/bootadm.postinst')
-rw-r--r-- | bootadm/debian/bootadm.postinst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootadm/debian/bootadm.postinst b/bootadm/debian/bootadm.postinst index 49041b6..978a433 100644 --- a/bootadm/debian/bootadm.postinst +++ b/bootadm/debian/bootadm.postinst @@ -3,7 +3,11 @@ set -e trigger_boot_archive() { - /sbin/bootadm update-archive + if [ -z "$DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE" ]; then + /sbin/bootadm update-archive + else + echo "Skipping boot archive update (DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE is set). " >&2 + fi } case "$1" in |