Unverified Commit c6a86eeb authored by Jan Orel's avatar Jan Orel Committed by GitHub
Browse files

M #-: Rocky: switch from kickstart to cloud img (#193)

+ add aarch64 variant
parent c27a61c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ DISTROS_ARM64 := alma8.aarch64 alma9.aarch64 \
                 debian11.aarch64 debian12.aarch64 \
                 fedora39.aarch64 fedora40.aarch64 fedora41.aarch64 \
                 opensuse15.aarch64 \
                 rocky8.aarch64 rocky9.aarch64 \
                 ubuntu2204.aarch64 ubuntu2404.aarch64

SERVICES_AMD64 := service_Wordpress service_VRouter service_OneKE service_OneKEa \
+2 −0
Original line number Diff line number Diff line
@@ -56,3 +56,5 @@ dracut --force "$INITRAMFS_IMG" "$INITRAMFS_VER"
grub2-mkconfig -o /boot/grub2/grub.cfg

sync

reboot

packer/rocky/11-zzz.sh

0 → 100644
+5 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
# avoid failing next scripts by running them when the reboot was initiated
# but still didn't stopped sshd etc

sleep 25
+22 −0
Original line number Diff line number Diff line
#cloud-config
growpart:
  mode: auto
  devices: [/]

users:
  - name: root
    lock_passwd: false
    hashed_passwd: $6$rounds=4096$2RFfXKGPKTcdF.CH$dzLlW9Pg1jbeojxRxEraHwEMAPAbpChBdrMFV1SOa6etSF2CYAe.hC1dRDM1icTOk7M4yhVS1BtwJjah9essD0

disable_root: false
ssh_pwauth:   true

runcmd:
  - |
    gawk -i inplace -f- /etc/ssh/sshd_config <<'EOF'
    BEGIN { update = "PermitRootLogin yes" }
    /^[#\s]*PermitRootLogin\s/ { $0 = update; found = 1 }
    { print }
    ENDFILE { if (!found) print update }
    EOF
  - systemctl reload sshd

packer/rocky/rocky

0 → 100644
+0 −0

Empty file added.

Loading