diff options
author | maximilian attems <maks@debian.org> | 2007-08-09 21:22:10 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2007-08-09 21:22:10 +0200 |
commit | aad955549a7f103ff92520f37726344cc08797ec (patch) | |
tree | cb7978bd4f34c216f32c828412b068dda8349af3 /update-initramfs | |
parent | b6c5123351ce61299532e10ab933d21704e8a30b (diff) | |
download | initramfs-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.
Diffstat (limited to 'update-initramfs')
-rwxr-xr-x | update-initramfs | 4 |
1 files changed, 3 insertions, 1 deletions
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 |