This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:ubuntu-autoinstall | |
echo Starting Ubuntu ${ubuntu-version} ${archl} autoinstaller for ${initiator-iqn} | |
sanhook ${base-iscsi}:${hostname}.boot.ubuntu || sleep 1 | |
#sanhook ${base-iscsi}:${hostname}.boot.ubuntu && set ubuntu-cc-iscsi storage: { layout: { name: lvm }, config: [{type: disk, path: ${base-iscsi}:${hostname}.boot.ubuntu }] } || sleep 1 | |
#sanhook ${base-iscsi}:${hostname}.boot.ubuntu && set ubuntu-iscsi ISCSI_INITIATOR=${initiator-iqn} ISCSI_TARGET_NAME=${base-iqn}:${hostname}.boot.ubuntu ISCSI_TARGET_IP=${iscsi-server} ISCSI_TARGET_PORT=3260 || sleep 1 | |
# https://medium.com/@tlhakhan/ubuntu-server-20-04-autoinstall-2e5f772b655a | |
# https://ubuntu.com/server/docs/install/autoinstall | |
# https://github.com/canonical/cloud-init/blob/master/doc/examples/kernel-cmdline.txt | |
# https://matt.olan.me/raspberry-pi-iscsi-root-on-ubuntu-20-04/ | |
# https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image |