<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>I am looking for the syntax of dhcp vendor options, and then how to access them in grub-net.  I think.  maybe there is a better way.<br></div><div><br>I pxe boot grub, which boots di  (Debian Installer) and pass a preseed file.<br><br>I am trying to work out a nice way to pass host specific info to di<br></div>example, most use:<br><div><div><div>partman-auto/disk="/dev/sda" <br></div><div>but one machine has an onboard ssd nvme which needs /dev/nvme0n1</div><div><br>di will read values appended to the kernel boot line, so I can hard code it like this:  <br><br>menuentry "Install Ubuntu preseed" {<br>set gfxpayload=keep<br>linux /ubuntu-installer/amd64/linux gfxpayload=800x600x16,800x600 --- auto=true url=dc10b hostname= partman-auto/disk="/dev/<wbr>nvme0n1" interface=${net_default_mac}<br>initrd /ubuntu-installer/amd64/<wbr>initrd.gz<br>}<br><br>interface=${net_default_mac} - use the nic that pxe booted. <br><br></div><div>Now I get lost in conf options and syntax.  forgive me for making stuff up here, if it worked I wouldn't be asking for help.<br></div><div><br>I am hoping for something like<br> partman-auto/disk=$(net_pxe_<wbr>extensionspath/disk}<br></div><div><br></div><div>in dnsmasq conf:<br>dhcp-host=40:8d:5c:7f:bb:90,,<wbr>gator<br><br>dhcp-option-force=host:gator,<wbr>209,"disk=/dev/nvme0n1"<div><div><br><br></div><div>So yeah, how do I send random strings based on mac/hostname<br></div><div>and how do I read what was sent in grub?<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div class="m_3687556931305349591gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Carl K<br></div></div></div></div></div>
</div></font></span></div></div></div></div></div>
</div><br></div>