Package: fai-client
Version: 5.10.1
Severity: normal

Dear Thomas,

how described in subject on trying to do fcopy -DSBHir -M / with
really small config:

shell.log:
=====   shell: SCRIPTS_DEBIAN/10-fcopy   =====
+ error=0
+ trap 'error=$(($?>$error?$?:$error))' ERR
+ set -vx
fcopy -DSBHir -M /
:
:
using class: FILES_SYSTEMD_X11VNC_ENABLED
Enable substitution. Copying
/var/lib/fai/config/files/etc/systemd/system/graphical.target.wants/x11vnc.service/FILES_SYSTEMD_X11VNC_ENABLED
to /tmp/fcopy.jOGZOd at /usr/sbin/fcopy line 147.
fcopy: can't open
/var/lib/fai/config/files/etc/systemd/system/graphical.target.wants/x11vnc.service/FILES_SYSTEMD_X11VNC_ENABLED
error=$(($?>$error?$?:$error))
++ error=2

exit $error
+ exit 2
SCRIPTS_DEBIAN/10-fcopy FAILED with exit code 2.



It would be nice, if fcopy would just give you a warning and continue if file 
is symlink to not existing file, before doing substitution.



As workaround I'm using now second fcopy job with only substitution
on given files and first fcopy without substitution:

fcopy -DBHir -M /
fcopy -DSBHir -M /etc/apt/


Best Regards,
Juri Grabowski

Reply via email to