[GH-ISSUE #1567] Linux Lite menu wrongly generated? #2049

Open
opened 2026-03-01 18:38:11 +03:00 by kerem · 0 comments
Owner

Originally created by @BrandonSk on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1567

Hello.

I have a local copy of netbook.xyz running in a docker container.
The menu entry for Live CDs system Linux Lite is wrongly generated (at least on my system).
This is the menu item that was generated:

#!ipxe

goto ${menu} ||

:live_menu
set os Linux Lite
menu ${os}
item --gap Use the username linuxlite with a blank password
item --gap ${os} Versions
item 5 ${space} ${os} 6
choose live_version || goto live_exit
goto ${live_version}

:6
set squash_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/filesystem.squashfs
set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/
goto boot-6

:boot-6
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline}
initrd ${kernel_url}initrd
boot

:live_exit
clear menu
exit 0

Issues:

  • Only one version in menu, while images suggest there should be versions of the OS from 4 to 6.
  • Item "5" does not correspond to the rest of menu - resulting in wrong goto and thus not booting.
  • OS items for version 6 point to version 5 files.
  • etc. (I think it is a chain of events due to wrong generation...)

I pulled images to Local Assets, version 5 got pulled to '5.8-75cb937c' directory and version 6 files to '6.4-2550834c' directory.

I fixed the menu manually (skipping version 4) as follows:

#!ipxe

:live_menu
set os Linux Lite
menu ${os}
item --gap Use the username linuxlite with a blank password
item --gap ${os} Versions
item 5 ${space} ${os} 5
item 6 ${space} ${os} 6
choose live_version || goto live_exit
goto ${live_version}

:5
set squash_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/filesystem.squashfs
set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/
goto boot-5

:boot-5
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline}
initrd ${kernel_url}initrd
boot

:6
set squash_url ${live_endpoint}/ubuntu-squash/releases/download/6.4-2550834c/filesystem.squashfs
set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/6.4-2550834c/
goto boot-6

:boot-6
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline}
initrd ${kernel_url}initrd
boot

:live_exit
clear menu
exit 0

I did not try to reproduce in another container. Just giving heads-up to check.

Also having trouble booting into version 6 (the files vmlinuz and initrd boot ok, but during boot then system complains about missing online file system, and pointing to ip of my gateway...) - but that is a separate issue.

Cheers,
B.

Originally created by @BrandonSk on GitHub (Feb 4, 2025). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1567 Hello. I have a local copy of netbook.xyz running in a docker container. The menu entry for Live CDs system Linux Lite is wrongly generated (at least on my system). This is the menu item that was generated: ``` #!ipxe goto ${menu} || :live_menu set os Linux Lite menu ${os} item --gap Use the username linuxlite with a blank password item --gap ${os} Versions item 5 ${space} ${os} 6 choose live_version || goto live_exit goto ${live_version} :6 set squash_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/filesystem.squashfs set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/ goto boot-6 :boot-6 kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline} initrd ${kernel_url}initrd boot :live_exit clear menu exit 0 ``` Issues: - Only one version in menu, while images suggest there should be versions of the OS from 4 to 6. - Item "5" does not correspond to the rest of menu - resulting in wrong goto and thus not booting. - OS items for version 6 point to version 5 files. - etc. (I think it is a chain of events due to wrong generation...) I pulled images to Local Assets, version 5 got pulled to '5.8-75cb937c' directory and version 6 files to '6.4-2550834c' directory. I fixed the menu manually (skipping version 4) as follows: ``` #!ipxe :live_menu set os Linux Lite menu ${os} item --gap Use the username linuxlite with a blank password item --gap ${os} Versions item 5 ${space} ${os} 5 item 6 ${space} ${os} 6 choose live_version || goto live_exit goto ${live_version} :5 set squash_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/filesystem.squashfs set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/5.8-75cb937c/ goto boot-5 :boot-5 kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline} initrd ${kernel_url}initrd boot :6 set squash_url ${live_endpoint}/ubuntu-squash/releases/download/6.4-2550834c/filesystem.squashfs set kernel_url ${live_endpoint}/ubuntu-squash/releases/download/6.4-2550834c/ goto boot-6 :boot-6 kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd.magic ${cmdline} initrd ${kernel_url}initrd boot :live_exit clear menu exit 0 ``` I did not try to reproduce in another container. Just giving heads-up to check. Also having trouble booting into version 6 (the files vmlinuz and initrd boot ok, but during boot then system complains about missing online file system, and pointing to ip of my gateway...) - but that is a separate issue. Cheers, B.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#2049
No description provided.