summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-07-02 18:57:07 +0200
committermaximilian attems <maks@debian.org>2006-07-02 18:57:07 +0200
commit0d341b8d32810844ce035e89a9e60fb7a7dde4b6 (patch)
tree55a7b2d2fe9e9cde049c1e7962b3baef00107c5b /update-initramfs
parent09276c4c9f7deb9a46cf162747b5749f94738c2b (diff)
downloadinitramfs-tools-0d341b8d32810844ce035e89a9e60fb7a7dde4b6.tar.gz
initramfs-tools-0d341b8d32810844ce035e89a9e60fb7a7dde4b6.zip
woow pile of stuff turned up:
- cleanup of activate_vg() in lvm boot script - use less of busybox utilities - conf.d for BUSYBOX=y usage for the packages - don't poke on conffile for RESUME - use printf instead of expr (ooh ash and dash are *fun*) - fix update-initramfs to use current_version when no other version exists around
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs12
1 files changed, 10 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index 2f3ebcf..1826233 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -125,8 +125,7 @@ get_sorted_versions()
for gsv_x in "${STATEDIR}"/*; do
gsv_x="$(basename "${gsv_x}")"
if [ "${gsv_x}" = '*' ]; then
- verbose "Nothing to do, exiting."
- exit 0
+ return 0
fi
worklist=""
for gsv_i in $version_list; do
@@ -212,9 +211,18 @@ update()
set_current_version
fi
+ if [ -z "${version}" ]; then
+ verbose "Nothing to do, exiting."
+ exit 0
+ fi
+
if [ "${version}" = "all" ]; then
: FIXME check for --yes, and if not ask are you sure
get_sorted_versions
+ if [ -z "${version_list}" ]; then
+ verbose "Nothing to do, exiting."
+ exit 0
+ fi
for u_version in ${version_list}; do
if [ "${verbose}" = "1" ]; then
vflag="-v"