summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-10-13 09:44:20 +0200
committermaximilian attems <maks@debian.org>2006-10-13 09:44:20 +0200
commit63f337b6a8cfa058bb2ed9fcf0de6a71f3ffb9ab (patch)
treef0192c4cea64fd73d237bfa356ceff799de7db4a /update-initramfs
parentabb7b4e13f1fab5b6d9c4ea0682429c474931fa0 (diff)
downloadinitramfs-tools-63f337b6a8cfa058bb2ed9fcf0de6a71f3ffb9ab.tar.gz
initramfs-tools-63f337b6a8cfa058bb2ed9fcf0de6a71f3ffb9ab.zip
last minute fixes update-initramfs:
- find against the correct backup - check if initramfs _really_ exists
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index 11d48be..151e47a 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -56,7 +56,7 @@ verbose()
version_exists()
{
- [ -e "${STATEDIR}/${1}" ]
+ [ -e "${STATEDIR}/${1}" ] && [ -e "${initramfs}" ]
return $?
}
@@ -93,7 +93,7 @@ backup_booted_initramfs()
# keep booted initramfs
uptime_days=$(awk '{printf "%d", $1 / 3600 / 24}' /proc/uptime)
if [ -n "$uptime_days" ]; then
- boot_initramfs=$(find "${initramfs_bak}" -mtime +${uptime_days})
+ boot_initramfs=$(find "${initramfs}.bak" -mtime +${uptime_days})
fi
if [ -n "${boot_initramfs}" ]; then
mv -f "${initramfs_bak}" "${initramfs}.bak"