mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-02-15 16:36:52 +00:00
20 lines
352 B
Fish
Executable file
20 lines
352 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
lsblk
|
|
echo
|
|
read -P 'Device (/dev/vda2):' -l device
|
|
|
|
if test -z "$device"
|
|
set device /dev/vda2
|
|
end
|
|
|
|
mkfs.btrfs $device
|
|
mount $device /mnt
|
|
btrfs subvolume create /mnt/root
|
|
btrfs subvolume create /mnt/home
|
|
umount /mnt
|
|
|
|
mount -o subvol=root,compress=zstd $device /mnt
|
|
mount -m -o subvol=home,compress=zstd $device /mnt/home
|
|
|
|
lsblk
|