Skip to content

Commit

Permalink
Set rootpass to mac:hexraw
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Jul 17, 2024
1 parent 1b711af commit d1ad272
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/netbootxyz/templates/menu/systemrescue.ipxe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}

Expand All @@ -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
Expand Down

0 comments on commit d1ad272

Please sign in to comment.