BTRFS-based snapshots provide automatic rollbacks of user home folders.
Start the setup process by Selecting Advanced Options > Expert Install
Go through:
Then, at Partition disks create new GPT partition
FREE SPACE and press enter to create the first (EFI) partition.Create a new partitionBeginning for position of partition.Use as and select EFI System PartitionDone from menuFREE SPACE again to setup swap partition.Create a new partitionBeginning for position of partition.Use as and select Swap areaDone from menuFREE SPACE again to setup BTRFS partition.Create a new partitionUse as and select btrfs journaling filesystemDoneFinish partitioning and write changes to disk and press enter.Yes to all promptsDO NOT CONTINUE TO NEXT STEP in installer (yet).
Instead press CTRL+ALT+F2 to get a terminal window.
Enter df command to see which partitions are mounted at:
/target
/target/boot/efiumount the two above partitions.
mount whatever partition was previously mounted to /target to /mnt
cd to /mnt
rename root snapshot from @rootfs to @
mount the root subvolume to target with:
mount -o rw,noatime,compress=zstd:1,space_cache=v2,subvol=@ /dev/<root partition> /targetmkdir -p /target/boot/efimount /dev/<boot partition> /target/boot/efiNow we need to reflect our recent changes in fstab. Use nano to edit /target/etc/fstab
The lines for / and should look like the following:
UUID=<(NO CHANGE NEEDED)> / btrfs rw,noatime,compress=zstd:1,space_cache=v2,subvol=@ 0 0All manual updates are now done. Return to installer by typing exit in the command line and then entering CTRL+ALT+F1
Continue through the rest of the installation process.
Note: justso must be run with admin privileges*
# justso init Sets up the initial environment for justso.# justso make <profile> Creates a user and corresponding home directory.# justso enable <profile> Enables rolling back of user profile on reboot.# justso disable <profile> Stop rolling back user's home directory upon reboot.# justso pin <profile> Creates new snapshot of user's home directory.# justso back <profile> Rolls the user's home directory back to the latest snapshot.# justso unpin <profile> [Num snapshots] Removes the latest n snapshots (defaults to 1).# justso revert <profile> [Num snapshots] Unpins n number of snapshots and rolls back to latest surviving snapshot.# justso prune <profile> [Num snapshots] Removes n number of oldest snapshots.# justso send [-i | --incremental ] <profile> Creates a backup file of the latest snapshot that can be sent to other devices for import.# justso receive <profile> <path to exported btrfs file> Import a file of a btrfs snapshot into the profile's snapshot folder to be used on next reboot.# justso destroy <profile> Completely removes a profile.# justso status <profile> Provides information about the status of user's profile.