# these files are not available.
if [[ $target ]]; then
+ if [[ -e /q/root/shadow/$target ]]; then
+ shadowfile=shadow/$target # empty otherwise
+ fi
sudo rsync -lpt --files-from=- /q/root root@$faiserver_host:/srv/fai/config/distro-install-common <<EOF
luks/$target
luks/host-$target
-shadow/$target
+$shadowfile
EOF
else
sudo rsync -rlpt /q/root/shadow /q/root/luks root@$faiserver_host:/srv/fai/config/distro-install-common