[Bug 1241236] Re: write ubuntu_command file atomically

Barry Warsaw 1241236 at bugs.launchpad.net
Tue May 27 20:38:23 UTC 2014


** Changed in: system-image (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to system-image in Ubuntu.
https://bugs.launchpad.net/bugs/1241236

Title:
  write ubuntu_command file atomically

Status in Ubuntu system image (server/client/updater):
  Fix Released
Status in “system-image” package in Ubuntu:
  Fix Released

Bug description:
  There's a small window of opportunity for mischief.   Let's say
  something goes wrong while we're writing the ubuntu_command file, and
  yet the device still gets rebooted.  recovery will see the incomplete
  ubuntu_command file and will apply an incomplete set of commands,
  which could brick the phone.

  The solution is rather easy: write the ubuntu_command file atomically.
  If a failure occurs during write, then recovery won't see an update.
  Only once the file is successfully written do we toggle the file in
  place and reboot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-system-image/+bug/1241236/+subscriptions



More information about the foundations-bugs mailing list