#!/bin/bash

set -euo pipefail

[[ $EUID == 0 ]] || (echo "This script must be run as sudo/root"; exit 1)

echo "Starting OS reset..."
mkdir -p /overlay/deploy/initrd/
touch /overlay/deploy/initrd/reset
echo "Rebooting to reset the OS now!"
reboot
