Paranoid cleanup of /cache/recovery
Bug #1238102 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu system image |
Fix Released
|
Critical
|
Barry Warsaw |
Bug Description
There's a small window where s-i can move files to /cache/recovery but the reboot fails. Normally, after reboot applies an update, recovery will clean up this directory, but if the reboot fails, it won't.
After IRC discussion, s-i should clean up /cache/recovery before it pushes a new set of files. According to stgraber, we can just delete everything except 'log' and 'last_log'.
Changed in ubuntu-system-image: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
As an added bonus, we'll download directly to /cache/recovery so we don't need /var/cache/ system- image.
We must write ubuntu_command as the last thing we do (which we do anyway).