From e4407b15731e3f8605f0d3a197d068d396a2559a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 13 Dec 2024 18:50:15 -0600 Subject: [PATCH] init-storage: Drop -c argument to cp Busybox `cp` doesn't implement `-c` (copy SELinux context). GNU coreutils has deprecated it as well. --- overlay/usr/libexec/init-storage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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