فهرست منبع

Use interactive_netmount function if no dhcp

Falls back to new interactive_netmount function in casper
if dhcp server is not found.  Allows for manual network
configuration in scenarios where someone does not have a dhcp
server and needs to install Ubuntu.

Applies to 20.04 and on only.
Antony Messerli 4 سال پیش
والد
کامیت
40d124473d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      roles/netbootxyz/templates/menu/ubuntu.ipxe.j2

+ 2 - 1
roles/netbootxyz/templates/menu/ubuntu.ipxe.j2

@@ -91,8 +91,9 @@ goto sub_boot
 
 :sub_boot
 imgfree
+isset ${dhcp-server} && set netboot_params ip=dhcp url=http://releases.ubuntu.com/${codename}/ubuntu-${version_number}-live-server-${arch_a}.iso || set netboot_params
 echo Loading Ubuntu Subiquity Network Installer...
-kernel ${kernel_url}vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://releases.ubuntu.com/${codename}/ubuntu-${version_number}-live-server-${arch_a}.iso ${install_params} initrd=initrd ${cmdline}
+kernel ${kernel_url}vmlinuz root=/dev/ram0 ramdisk_size=1500000 ${netboot_params} ${install_params} initrd=initrd ${cmdline}
 initrd ${kernel_url}initrd
 echo
 echo MD5sums: