mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 15:15:56 +03:00
[GH-ISSUE #566] TASK [netbootxyz : Generate iPXE EFI USB image] #177
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ChuckWhitson on GitHub (Jan 30, 2020).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/566
Describe the bug
Unable to build due to the following error:
TASK [netbootxyz : Generate iPXE EFI USB image] ***********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "truncate -s 3MiB ipxe-efi.usb\n mkfs.vfat ipxe-efi.usb\n mmd -i ipxe-efi.usb "::/efi"\n mmd -i ipxe-efi.usb "::/efi/boot"\n mcopy -i ipxe-efi.usb bin-x86_64-efi/ipxe.efi "::/efi/boot/bootx64.efi"", "delta": "0:00:00.010369", "end": "2020-01-29 19:32:12.704305", "msg": "non-zero return code", "rc": 1, "start": "2020-01-29 19:32:12.693936", "stderr": "/bin/sh: 2: mkfs.vfat: not found\ninit :: non DOS media\nCannot initialize '::'\ninit :: non DOS media\nCannot initialize '::'\ninit :: non DOS media\nCannot initialize '::'\nBad target ::/efi/boot/bootx64.efi", "stderr_lines": ["/bin/sh: 2: mkfs.vfat: not found", "init :: non DOS media", "Cannot initialize '::'", "init :: non DOS media", "Cannot initialize '::'", "init :: non DOS media", "Cannot initialize '::'", "Bad target ::/efi/boot/bootx64.efi"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/opt/netboot.xyz/site.retry
PLAY RECAP ************************************************************************************************************************************************
localhost : ok=30 changed=7 unreachable=0 failed=1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build.
Screenshots
Can provide, but all text of error is above.
Additional context
N/A
@thelamer commented on GitHub (Jan 30, 2020):
Your error is mkfs.vfat is not available , probably needs to be added to the deps.
@ChuckWhitson commented on GitHub (Jan 30, 2020):
mkfs: /usr/bin/mkfs.btrfs /usr/sbin/mkfs.ext2 /usr/sbin/mkfs.ext3 /usr/sbin/mkfs.ext4 /usr/sbin/mkfs /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /usr/sbin/mkfs.minix /usr/sbin/mkfs.fat /usr/sbin/mkfs.msdos /usr/sbin/mkfs.vfat /usr/share/man/man8/mkfs.8.gz
@thelamer commented on GitHub (Jan 30, 2020):
I can't replicate this on a clean Buster install , build log for reference:
https://pastebin.com/cLW2K1Np
What happens when you call
mkfs.vfatdirectly from the user you are running ansible as? Maybe /usr/sbin/ is not in your PATH settings.@ChuckWhitson commented on GitHub (Jan 30, 2020):
Is it just me or... wait a minute... hasn't /sbin/ always been in root's path on Debian?
export PATH=$PATH:/sbin/
ansible-playbook -i inventory site.yml
results in:
localhost : ok=38 changed=15 unreachable=0 failed=0