summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--scripts/functions7
2 files changed, 10 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 9704e27..fb9f4ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,13 +8,16 @@ initramfs-tools (0.51) unstable; urgency=low
- skip 0.40ubuntu15 udev gets fixed to only call update-initramfs
when /etc/mkinitramfs/initramfs.conf is there.
- 0.40ubuntu13 don't take over all initramfs images in Debian.
-
+
* hook-functions: auto_add_modules atkb and i8042.
* scripts/functions: on panic modprobe atkb and i8042 - work around for
broken configs, where those are not build in. (Closes: #337497)
- -- maximilian attems <maks@sternwelten.at> Tue, 24 Jan 2006 13:04:40 +0100
+ * scripts/functions: update_progress check if /dev/.initramfs/ exists
+ before writing into it.
+
+ -- maximilian attems <maks@sternwelten.at> Tue, 24 Jan 2006 13:11:24 +0100
initramfs-tools (0.50c) unstable; urgency=low
diff --git a/scripts/functions b/scripts/functions
index 2113745..c550123 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -44,8 +44,11 @@ update_progress()
export PROGRESS_STATE=0
fi
- PROGRESS_STATE=$(($PROGRESS_STATE + 1))
- echo "PROGRESS_STATE=${PROGRESS_STATE}" > /dev/.initramfs/progress_state
+ if [ -d /dev/.initramfs ]; then
+ PROGRESS_STATE=$(($PROGRESS_STATE + 1))
+ echo "PROGRESS_STATE=${PROGRESS_STATE}" \
+ > /dev/.initramfs/progress_state
+ fi
if [ -x /sbin/usplash_write ]; then
/sbin/usplash_write "PROGRESS $PROGRESS_STATE"