fixrtc script does not catch "Last mount time: n/a" string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
Oliver Grawert | ||
initramfs-tools (Ubuntu) |
Fix Released
|
Medium
|
Stefan Bader | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned | ||
initramfs-tools-ubuntu-core (Ubuntu) |
Fix Released
|
Critical
|
Oliver Grawert | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[TEST CASE]
* this will be tested by the snappy team
* without this fix the dragonboard will not boot on a freshly written image
[REGRESSION POTENTIAL]
* low as it only fixes an invalid string
trying to boot a new dragonboard image results in:
error: assertion is signed with expired public key "-CvQKAwRQ5h3Ff
this is due to a clock skew that should normally be catched by the fixrtc script in the initrd.
the script is supposed to check the last mount time of the writable disk (SD card) and if this does not exist, fall back to the filesystem creation time ...
in former versions of mkfs.ext4 the last mount time filed was simply left empty, so this fallback worked fine ... in xenial the fields now look like:
Filesystem created: Tue Sep 13 17:32:20 2016
Last mount time: n/a
Last write time: Tue Sep 13 17:32:20 2016
due to the script running with "set -e" it falls over on the "n/a" and exists before falling back to creation time, there needs to be a check added for the "n/a" string now.
tags: | added: rls-aa-incoming |
Changed in initramfs-tools (Ubuntu): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in snappy: | |
status: | Triaged → Fix Released |
Changed in initramfs-tools-ubuntu-core (Ubuntu): | |
status: | Triaged → Confirmed |
status: | Confirmed → Fix Released |
Changed in initramfs-tools-ubuntu-core (Ubuntu Xenial): | |
status: | New → Fix Released |
http:// paste.ubuntu. com/23174192/ is the current fixrtc script