You are not logged in.

#1 2023-12-29 21:23:52

xyhlon
Member
Registered: 2021-11-29
Posts: 24

[SOLVED] PXE/Boot TFTP mounted image permission error

I was following the diskless systems tutorial. I currently have the tfpt, dhcpproxy(using dnsmasq), nfs running and working test each thing manually.
I am using PXELINUX for the bootloader instead of GRUB using the following settings in the default file.

UI menu.c32 
DEFAULT Arch Net Boot
LABEL Arch Net Boot
  MENU LABEL Arch
  KERNEL ::arch/boot/vmlinuz-linux quiet add_efi_memmap ip=:::::eth0:dhcp nfsroot=10.0.0.70:/mnt/user/tftp/arch
     append initrd=::arch/boot/initramfs-linux.img

My tftp root is /mnt/user/tftp/
My image is mounted in /mnt/user/tftp/arch/
Now I am faced with the following problem my tftp server

dnsmasq-tftp: sent /mnt/user/tftp/efi64/pxelinux.cfg/default to 10.0.0.2
dnsmasq-tftp: sent /mnt/user/tftp/efi64/menu.c32 to 10.0.0.2
dnsmasq-tftp: sent /mnt/user/tftp/efi64/libutil.c32 to 10.0.0.2
dnsmasq-tftp: sent /mnt/user/tftp/efi64/pxelinux.cfg/default to 10.0.0.2
dnsmasq-tftp: sent /mnt/user/tftp/arch/boot/vmlinuz-linux to 10.0.0.2
dnsmasq-tftp: cannot access /mnt/user/tftp/arch/boot/initramfs-linux.img: Permission denied

it for some reason it is able to access the kernel but not the initramfs, however both are from the mounted arch image and have the same permission.

drwx------   - bob 24 Dec 00:00 .
drwx------   - bob 23 Dec 23:43 ..
.rwx------ 73M bob 24 Dec 00:00 initramfs-linux-fallback.img
.rwx------ 15M bob 24 Dec 00:00 initramfs-linux.img
.rwx------ 13M bob 23 Dec 23:43 vmlinuz-linux

has anybody an idea why this doesn't work or I would be able to fix this.

Last edited by xyhlon (2024-01-02 20:29:16)

Offline

#2 2023-12-29 23:34:42

xyhlon
Member
Registered: 2021-11-29
Posts: 24

Re: [SOLVED] PXE/Boot TFTP mounted image permission error

I figured it out the permission weren't correctly reflected on the mounted nfs share the initramfs 600 had different permission compared to the kernel 644 thus i can changed it to 644 and it works now.

Offline

#3 2024-11-17 05:06:08

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,403

Re: [SOLVED] PXE/Boot TFTP mounted image permission error


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB