piofolder is meant to stay in persistent storage so that when router reboots it has memory of what prefix it was assigned in previous boot.
because router's flash stroage cannot handle so much writes thats why OpenWrt defaults to writing this in /tmp, but they recommend if you can afford then you should put it in persistent storage.
piofolder in /tmp will work whenever pppoe or dhcp reboots but in case router reboots then piofolder will cause issues and send a ra with preferred lifetime 0 which will cause ipv6 to fail on client devices.
if your solution works then fine.
because router's flash stroage cannot handle so much writes thats why OpenWrt defaults to writing this in /tmp, but they recommend if you can afford then you should put it in persistent storage.
piofolder in /tmp will work whenever pppoe or dhcp reboots but in case router reboots then piofolder will cause issues and send a ra with preferred lifetime 0 which will cause ipv6 to fail on client devices.
if your solution works then fine.