diff --git a/roles/netbootxyz/templates/menu/systemrescue.ipxe.j2 b/roles/netbootxyz/templates/menu/systemrescue.ipxe.j2 index 3fb93bdac1..a46bf620d3 100644 --- a/roles/netbootxyz/templates/menu/systemrescue.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/systemrescue.ipxe.j2 @@ -6,6 +6,7 @@ goto ${menu} || set os System Rescue set os_arch ${arch} isset ${rootpass_enabled} || set rootpass_enabled false +set rootpass ${mac:hexraw} iseq ${os_arch} x86_64 && set os_arch amd64 || iseq ${os_arch} i386 && set os_arch i686 || menu ${os} @@ -16,7 +17,7 @@ item --gap ${os} Versions iseq ${os_arch} {{ value.arch }} && item {{ value.version }}_${os_arch} ${space} ${os} {{ value.version }} || {% endif %} {% endfor %} -item rootpass_mac Enable rootpass=MAC_ADDRESS [ enabled: ${rootpass_enabled} ] +item rootpass_mac Enable rootpass=${rootpass} [ enabled: ${rootpass_enabled} ] choose live_version || goto live_exit goto ${live_version} @@ -31,7 +32,7 @@ goto boot :rootpass_mac clear params -iseq ${rootpass_enabled} true && set rootpass_enabled false || set rootpass_enabled true && set params rootpass=${netX/mac} +iseq ${rootpass_enabled} true && set rootpass_enabled false || set rootpass_enabled true && set params rootpass=${rootpass} goto live_menu :boot