hello Jean-Marc,
when 'copy2ram' is used then only xzm modules are copied to RAM and not full ISO. pxe boot requires vmlinuz, initrd, bootloader files, bootsplash picture, etc so there is no possibility to unplug the usb.
if you want to use copy2ram + pxe then you have to add 'noeject' cheatcode so usb wont be unmounted (but it's still required to have it plugged to the PC)
if you really need to unplug the usb then boot with copy2ram + pxe + noeject then copy /boot and /porteus folders through /etc/rc.d/rc.local to /tmp/stick -> once done unmount the usb through the script and prompt for removing it -> move /tmp/stick to /mnt/sda1.
now let's make things more complicated:
the downside is that modules will be doubled in RAM: one copy in /mnt/live/memory/copy2ram (if i remember correctly the path) and other in /mnt/sda1/porteus/base. to resolve this so you could copy just /boot folder to /tmp/stick -> unmount and unplug the usb -> move /tmp/stick/boot to /mnt/sda1 -> mount bind /mnt/live/memory/copy2ram to /mnt/sda1/porteus/base. this method is much faster as copying only the /boot folder will take a second.
never tested but should work
Please add [Solved] to your thread title if the solution was found.