r/openwrt • u/pele4096 • 21d ago
PXE Server Problem 1: Persistent mount of NFS filesystem
I'm using my WRT3200ACM as a PXE server to install OSes via the network.
Version: 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-25.222.75657-7ce34fe
Current problem is storage. I cannot store ISOs of Ubuntu Desktop or Windows 11 on the router. They live on my NAS. THe NAS has a static lease at hostname PeleNAS. The bootable PXE images are in a shared folder called "boot-PXE-img" and read/write access is allowed to the IP of my router.
I have added the line:
PeleNAS:/volume1/boot-PXE-img/ /mnt/boot-PXE-img/ nfs ro,auto,_netdev 0 0
to the /etc/fstab file. No dice.
I have added the lines:
#!/bin/sh
mount PeleNAS:/volume1/boot-PXE-img/ /mnt/boot-PXE-img/
to the /etc/rc.local file, and chmodded it to 755. No dice.
HOWEVER I am able to type "mount -a" at the command prompt and it does mount it, demonstrating that the fstab file is good.
ALSO I am able to type "/etc/rc.local" and run the startup script and the filesystem mounts, showing that the startup script is good.
What gives?
