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

UEFI kickstart does not show up on boot menu #119

Open
sbluhm opened this issue Aug 8, 2023 · 3 comments
Open

UEFI kickstart does not show up on boot menu #119

sbluhm opened this issue Aug 8, 2023 · 3 comments

Comments

@sbluhm
Copy link
Owner

sbluhm commented Aug 8, 2023

Steps done:

  1. Configure DHCP to load filename "grub/shim.efi"; (this works, the client downloads this file successfully)
  2. Software channel added (spacewalk-common-channels -k unlimited -a x86_64 'almalinux9')
  3. Load kickstart files (spacecmd -- softwarechannel_syncrepos almalinux9-x86_64 --sync-kickstart)
  4. Create Kickstart Distribution (spacecmd -- kickstart_create "-n almalinux9-x86_64" "-d External_-_AlmaLinux_9_x86_64" "-v none")
  5. run mgr-create-bootstrap-repo -c almalinux-9-x86_64-uyuni
  6. cobbler mkloaders
  7. cobbler sync

When network boot a client, the GRUB menu shows up and only "Local" as an entry. Not the set up kickstart.

@sbluhm sbluhm converted this from a draft issue Aug 8, 2023
@sbluhm sbluhm changed the title UEFI kickstart UEFI kickstart does not show up on boot menu Aug 8, 2023
@sbluhm
Copy link
Owner Author

sbluhm commented Aug 8, 2023

On Leap, step 6 and 7 are not required.

Menu sitting at

/srv/tftpboot/grub/x86_64_menu_items.cfg
/srv/tftpboot/pxelinux.cfg/default
# cat grub/x86_64_menu_items.cfg

menuentry 'almalinux9-x86_64:1:Clacee' --class gnu-linux --class gnu --class os {
  echo 'Loading kernel ...'
  clinux /images/External_-_AlmaLinux_9_x86_64:1:Clacee/vmlinuz   kssendmac inst.ks=http://d1.bluhm-de.com/cblr/svc/op/autoinstall/profile/almalinux9-x86_64:1:Clacee
  echo 'Loading initial ramdisk ...'
  cinitrd /images/External_-_AlmaLinux_9_x86_64:1:Clacee/initrd.img
  echo '...done'

# cat pxelinux.cfg/default
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | https://cobbler.github.io
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
        MENU LABEL (local)
        MENU DEFAULT
        LOCALBOOT -1

LABEL almalinux9-x86_64:1:Clacee
	MENU LABEL almalinux9-x86_64:1:Clacee
	kernel /images/External_-_AlmaLinux_9_x86_64:1:Clacee/vmlinuz
	append initrd=/images/External_-_AlmaLinux_9_x86_64:1:Clacee/initrd.img  kssendmac inst.ks=http://d1.bluhm-de.com/cblr/svc/op/autoinstall/profile/almalinux9-x86_64:1:Clacee
	ipappend 2
MENU end


@sbluhm
Copy link
Owner Author

sbluhm commented Aug 8, 2023

menu works on EL8 with cobbler 3.2.2 if the efi files are manually copied

@sbluhm
Copy link
Owner Author

sbluhm commented Dec 6, 2023

Menu works on 2023.09 but boot files need to be copied manually and are not synced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: To do
Development

No branches or pull requests

1 participant