#!/bin/sh

# Ensures we do not
# 1. Commit after rebooting
# 2. Follow "standalone" control flow in a subsequent update attempt after this
# failure
if [ -f /run/update-manager/standalone ]; then
  rm /run/update-manager/standalone
  rm /var/lib/update-manager/should-commit
  rm /run/update-manager/needs-reboot
fi
