[Bug 247153] Re: encrypted root initialisation races/fails on hotplug devices (does not wait)
Launchpad Bug Tracker
247153 at bugs.launchpad.net
Wed Dec 4 04:22:45 UTC 2024
[Expired for initramfs-tools (Ubuntu) because there has been no activity
for 60 days.]
** Changed in: initramfs-tools (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/247153
Title:
encrypted root initialisation races/fails on hotplug devices (does not
wait)
Status in initramfs-tools package in Ubuntu:
Expired
Bug description:
I installed ubuntu 8.0.4 to a USB flash drive. I have a volume group
that contains encrypted root and swap logical volumes. On some
machines the USB drive appears later than initramfs:/scripts/local-
top/cryptroot enters /conf/conf.d/cryptroot.
As a hack I put in a 10 seconds delay:
*** scripts/local-top/cryptroot- 2008-07-09 00:26:36.000000000 +0900
--- scripts/local-top/cryptroot 2008-07-09 00:27:14.000000000 +0900
***************
*** 271,274 ****
--- 271,275 ----
# Do we have any settings from the /conf/conf.d/cryptroot file?
if [ -r /conf/conf.d/cryptroot ]; then
+ sleep 10
while read mapping; do
setup_mapping "$mapping"
This is only temporary, a better solution could be to wait in
activate_vg for the device to appear before setting up the volume
group, just like https://launchpad.net/bugs/85640.
If you can provide a patch that is better than this I could try it
out. I will be offline for 3 weeks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/247153/+subscriptions
More information about the foundations-bugs
mailing list