forked from images/live-iso-gnome
Get rid of sudo in commands
This commit is contained in:
parent
3f56f3f00f
commit
abda06cc97
2
.github/push-iso
vendored
2
.github/push-iso
vendored
@ -1 +1 @@
|
|||||||
9
|
10
|
18
build.sh
18
build.sh
@ -12,10 +12,10 @@ fi
|
|||||||
|
|
||||||
# Mount
|
# Mount
|
||||||
|
|
||||||
sudo mount --bind /dev "$ROOTFS_PATH/dev"
|
mount --bind /dev "$ROOTFS_PATH/dev"
|
||||||
sudo mount -t tmpfs run "$ROOTFS_PATH/run" -o mode=0755,nosuid,nodev
|
mount -t tmpfs run "$ROOTFS_PATH/run" -o mode=0755,nosuid,nodev
|
||||||
sudo mount -t proc proc "$ROOTFS_PATH/proc" -o nosuid,nodev,noexec
|
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 -t sysfs sys "$ROOTFS_PATH/sys" -o nosuid,nodev,noexec,ro
|
||||||
|
|
||||||
# Setup Chroot scripts
|
# Setup Chroot scripts
|
||||||
|
|
||||||
@ -33,14 +33,14 @@ rm -rfv "$ROOTFS_PATH/chroot_scripts"
|
|||||||
|
|
||||||
# Unmount
|
# Unmount
|
||||||
|
|
||||||
umount "$ROOTFS_PATH/dev" || sudo umount -lf "$ROOTFS_PATH/dev" || true
|
umount "$ROOTFS_PATH/dev" || umount -lf "$ROOTFS_PATH/dev" || true
|
||||||
umount "$ROOTFS_PATH/run" || sudo umount -lf "$ROOTFS_PATH/run" || true
|
umount "$ROOTFS_PATH/run" || umount -lf "$ROOTFS_PATH/run" || true
|
||||||
umount "$ROOTFS_PATH/proc" || sudo umount -lf "$ROOTFS_PATH/proc" || true
|
umount "$ROOTFS_PATH/proc" || umount -lf "$ROOTFS_PATH/proc" || true
|
||||||
umount "$ROOTFS_PATH/sys" || sudo umount -lf "$ROOTFS_PATH/sys" || true
|
umount "$ROOTFS_PATH/sys" || umount -lf "$ROOTFS_PATH/sys" || true
|
||||||
|
|
||||||
# Generate Squashfs image
|
# Generate Squashfs image
|
||||||
|
|
||||||
sudo mksquashfs \
|
mksquashfs \
|
||||||
"$ROOTFS_PATH" \
|
"$ROOTFS_PATH" \
|
||||||
"$LIVE_BOOT_PATH/live/filesystem.squashfs" \
|
"$LIVE_BOOT_PATH/live/filesystem.squashfs" \
|
||||||
-e boot
|
-e boot
|
||||||
|
Loading…
Reference in New Issue
Block a user