summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-04-08 11:02:17 +0200
committermaximilian attems <max@stro.at>2008-04-08 11:02:17 +0200
commita8584be941e67818cf062663badc040c8e68309f (patch)
treeec61ddc231b5d04e0a9afff52d42a0664f800bb1 /update-initramfs
parentcf1cb624d74422f64fb68c28fa99039b9f716c9c (diff)
downloadinitramfs-tools-a8584be941e67818cf062663badc040c8e68309f.tar.gz
initramfs-tools-a8584be941e67818cf062663badc040c8e68309f.zip
update-initramfs: Rename function according to reliability fix.
purpose of function changed, now we keep the old initramfs on the real path until mkinitramfs run finished.
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs8
1 files changed, 4 insertions, 4 deletions
diff --git a/update-initramfs b/update-initramfs
index a4947bf..90a66b4 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -140,12 +140,12 @@ backup_booted_initramfs()
rm -f ${initramfs_bak}
}
-# restore initramfs backup
-restore_initramfs()
+# nuke generated copy
+remove_initramfs()
{
[ -z "${initramfs_bak}" ] && return 0
rm -f "${initramfs_bak}"
- verbose "Restoring ${initramfs_bak}"
+ verbose "Removing ${initramfs_bak}"
}
@@ -161,7 +161,7 @@ generate_initramfs()
set_sha1
else
mkinitramfs_return="$?"
- restore_initramfs
+ remove_initramfs
rm -f "${initramfs}.new"
if [ "$mkinitramfs_return" = "2" ]; then
# minversion wasn't met, exit 0