Use sudo for the copy

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:53 -04:00
parent c7b3dfff4c
commit 898fb28cb8
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ prepare_rootfs() {
if [[ ! -f filesystem.squashfs ]]; then if [[ ! -f filesystem.squashfs ]]; then
sudo nice mksquashfs ${tempdir}/rootfs/ filesystem.squashfs -e boot &>/dev/null || fail "Error generating squashfs." sudo nice mksquashfs ${tempdir}/rootfs/ filesystem.squashfs -e boot &>/dev/null || fail "Error generating squashfs."
fi 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." echo "done."
} }