diff options
author | tv <tv@krebsco.de> | 2022-03-18 16:52:49 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-03-18 16:52:49 +0100 |
commit | 60bdd171f50cd9350f69d7df46049c48070e638d (patch) | |
tree | bbedbf1c59f61c0de71cea14bb9c6c76ab73b653 /makefu/1systems/gum/hetznercloud/doit | |
parent | 519648574e85fe02550092eaa76298e62568b655 (diff) | |
parent | b1068cadc4458d91889b7ede847829af33d2b145 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/1systems/gum/hetznercloud/doit')
-rw-r--r-- | makefu/1systems/gum/hetznercloud/doit | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/makefu/1systems/gum/hetznercloud/doit b/makefu/1systems/gum/hetznercloud/doit new file mode 100644 index 000000000..45798587a --- /dev/null +++ b/makefu/1systems/gum/hetznercloud/doit @@ -0,0 +1,13 @@ +ROOT_DEVICE=/dev/sda2 +NIXOS_BOOT=/dev/sda1 + +zpool create -o ashift=12 -o altroot=/mnt rpool $ROOT_DEVICE +zfs create -o mountpoint=legacy rpool/root +zfs create -o mountpoint=legacy rpool/home +zfs create -o mountpoint=legacy rpool/nix +mount -t zfs rpool/root /mnt +mkdir /mnt/{home,nix,boot} +mount -t zfs rpool/home /mnt/home +mount -t zfs rpool/nix /mnt/nix +mount $NIXOS_BOOT /mnt/boot/ + |