mounting of writable paths should respect rootdelay=X
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Snappy | Status tracked in Trunk | |||||
15.04 |
Fix Released
|
Critical
|
Ricardo Salveti | |||
Trunk |
Invalid
|
High
|
Ricardo Salveti |
Bug Description
The ubuntu-core-rootfs script in initial ramdsik initrd.
Because the script only wait for %root% partition and /dev/sda5 partition is not ready.
I have added following code to the script, to confirm it’s a timing issue.
echo $(ls /dev/disk/by-label) >/dev/kmsg || true
[ -n "$path" ] || sleep 3
[ -n "$path" ] ||echo "retry wait 3 seconds" >/dev/kmsg || true
[ -n "$path" ] || path=$(
[ -n "$path" ] || panic "cannot find '$writable_label' partition"
Logs,
[ 13.047190] initrd: mounting /dev/sda3
[ 13.050213] EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities
[ 13.053662] EXT4-fs (sda3): couldn't mount as ext2 due to feature incompatibilities
[ 13.192459] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 13.196587] initrd: mounting /run
[ 13.201201] Temporary\
[ 16.208151] retry wait 3 seconds
[ 16.221709] initrd: checking filesystem for writable partition
[ 16.231462] random: nonblocking pool is initialized
[ 16.235143] EXT4-fs (sda5): couldn't mount as ext3 due to feature incompatibilities => after 3 seconds writable partition sda5 was discovered
In speaking with rsalveti, it looks like the cause here is rootdelay=X is not respected for the writable partition.