Dear all,
I have made a USB stick with the OS and a preseed.cfg file.
This runs fine, but in the last step I want to copy a file from my USB stick to the HDD.
I have tried several methods, but always fail with exit code 1.
The last command I tried was the following:
d-i preseed/late_command string \
for dev in $(ls /dev/sd?1); do \
mkdir -p /target/mnt/usb; \
mount -t auto $dev /target/mnt/usb && break; \
done; \
cp /target/mnt/usb/install-cli.sh /target/etc/install-cli.sh

I also tried to copy to /target/home/user, which also fails.
Any help on this issue is much appreciated!

Best regards,
Peter