summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-03-23 23:53:03 +0100
committermaximilian attems <maks@debian.org>2010-03-24 00:04:22 +0100
commitd50ca3a902ad834e2bacc2fe81e053a513b7748e (patch)
tree5b7acc76ebe8e42293be2595fb902c9c44697878 /update-initramfs
parent1277b2e7590a3a1354440472da497b68e8ba5385 (diff)
downloadinitramfs-tools-d50ca3a902ad834e2bacc2fe81e053a513b7748e.tar.gz
initramfs-tools-d50ca3a902ad834e2bacc2fe81e053a513b7748e.zip
update-initramfs: -d delete .bak file
as bonus rename confusing function. (closes: #559535) Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/update-initramfs b/update-initramfs
index 255265f..b7f9003 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -141,7 +141,7 @@ backup_booted_initramfs()
}
# nuke generated copy
-remove_initramfs()
+remove_initramfs_bak()
{
[ -z "${initramfs_bak}" ] && return 0
rm -f "${initramfs_bak}"
@@ -161,7 +161,7 @@ generate_initramfs()
set_sha1
else
mkinitramfs_return="$?"
- remove_initramfs
+ remove_initramfs_bak
rm -f "${initramfs}.new"
if [ "$mkinitramfs_return" = "2" ]; then
# minversion wasn't met, exit 0
@@ -445,7 +445,7 @@ delete()
delete_sha1
- rm -f "${initramfs}"
+ rm -f "${initramfs}" "${initramfs}.bak"
}
# Check for update mode on existing and modified initramfs