Compare commits

..

2 Commits

Author SHA1 Message Date
Zsolt Alföldi
03032f8f27 fixin init_mystuff,qemu,user-data 2026-03-07 16:46:26 +01:00
Zsolt Alföldi
f1221d920f save 2026-03-06 20:38:29 +01:00
5 changed files with 17 additions and 15 deletions

View File

@@ -66,7 +66,7 @@ for cmd in sops envsubst xorriso; do
command -v "$cmd" &>/dev/null || error "'$cmd' not found. Install it first."
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"
# ── Decrypt secrets → render template ─────────────────────────────────────────

View File

@@ -3,13 +3,12 @@ set -ex
_user=alfoldi
_hostname=nokia-l13g4-sisu
_hostname=192.168.1.139
_port=22
# _hostname=localhost
# _port=12222
# _ssh=alfoldi@nokia-l13g4-sisu
# _ssh="-e 'ssh -p 12222' alfoldi@localhost"
echo "
Host nokia-sisu
HostName $_hostname
@@ -26,7 +25,7 @@ sudo mkdir -p /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
ssh -qF /tmp/sisu.ssh nokia-sisu <<'EOF'

2
qemu.sh Normal file → Executable file
View File

@@ -16,7 +16,7 @@ fi
## Create a virtual disk first
## 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
qemu-system-x86_64 \

0
run.sh Normal file → Executable file
View File

View File

@@ -143,11 +143,11 @@ autoinstall:
[connection]
wifi.powersave = 2
- path: /etc/dconf/db/local.d/99-custom-gnome
permissions: "0644"
owner: root:root
content: |
# do not remove it
# - path: /etc/dconf/db/local.d/99-custom-gnome
# permissions: "0644"
# owner: root:root
# content: |
# # do not remove it
- path: /etc/dconf/profile/user
owner: root:root
@@ -178,11 +178,14 @@ autoinstall:
# - mkdir -p /target/etc/himmelblau
late-commands:
- bash -x /cdrom/nocloud/wifi.sh
- mkdir -p /target/home/${TARGET_USER}/nocloud
- 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
- |
set -ex
bash -x /cdrom/nocloud/wifi.sh
mkdir -p /target/home/${TARGET_USER}/nocloud
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
shutdown: poweroff