1
Fork 0

New partition rollback mechanism!

This commit is contained in:
prescientmoon 2024-08-28 00:52:27 +02:00
parent 9d6964d0f1
commit efeb877394
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
2 changed files with 11 additions and 1 deletions

View file

@ -60,7 +60,7 @@
btrfs subvolume delete /mnt/root
echo "restoring blank /root subvolume..."
btrfs subvolume snapshot /mnt/root-blank /mnt/root
btrfs subvolume snapshot /mnt/blank /mnt/root
# Once we're done rolling back to a blank snapshot,
# we can unmount /mnt and continue on the boot process.

View file

@ -43,6 +43,16 @@
];
};
# }}}
# {{{ /blank
"blank" = {
mountpoint = "/blank";
# should we reuse the `root` options here?
mountOptions = [
"compress=zstd"
"noatime"
];
};
# }}}
# {{{ /swap
"swap" = {
mountpoint = "/.swapvol";