#!/bin/bash # # build-proxmox-iso.sh - UNSUPPORTED, kept only to say what to use instead. # # This script built a second, hand-maintained copy of the installer # (its own late-commands and first-boot script). It drifted from # autoinstall/user-data: it kept the dead-mirror apt block but dropped the # step that writes the real archive sources back, installed the debs with # "dpkg -i ... || true" instead of the checked offline-apt-install.sh path, # had no site vars (so the two-NIC playbook always stopped), and no # first-boot failure handling. Rather than keep two installers in step, # there is one: build-usb.sh. Its image mode needs no root and gives a disk # image a Proxmox VM boots directly: # # scripts/build-usb.sh --site-vars site-vars.yml --image pxe-usb.img auto \ # ubuntu-24.04.x-live-server-amd64.iso # # on the Proxmox host: # qm importdisk pxe-usb.img # # attach it as a second disk (or USB), boot order: system disk, then it # # The VM needs two NICs (imaging bridge with no other DHCP server, and the # corp/GE bridge); put their MACs in site-vars.yml. tests/vm/ does the same # with libvirt. echo "build-proxmox-iso.sh is no longer supported (it drifted from autoinstall/user-data)." >&2 echo "Use: scripts/build-usb.sh --site-vars FILE --image pxe-usb.img auto UBUNTU.iso" >&2 echo "then on Proxmox: qm importdisk pxe-usb.img (see the header of this script)." >&2 exit 1