mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-04-03 16:30:12 +00:00
feat/refactor: new computer, new configs, new desktop environment
This commit is contained in:
parent
44780e9a9e
commit
e3b1f60711
38 changed files with 854 additions and 1191 deletions
23
format_btrfs
Executable file
23
format_btrfs
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
||||
and mount $device /mnt
|
||||
and btrfs subvolume create /mnt/root
|
||||
and btrfs subvolume create /mnt/swap
|
||||
and btrfs subvolume create /mnt/home
|
||||
and umount /mnt
|
||||
|
||||
and mount -o subvol=root $device /mnt
|
||||
and mount -m -o subvol=swap $device /mnt/swap
|
||||
and mount -m -o subvol=home $device /mnt/home
|
||||
and btrfs filesystem mkswapfile --size 4g --uuid clear /mnt/swap/swapfile
|
||||
and swapon /mnt/swap/swapfile
|
||||
and lsblk
|
||||
Loading…
Add table
Add a link
Reference in a new issue