How to configure the UEFI boot options? #126
Comments
FWIW, I've created a new version: "0.1"
name: debian
global_timeout: 1800
tasks:
- name: debian-install
worker: '{{.device_1}}'
volumes:
- /dev:/dev
- /sys/firmware/efi/efivars:/sys/firmware/efi/efivars
- /worker:/worker
actions:
- name: install
image: image2disk:v1.0.0
environment:
IMG_URL: '{{.img_url}}'
COMPRESSED: true
DEST_DISK: '{{.boot_device}}'
- name: reset-uefi-boot
image: reset-uefi-boot
- name: reboot
image: reboot |
@thebsdbox @displague - is this something you could provide insight on? |
@rgl It looks like this mount point should be available:
Can you change If it is not mounted, can we try mounting manually to see what that looks like: Can we also check that the system is booting into UEFI mode?
|
@thebsdbox will be back later in the week (or next week) and might have other ideas. @rgl Is your |
This is ace, definitely something that would make sense to add to the hub. |
@displague, its at https://github.com/rgl/rpi-tinkerbell-vagrant/tree/master/actions/reset-uefi-boot I'm using it at https://github.com/rgl/rpi-tinkerbell-vagrant/blob/master/templates/debian/workflow-template.yml If it makes sense, I can contribute it. |
@rgl Contributing your action sounds good - https://github.com/tinkerbell/hub |
In light of your new project, would you say this is safe to close @rgl ? |
@displague sorry, what new project? |
I imagine the idea was for you to contribute https://github.com/rgl/rpi-tinkerbell-vagrant/tree/master/actions/reset-uefi-boot to https://github.com/tinkerbell/hub if you're up for it, @rgl. |
Hey @rgl I think we can close this issue right? Looks like you've figured out how to configure UEFI boot options. We'd love for you to contribute your action to hub, but thats outside of the issue I think. |
To properly install an OS in a UEFI machine we need to reset the existing UEFI boot options and configure UEFI to boot the new OS.
In a regular debian root shell, we can do this as:
While trying to transpose this to tinkerbell, I've failed to use the
cexec
action in this non-working workflow:This fails to execute the
configure-uefi
action because the/sys/firmware/efi/efivars
is not mounted in thecexec
created chroot:So, how can this be done?
Should a new action for the
efibootmgr
exist? and only usecexec
for runninggrub-install
?The text was updated successfully, but these errors were encountered: