mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
last minute fixes update-initramfs:
- find against the correct backup - check if initramfs _really_ exists
This commit is contained in:
parent
abb7b4e13f
commit
63f337b6a8
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -34,7 +34,10 @@ initramfs-tools (0.83) unstable; urgency=high
|
||||
|
||||
* manpages: Get a banana and mark myself as author.
|
||||
|
||||
-- maximilian attems <maks@sternwelten.at> Fri, 13 Oct 2006 08:12:40 +0200
|
||||
* update-initramfs: version_exists needs not only to check for existing
|
||||
sha1sum, but also initramfs. (closes: 382472)
|
||||
|
||||
-- maximilian attems <maks@sternwelten.at> Fri, 13 Oct 2006 09:38:27 +0200
|
||||
|
||||
initramfs-tools (0.82) unstable; urgency=high
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user