From 898fb28cb822b7d2b8951841fcbdd425560826ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Use sudo for the copy --- buildiso.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildiso.sh b/buildiso.sh index 90aa53b..648cfb2 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -79,7 +79,7 @@ prepare_rootfs() { if [[ ! -f filesystem.squashfs ]]; then sudo nice mksquashfs ${tempdir}/rootfs/ filesystem.squashfs -e boot &>/dev/null || fail "Error generating squashfs." fi - cp filesystem.squashfs ${tempdir}/installer/live/filesystem.squashfs &>/dev/null || fail "Error copying squashfs to tempdir." + sudo cp filesystem.squashfs ${tempdir}/installer/live/filesystem.squashfs &>/dev/null || fail "Error copying squashfs to tempdir." echo "done." }