Created
December 9, 2020 18:26
-
-
Save grahamc/c18e99d5c91bed9b1ad2d3a94e862148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ parted --script /dev/vda -- mklabel gpt mkpart no-fs 1MB 2MB align-check optimal 1 set 1 bios_grub on mkpart ESP fat32 8MB 1024MB align-check optimal 2 set 2 boot on mkpart primary 1024MB -1 align-check optimal 3 print | |
Model: Virtio Block Device (virtblk) | |
Disk /dev/vda: 8590MB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: gpt | |
Disk Flags: | |
Number Start End Size File system Name Flags | |
1 1049kB 2097kB 1049kB no-fs bios_grub | |
2 8389kB 1024MB 1016MB fat32 ESP boot, esp | |
3 1024MB 8589MB 7564MB primary | |
++ zpool create -o ashift=12 -O acltype=posixacl -O atime=off -O compression=on -O mountpoint=legacy -O xattr=sa tank /dev/vda3 | |
++ zfs create -p tank/local/nix | |
++ zfs create -p tank/user/home | |
++ zfs create -p tank/system/var | |
++ zfs create -p tank/system/root | |
++ mkdir -p /mnt// | |
++ mount -t zfs tank/system/root /mnt// | |
++ mkdir -p /mnt//nix | |
++ mount -t zfs tank/local/nix /mnt//nix | |
++ mkdir -p /mnt//var | |
++ mount -t zfs tank/system/var /mnt//var | |
++ mkdir -p /mnt//home | |
++ mount -t zfs tank/user/home /mnt//home | |
++ mkdir -p /mnt/boot | |
++ mkfs.vfat /dev/vda2 -n ESP | |
mkfs.fat 4.1 (2017-01-24) | |
++ mount -t vfat /dev/vda2 /mnt/boot | |
++ mount | |
none on / type tmpfs (rw,relatime) | |
devtmpfs on /dev type devtmpfs (rw,relatime,size=242984k,nr_inodes=60746,mode=755) | |
none on /dev/shm type tmpfs (rw,relatime) | |
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000) | |
store on /nix/store type 9p (rw,relatime,dirsync,loose,access=client,trans=virtio) | |
none on /tmp type tmpfs (rw,relatime) | |
none on /run type tmpfs (rw,relatime,mode=755) | |
xchg on /tmp/xchg type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio) | |
none on /proc type proc (rw,relatime) | |
none on /sys type sysfs (rw,relatime) | |
tank/system/root on /mnt type zfs (rw,relatime,xattr,posixacl) | |
tank/local/nix on /mnt/nix type zfs (rw,relatime,xattr,posixacl) | |
tank/system/var on /mnt/var type zfs (rw,relatime,xattr,posixacl) | |
tank/user/home on /mnt/home type zfs (rw,relatime,xattr,posixacl) | |
/dev/vda2 on /mnt/boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment