Comment 7 for bug 2031253

Revision history for this message
Romeo (romeo-b) wrote :

A better solution that works with netbooting and doesn't require rebuilding the ISO, add these to late-commands:
- echo "deb [arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest/ jammy main" > /target/etc/apt/sources.list.d/salt.list
- curl https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.pub > /target/etc/apt/trusted.gpg.d/salt.asc
- cp /etc/resolv.conf /target/etc/resolv.conf # Need DNS in chroot. This gets overwritten by systemd at any opportunity anyways
- chroot /target apt update
- chroot /target apt install -y salt-minion

Of course, alter the commands for whatever repos and packages you need.