Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Lite menu wrongly generated? #1567

Open
BrandonSk opened this issue Feb 4, 2025 · 0 comments
Open

Linux Lite menu wrongly generated? #1567

BrandonSk opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@BrandonSk
Copy link

BrandonSk commented Feb 4, 2025

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.

@BrandonSk BrandonSk added the bug label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant