summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-08-09 21:22:10 +0200
committermaximilian attems <maks@debian.org>2007-08-09 21:22:10 +0200
commitaad955549a7f103ff92520f37726344cc08797ec (patch)
treecb7978bd4f34c216f32c828412b068dda8349af3
parentb6c5123351ce61299532e10ab933d21704e8a30b (diff)
downloadinitramfs-tools-aad955549a7f103ff92520f37726344cc08797ec.tar.gz
initramfs-tools-aad955549a7f103ff92520f37726344cc08797ec.zip
update_initramfs tristate variable "all"
allow admin to set that an update-initramfs postinst call should update any known initramfs.
-rw-r--r--conf/update-initramfs.conf3
-rw-r--r--debian/changelog5
-rwxr-xr-xupdate-initramfs4
-rw-r--r--update-initramfs.conf.53
4 files changed, 11 insertions, 4 deletions
diff --git a/conf/update-initramfs.conf b/conf/update-initramfs.conf
index 278c51c..c08c6ed 100644
--- a/conf/update-initramfs.conf
+++ b/conf/update-initramfs.conf
@@ -3,9 +3,10 @@
#
#
-# update_initramfs [ yes | no ]
+# update_initramfs [ yes | all | no ]
#
# Default is yes
+# If set to all update-initramfs will update all initramfs
# If set to no disables any update to initramfs beside kernel upgrade
update_initramfs=yes
diff --git a/debian/changelog b/debian/changelog
index 1097e16..97d9f26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,11 +19,14 @@ initramfs-tools (0.90~beta1) UNRELEASED; urgency=low
creation in chroot for debian-live and other. (closes: #433190)
Thanks Kel Modderman <kel@otaku42.de> for the patch.
* update-initramfs: Improve "altered" error message. (closes: #436752)
+ * update-initramfs, update-initramfs.conf: update_initramfs config variable
+ is tristate. Set to 'all' to update any initramfs: $(update-initramfs -u).
+ Allows specific admin setting. (closes: #425050)
[ David Härdeman ]
* hook-functions: Protect all variable with local, plus coding style fixes.
- -- maximilian attems <maks@debian.org> Thu, 09 Aug 2007 20:44:27 +0200
+ -- maximilian attems <maks@debian.org> Thu, 09 Aug 2007 21:20:34 +0200
initramfs-tools (0.89) unstable; urgency=low
diff --git a/update-initramfs b/update-initramfs
index 61f809e..774da61 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -464,7 +464,8 @@ if [ -z "${mode}" ]; then
usage "You must specify at least one of -c, -u, or -d."
fi
-if [ "${version}" = "all" ]; then
+if [ "${version}" = "all" ] \
+ || ( [ "${update_initramfs}" = "all" ] && [ -z "${version}" ] ); then
: FIXME check for --yes, and if not ask are you sure
get_sorted_versions
if [ -z "${version_list}" ]; then
@@ -492,6 +493,7 @@ if [ "${version}" = "all" ]; then
exit 0
fi
+
case "${mode}" in
c)
create
diff --git a/update-initramfs.conf.5 b/update-initramfs.conf.5
index 302cffe..58e3cc4 100644
--- a/update-initramfs.conf.5
+++ b/update-initramfs.conf.5
@@ -1,4 +1,4 @@
-.TH UPDATE-INITRAMFS.CONF 5 "$Date: 2006/12/22 $" "" "update-initramfs.conf manual"
+.TH UPDATE-INITRAMFS.CONF 5 "$Date: 2007/08/09 $" "" "update-initramfs.conf manual"
.SH NAME
update-initramfs.conf \- configuration file for update-initramfs
@@ -12,6 +12,7 @@ The configuration file allows to disable the update action from
\fB update_initramfs
Default is \fIyes\fP for running the latest initramfs-tools hooks in the
newest Linux image.
+Setting it to \fIall\fP updates any known initramfs.
It is possible to set it to \fIno\fP for remote servers or boxes where
conservative manners needs to be applied. This disables
the \fBupdate_initramfs -u\fP call.