New partition rollback mechanism!
This commit is contained in:
parent
9d6964d0f1
commit
efeb877394
|
@ -60,7 +60,7 @@
|
||||||
btrfs subvolume delete /mnt/root
|
btrfs subvolume delete /mnt/root
|
||||||
|
|
||||||
echo "restoring blank /root subvolume..."
|
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,
|
# Once we're done rolling back to a blank snapshot,
|
||||||
# we can unmount /mnt and continue on the boot process.
|
# we can unmount /mnt and continue on the boot process.
|
||||||
|
|
|
@ -43,6 +43,16 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# }}}
|
# }}}
|
||||||
|
# {{{ /blank
|
||||||
|
"blank" = {
|
||||||
|
mountpoint = "/blank";
|
||||||
|
# should we reuse the `root` options here?
|
||||||
|
mountOptions = [
|
||||||
|
"compress=zstd"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# }}}
|
||||||
# {{{ /swap
|
# {{{ /swap
|
||||||
"swap" = {
|
"swap" = {
|
||||||
mountpoint = "/.swapvol";
|
mountpoint = "/.swapvol";
|
||||||
|
|
Loading…
Reference in a new issue