aboutsummaryrefslogtreecommitdiffstats
path: root/readme.org
blob: 5596abc8f16d37a96354de6ca002571987d9aa77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* partition disk
gpt, 3 partitions:
  - 1 :: esp 2GB
  - 2 :: swap 8GB
  - 3 :: linux-fs rest

* create filesystems
: mkfs.vfat -L ESP -F 32 /dev/vda1

: mkfs.btrfs -L root /dev/vda3
: btrfs subvol create /dev/vda3 /gnu
: btrfs subvol create /dev/vda3 /persist
: btrfs subvol create /dev/vda3 /persist/etc
: btrfs subvol create /dev/vda3 /persist/var
: btrfs subvol create /dev/vda3 /persist/home
: btrfs subvol create /dev/vda3 /persist/boot

* mount filesystems
: mkdir /mnt
: mount -t tmpfs tmpfs /mnt
: mount -m -t btrfs -o subvol=/gnu LABEL=root /mnt/gnu
: mount -m -t btrfs -o subvol=/persist LABEL=root /mnt/persist
: mount -m -t btrfs -o subvol=/persist/etc LABEL=root /mnt/etc
: mount -m -t btrfs -o subvol=/persist/var LABEL=root /mnt/var
: mount -m -t btrfs -o subvol=/persist/home LABEL=root /mnt/home
: mount -m -t btrfs -o subvol=/persist/boot LABEL=root /mnt/boot
: mount -m -t vfat LABEL=ESP /mnt/boot/efi