Paranoid cleanup of /cache/recovery

Bug #1238102 reported by Barry Warsaw
6
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'.

Tags: client
Revision history for this message
Barry Warsaw (barry) wrote :

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).

Changed in ubuntu-system-image:
importance: Low → Critical
status: Triaged → In Progress
assignee: nobody → Barry Warsaw (barry)
milestone: none → 1.9
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.