From 7c605a7337e622c3133d01b16e83fe643b4c6b38 Mon Sep 17 00:00:00 2001 From: rblundon Date: Fri, 19 Sep 2025 10:14:32 -0500 Subject: [PATCH] get rid of swap --- .../04-vm-templates/ubuntu-24.04.03/http/user-data | 6 +++--- .../ubuntu-24.04.03/ubuntu-24.04.pkr.hcl | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/http/user-data b/infra-config/04-vm-templates/ubuntu-24.04.03/http/user-data index c70ebb0..bf3fe83 100644 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/http/user-data +++ b/infra-config/04-vm-templates/ubuntu-24.04.03/http/user-data @@ -27,9 +27,9 @@ autoinstall: layout: name: lvm # direct policy: all - swap: - filename: /swap.img - size: auto + # swap: + # filename: /swap.img + # size: auto user-data: disable_root: true diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl index cfde1bc..2f4d365 100755 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl +++ b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl @@ -120,12 +120,12 @@ build { "sudo rm -f /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg", "sudo rm -f /etc/netplan/00-installer-config.yaml", "sudo sync", - "mkdir /home/wed/.ssh", - "chown wed:wed /home/wed/.ssh", - "cat /tmp/ansible.pub > /home/wed/.ssh/authorized_keys", - "chmod 600 /home/wed/.ssh/authorized_keys", - "chown wed:wed /home/wed/.ssh/authorized_keys", - "rm /tmp/ansible.pub" + // "mkdir /home/wed/.ssh", + // "chown wed:wed /home/wed/.ssh", + // "cat /tmp/ansible.pub > /home/wed/.ssh/authorized_keys", + // "chmod 600 /home/wed/.ssh/authorized_keys", + // "chown wed:wed /home/wed/.ssh/authorized_keys", + // "rm /tmp/ansible.pub" ] }