]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
auto-installer: fetch: add http plugin to fetch answer
[pve-installer.git] / unconfigured.sh
index 2b371f089fe3594a6acf2e3ea413e05fc324a4df..a1f942207e421d7fa2598afd63c7297f9cd77df4 100755 (executable)
@@ -208,6 +208,15 @@ if [ $proxdebug -ne 0 ]; then
     debugsh || true
 fi
 
+# add custom DHCP options for auto installer
+if [ $proxauto -ne 0 ]; then
+    cat >> /etc/dhcp/dhclient.conf <<EOF
+option proxmoxinst-url code 250 = text;
+option proxmoxinst-fp code 251 = text;
+also request proxmoxinst-url, proxmoxinst-fp;
+EOF
+fi
+
 # try to get ip config with dhcp
 echo -n "Attempting to get DHCP leases... "
 dhclient -v