From 2d8b0700fff2dcc9d674ad340bd6524847cd2a53 Mon Sep 17 00:00:00 2001 From: brian cully Date: Tue, 19 May 2026 19:22:48 -0400 Subject: many updates --- readme.org | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) (limited to 'readme.org') diff --git a/readme.org b/readme.org index 5596abc..3dfca33 100644 --- a/readme.org +++ b/readme.org @@ -1,27 +1,46 @@ +* from existing install +need ~parted~ and ~btrfs-progs~ +: guix shell parted btrfs-progs + * partition disk gpt, 3 partitions: - 1 :: esp 2GB - 2 :: swap 8GB - 3 :: linux-fs rest +first create the partition table with ~cfdisk~, using ~gpt~ labels +: cfdisk /dev/vdb + +turn on the ‘esp’ flag for partition ~1~: +: parted /dev/vdb set 1 esp on + * create filesystems -: mkfs.vfat -L ESP -F 32 /dev/vda1 +: mkfs.vfat -n ESP -F 32 /dev/vdb1 -: 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 +: mkfs.btrfs -L root /dev/vdb3 +: mount -m -t btrfs /dev/vdb3 /mnt + +: btrfs subvol create /mnt/gnu +: btrfs subvol create /mnt/gnu/store +# : btrfs subvol create /mnt/gnu/etc +: btrfs subvol create /mnt/gnu/var +: btrfs subvol create /mnt/gnu/boot +: btrfs subvol create /mnt/persist +: btrfs subvol create /mnt/persist/home +: btrfs subvol create /mnt/persist/home/root + +: umount /mnt * mount filesystems -: mkdir /mnt -: mount -t tmpfs tmpfs /mnt +: mount -m -t tmpfs tmpfs /mnt : mount -m -t btrfs -o subvol=/gnu LABEL=root /mnt/gnu +# : mount -m -t btrfs -o subvol=/gnu/etc LABEL=root /mnt/etc +: mount -m -t btrfs -o subvol=/gnu/var LABEL=root /mnt/var +: mount -m -t btrfs -o subvol=/gnu/boot LABEL=root /mnt/boot : 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 +: mount -m --bind /mnt/home/root /mnt/root +: mount -m -t vfat LABEL=ESP /mnt/boot/esp + +* init system +: guix system init configuration.scm /mnt -- cgit v1.3