[Bug 214271] [NEW] Usplash timeout too low in script/local_premount/resume : stop usplash
Florent Mertens
flomertens at gmail.com
Tue Apr 8 22:34:35 UTC 2008
Public bug reported:
Binary package hint: initramfs-tools
In script/local_premount/resume, while waiting
for the resume device, usplash timeout is set to
the delay time.
In theory this could work, but in practice, if the script
wait the full delay time (device don't appear), usplash
timeout is often reached, making it disappear.
I suggest the following path to fix the issue :
--- scripts/local-premount/resume 2008-03-01 03:31:26.000000000 +0100
+++ scripts/local-premount/resume2 2008-04-09 00:32:11.000000000 +0200
@@ -38,7 +38,7 @@
slumber=${RESUMEDELAY}
fi
if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "TIMEOUT ${slumber}" || true
+ /sbin/usplash_write "TIMEOUT $(( ${slumber} + 2 ))" || true
fi
slumber=$(( ${slumber} * 10 ))
@@ -47,6 +47,10 @@
slumber=$(( ${slumber} - 1 ))
[ ${slumber} -gt 0 ] || break
done
+
+ if [ -x /sbin/usplash_write ]; then
+ /sbin/usplash_write "TIMEOUT 15" || true
+ fi
if [ ${slumber} -gt 0 ]; then
log_end_msg 0
** Affects: initramfs-tools (Ubuntu)
Importance: Undecided
Status: New
--
Usplash timeout too low in script/local_premount/resume : stop usplash
https://bugs.launchpad.net/bugs/214271
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.
More information about the kernel-bugs
mailing list