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 | |
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
-rw-r--r-- | bootadm/debian/README.Debian | 6 | ||||
-rw-r--r-- | bootadm/debian/bootadm.postinst | 6 | ||||
-rw-r--r-- | bootadm/debian/changelog | 8 | ||||
-rwxr-xr-x | bootadm/debian/rules | 2 |
4 files changed, 20 insertions, 2 deletions
diff --git a/bootadm/debian/README.Debian b/bootadm/debian/README.Debian new file mode 100644 index 0000000..138a903 --- /dev/null +++ b/bootadm/debian/README.Debian @@ -0,0 +1,6 @@ +The bootadm package provides a trigger "boot-archive". It is usually activated +in posstinst scripts of kernel related packages like driverdb or kmdb. + +To disable this trigger export the DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE +environment variable (any value). It is useful when creating livecd images +where we need a special boot archive, not the default one. 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 diff --git a/bootadm/debian/changelog b/bootadm/debian/changelog index a9ca4aa..dc16374 100644 --- a/bootadm/debian/changelog +++ b/bootadm/debian/changelog @@ -1,3 +1,11 @@ +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 + + -- Igor Pashev <pashev.igor@gmail.com> Sun, 04 May 2014 23:03:55 +0400 + bootadm (2.10-3) unstable; urgency=low * Strip binaries diff --git a/bootadm/debian/rules b/bootadm/debian/rules index a456555..ed97ad2 100755 --- a/bootadm/debian/rules +++ b/bootadm/debian/rules @@ -80,6 +80,6 @@ binary-stamp: build-stamp clean: unpatch dh_testdir dh_testroot + rm -rf usr .pc dh_clean - rm -rf usr |