initrd can't mount root luks partition correctly on raid1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
mdadm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Well I created a raid 1 for my root partition and then encrypted it with luks, updated initrd and restarted
and when booting it failed it took me lot of time to debug but then i noticed that
on file:
scripts/
if /sbin/cryptsetup isLuks $cryptsource > /dev/null 2>&1; then
failed and was taking my partition as if it werent luks
so i just commented that out (and the else) update initrd and my partition booted well
so not sure if the cryptsetup luks identification just fails on raid or normal partition also but is still a bug
also, i can't successfully enter my passphrase the first time (for what i see in the script must be a timeout issue)
/dev/md1 is not ready when prompted with the password, so there should be a check for this
Changed in cryptsetup (Ubuntu): | |
assignee: | nobody → Reinhard Tartler (siretart) |
status: | Incomplete → Confirmed |
assignee: | Reinhard Tartler (siretart) → nobody |
Changed in mdadm (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cryptsetup (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in mdadm (Ubuntu): | |
status: | Incomplete → Fix Released |
well it fails first time regardless
so dmraid is setting up the raid after the first attempt, so is not a problem with the cryptsetup but the init script