From abda06cc979e779a46156f1b6aed20364c33d620 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 1 Aug 2024 15:42:33 +0300 Subject: [PATCH] Get rid of sudo in commands --- .github/push-iso | 2 +- build.sh | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/push-iso b/.github/push-iso index f11c82a..9a03714 100644 --- a/.github/push-iso +++ b/.github/push-iso @@ -1 +1 @@ -9 \ No newline at end of file +10 \ No newline at end of file diff --git a/build.sh b/build.sh index 7901f9b..7b77143 100755 --- a/build.sh +++ b/build.sh @@ -12,10 +12,10 @@ fi # Mount -sudo mount --bind /dev "$ROOTFS_PATH/dev" -sudo mount -t tmpfs run "$ROOTFS_PATH/run" -o mode=0755,nosuid,nodev -sudo mount -t proc proc "$ROOTFS_PATH/proc" -o nosuid,nodev,noexec -sudo mount -t sysfs sys "$ROOTFS_PATH/sys" -o nosuid,nodev,noexec,ro +mount --bind /dev "$ROOTFS_PATH/dev" +mount -t tmpfs run "$ROOTFS_PATH/run" -o mode=0755,nosuid,nodev +mount -t proc proc "$ROOTFS_PATH/proc" -o nosuid,nodev,noexec +mount -t sysfs sys "$ROOTFS_PATH/sys" -o nosuid,nodev,noexec,ro # Setup Chroot scripts @@ -33,14 +33,14 @@ rm -rfv "$ROOTFS_PATH/chroot_scripts" # Unmount -umount "$ROOTFS_PATH/dev" || sudo umount -lf "$ROOTFS_PATH/dev" || true -umount "$ROOTFS_PATH/run" || sudo umount -lf "$ROOTFS_PATH/run" || true -umount "$ROOTFS_PATH/proc" || sudo umount -lf "$ROOTFS_PATH/proc" || true -umount "$ROOTFS_PATH/sys" || sudo umount -lf "$ROOTFS_PATH/sys" || true +umount "$ROOTFS_PATH/dev" || umount -lf "$ROOTFS_PATH/dev" || true +umount "$ROOTFS_PATH/run" || umount -lf "$ROOTFS_PATH/run" || true +umount "$ROOTFS_PATH/proc" || umount -lf "$ROOTFS_PATH/proc" || true +umount "$ROOTFS_PATH/sys" || umount -lf "$ROOTFS_PATH/sys" || true # Generate Squashfs image -sudo mksquashfs \ +mksquashfs \ "$ROOTFS_PATH" \ "$LIVE_BOOT_PATH/live/filesystem.squashfs" \ -e boot