diff options
author | maximilian attems <maks@debian.org> | 2006-01-24 13:13:56 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-01-24 13:13:56 +0100 |
commit | 0403b8bc09e6a4e499e3489ac24359a24e20d16a (patch) | |
tree | 58e195183b5a82086668a9ea2e4255b4b4357225 | |
parent | e31be60a62406ef81d949eb67ac2bc64e90bf4ad (diff) | |
download | initramfs-tools-0403b8bc09e6a4e499e3489ac24359a24e20d16a.tar.gz initramfs-tools-0403b8bc09e6a4e499e3489ac24359a24e20d16a.zip |
check for /dev/.initramfs/ before writing into it,
seen on an testboot with "break=init".
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | scripts/functions | 7 |
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" |