nixos/libvirtd: don't use cp -n

This commit is contained in:
K900 2023-06-05 19:14:01 +03:00
parent afe337e62e
commit 57e1ea5a18

View file

@ -308,7 +308,9 @@ in
libvirt/nwfilter/*.xml ); libvirt/nwfilter/*.xml );
do do
mkdir -p /var/lib/$(dirname $i) -m 755 mkdir -p /var/lib/$(dirname $i) -m 755
cp -npd ${cfg.package}/var/lib/$i /var/lib/$i if [ ! -e /var/lib/$i ]; then
cp -pd ${cfg.package}/var/lib/$i /var/lib/$i
fi
done done
# Copy generated qemu config to libvirt directory # Copy generated qemu config to libvirt directory