Compare commits
2 Commits
171a590af5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03032f8f27 | ||
|
|
f1221d920f |
@@ -66,7 +66,7 @@ for cmd in sops envsubst xorriso; do
|
|||||||
command -v "$cmd" &>/dev/null || error "'$cmd' not found. Install it first."
|
command -v "$cmd" &>/dev/null || error "'$cmd' not found. Install it first."
|
||||||
done
|
done
|
||||||
|
|
||||||
export SOPS_AGE_KEY_FILE="${SOPS_AGE_KEY_FILE:-$HOME/.config/sops/age/keys.txt}"
|
export SOPS_AGE_KEY_FILE="${SOPS_AGE_KEY_FILE:-/persists/sops/age/keys.txt}"
|
||||||
[[ -f "$SOPS_AGE_KEY_FILE" ]] || error "age key not found at $SOPS_AGE_KEY_FILE"
|
[[ -f "$SOPS_AGE_KEY_FILE" ]] || error "age key not found at $SOPS_AGE_KEY_FILE"
|
||||||
|
|
||||||
# ── Decrypt secrets → render template ─────────────────────────────────────────
|
# ── Decrypt secrets → render template ─────────────────────────────────────────
|
||||||
|
|||||||
@@ -3,13 +3,12 @@ set -ex
|
|||||||
_user=alfoldi
|
_user=alfoldi
|
||||||
|
|
||||||
_hostname=nokia-l13g4-sisu
|
_hostname=nokia-l13g4-sisu
|
||||||
|
_hostname=192.168.1.139
|
||||||
_port=22
|
_port=22
|
||||||
|
|
||||||
# _hostname=localhost
|
# _hostname=localhost
|
||||||
# _port=12222
|
# _port=12222
|
||||||
|
|
||||||
# _ssh=alfoldi@nokia-l13g4-sisu
|
|
||||||
# _ssh="-e 'ssh -p 12222' alfoldi@localhost"
|
|
||||||
echo "
|
echo "
|
||||||
Host nokia-sisu
|
Host nokia-sisu
|
||||||
HostName $_hostname
|
HostName $_hostname
|
||||||
@@ -26,7 +25,7 @@ sudo mkdir -p /persists/sops/age/
|
|||||||
sudo chown $USER -R /persists/sops/age/
|
sudo chown $USER -R /persists/sops/age/
|
||||||
'"
|
'"
|
||||||
|
|
||||||
my_rsync --mkpath ~/.config/sops/age/keys.txt nokia-sisu:/persists/sops/age/
|
my_rsync --mkpath /persists/sops/age/keys.txt nokia-sisu:/persists/sops/age/
|
||||||
my_rsync ~/.ssh/ nokia-sisu:~/.ssh
|
my_rsync ~/.ssh/ nokia-sisu:~/.ssh
|
||||||
|
|
||||||
ssh -qF /tmp/sisu.ssh nokia-sisu <<'EOF'
|
ssh -qF /tmp/sisu.ssh nokia-sisu <<'EOF'
|
||||||
|
|||||||
2
qemu.sh
Normal file → Executable file
2
qemu.sh
Normal file → Executable file
@@ -16,7 +16,7 @@ fi
|
|||||||
|
|
||||||
## Create a virtual disk first
|
## Create a virtual disk first
|
||||||
## Uncomment 'create' if test-disk missing
|
## Uncomment 'create' if test-disk missing
|
||||||
# qemu-img create -f qcow2 /tmp/test-disk.qcow2 20G
|
# qemu-img create -f qcow2 /tmp/test-disk.qcow2 200G
|
||||||
|
|
||||||
# Boot the ISO as USB with the virtual disk as install target
|
# Boot the ISO as USB with the virtual disk as install target
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
|
|||||||
@@ -143,11 +143,11 @@ autoinstall:
|
|||||||
[connection]
|
[connection]
|
||||||
wifi.powersave = 2
|
wifi.powersave = 2
|
||||||
|
|
||||||
- path: /etc/dconf/db/local.d/99-custom-gnome
|
# - path: /etc/dconf/db/local.d/99-custom-gnome
|
||||||
permissions: "0644"
|
# permissions: "0644"
|
||||||
owner: root:root
|
# owner: root:root
|
||||||
content: |
|
# content: |
|
||||||
# do not remove it
|
# # do not remove it
|
||||||
|
|
||||||
- path: /etc/dconf/profile/user
|
- path: /etc/dconf/profile/user
|
||||||
owner: root:root
|
owner: root:root
|
||||||
@@ -178,11 +178,14 @@ autoinstall:
|
|||||||
# - mkdir -p /target/etc/himmelblau
|
# - mkdir -p /target/etc/himmelblau
|
||||||
|
|
||||||
late-commands:
|
late-commands:
|
||||||
- bash -x /cdrom/nocloud/wifi.sh
|
- |
|
||||||
- mkdir -p /target/home/${TARGET_USER}/nocloud
|
set -ex
|
||||||
- cp /cdrom/nocloud/* /target/home/${TARGET_USER}/nocloud/
|
bash -x /cdrom/nocloud/wifi.sh
|
||||||
- cat /cdrom/nocloud/my.dconf > /target/etc/dconf/db/local.d/99-custom-gnome
|
mkdir -p /target/home/${TARGET_USER}/nocloud
|
||||||
- curtin in-target -- systemctl disable systemd-networkd-wait-online.service
|
mkdir -p /target/etc/dconf/db/local.d/
|
||||||
|
cp /cdrom/nocloud/* /target/home/${TARGET_USER}/nocloud/
|
||||||
|
cat /cdrom/nocloud/my.dconf > /target/etc/dconf/db/local.d/99-custom-gnome
|
||||||
|
curtin in-target -- systemctl disable systemd-networkd-wait-online.service
|
||||||
|
|
||||||
updates: all
|
updates: all
|
||||||
shutdown: poweroff
|
shutdown: poweroff
|
||||||
|
|||||||
Reference in New Issue
Block a user