Commit aad95554 authored by maximilian attems's avatar maximilian attems

update_initramfs tristate variable "all"

allow admin to set that an update-initramfs postinst call
should update any known initramfs.
parent b6c51233
......@@ -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
......
......@@ -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
......
......@@ -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
......
.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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment