diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-12-08 14:59:03 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-12-08 15:36:32 -0800 |
| commit | 48ea2837adff1483d6d5e8dd6f65611914ddda88 (patch) | |
| tree | 8adb236371b1b3db63d450bb98b583b5d0f67cc6 /justfile | |
| parent | refactor overall configuration (diff) | |
| download | infra-48ea2837adff1483d6d5e8dd6f65611914ddda88.tar.gz | |
more refactoring
Diffstat (limited to '')
| -rw-r--r-- | justfile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,6 @@ SSH_OPTIONS := "-o PubkeyAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" +nixdisk := "vda" nixaddr := "" # update dependencies @@ -33,13 +34,13 @@ vm-bootstrap: #!/usr/bin/env bash set -euxo pipefail ssh {{SSH_OPTIONS}} root@{{nixaddr}} " \ - parted /dev/vda -- mklabel gpt; \ - parted /dev/vda -- mkpart primary 512MB 100%; \ - parted /dev/vda -- mkpart ESP fat32 1MB 512MB; \ - parted /dev/vda -- set 2 esp on; \ + parted /dev/{{nixdisk}} -- mklabel gpt; \ + parted /dev/{{nixdisk}} -- mkpart primary 512MB 100%; \ + parted /dev/{{nixdisk}} -- mkpart ESP fat32 1MB 512MB; \ + parted /dev/{{nixdisk}} -- set 2 esp on; \ sleep 1; \ - mkfs.ext4 -L nixos /dev/vda1; \ - mkfs.fat -F 32 -n boot /dev/vda2; \ + mkfs.ext4 -L nixos /dev/{{nixdisk}}1; \ + mkfs.fat -F 32 -n boot /dev/{{nixdisk}}2; \ sleep 1; \ mount /dev/disk/by-label/nixos /mnt; \ mkdir -p /mnt/boot; \ |
