diff --git a/overlay/usr/libexec/init-storage b/overlay/usr/libexec/init-storage index 963b74e..6795aee 100755 --- a/overlay/usr/libexec/init-storage +++ b/overlay/usr/libexec/init-storage @@ -23,7 +23,7 @@ copy_var() { echo 'Copying /var contents to data volume' mount -o subvol=var "${dev}" "${tmpdir}" || exit - cp -acuv /var/. "${tmpdir}" || exit + cp -auv /var/. "${tmpdir}" || exit umount "${tmpdir}" } @@ -129,7 +129,7 @@ setup_etc() { echo 'Initializing writable paths in /etc' mount -o subvol=etc "${dev}" "${tmpdir}" || exit if [ ! -f "${tmpdir}"/shadow ]; then - cp -ca /etc/shadow "${tmpdir}"/shadow || exit + cp -a /etc/shadow "${tmpdir}"/shadow || exit fi mount -o bind "${tmpdir}"/shadow /etc/shadow || exit if [ -f /etc/aimee-os/writable-etc ]; then @@ -141,7 +141,7 @@ setup_etc() { mkdir -p "${tmpdir}/${path%/*}" ;; esac - cp -ca /etc/"${path}" "${tmpdir}/${path}" + cp -a /etc/"${path}" "${tmpdir}/${path}" elif [ "${type}" = d ]; then mkdir -p "${tmpdir}/${path}" elif [ "${type}" = f ]; then