mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-02-15 16:36:52 +00:00
defiant
This commit is contained in:
parent
44780e9a9e
commit
846fc109ca
32 changed files with 719 additions and 1117 deletions
20
format_btrfs
Executable file
20
format_btrfs
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue