summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-01-24 13:13:56 +0100
committermaximilian attems <maks@debian.org>2006-01-24 13:13:56 +0100
commit0403b8bc09e6a4e499e3489ac24359a24e20d16a (patch)
tree58e195183b5a82086668a9ea2e4255b4b4357225 /scripts
parente31be60a62406ef81d949eb67ac2bc64e90bf4ad (diff)
downloadinitramfs-tools-0403b8bc09e6a4e499e3489ac24359a24e20d16a.tar.gz
initramfs-tools-0403b8bc09e6a4e499e3489ac24359a24e20d16a.zip
check for /dev/.initramfs/ before writing into it,
seen on an testboot with "break=init".
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions7
1 files changed, 5 insertions, 2 deletions
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"