mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:08:12 +00:00

If genext2fs and fakeroot are installed, the build will no longer require superuser privileges.
11 lines
259 B
Bash
Executable file
11 lines
259 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|
cd "$script_path"
|
|
|
|
if command -v genext2fs 1>/dev/null && command -v fakeroot 1>/dev/null; then
|
|
fakeroot ./build-image-qemu.sh
|
|
else
|
|
sudo -E PATH="$PATH" ./build-image-qemu.sh
|
|
fi
|