1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

Meta: Start moving common shell definitions into a common file

This commit is contained in:
Tim Schumacher 2022-10-16 21:46:42 +02:00 committed by Linus Groh
parent 9d6c4c5137
commit 2a4f81fc83
6 changed files with 25 additions and 50 deletions

View file

@ -2,16 +2,9 @@
set -e
SUDO="sudo"
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
if [ "$(uname -s)" = "SerenityOS" ]; then
SUDO="pls"
fi
die() {
echo "die: $*"
exit 1
}
. "${script_path}/.shell_include.sh"
if [ ! -d "limine" ]; then
echo "limine not found, the script will now build it"
@ -102,7 +95,6 @@ mkdir -p mnt
mount "${dev}p2" mnt || die "couldn't mount root filesystem"
echo "done"
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
"$script_path/build-root-filesystem.sh"
echo "installing limine"