From 8ff4349ffb03228a774c1b4dcb521d4d8e873064 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 8 Feb 2026 21:14:39 -0700 Subject: [PATCH] seperate downloading of the hardened malloc. --- scripts/build_everything.sh | 12 ++++++------ scripts/build_filesystem.sh | 16 ---------------- scripts/download_malloc.sh | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100755 scripts/download_malloc.sh diff --git a/scripts/build_everything.sh b/scripts/build_everything.sh index 762a68e..16de085 100755 --- a/scripts/build_everything.sh +++ b/scripts/build_everything.sh @@ -3,13 +3,13 @@ set -e dir=$(dirname "$0") echo $dir cd $dir -./install_dependencies.sh -./build_kernel.sh -./build_initramfs.sh -./bootstrap_filesystem.sh -./build_initramfs.sh +#./install_dependencies.sh +#./build_kernel.sh +#./build_initramfs.sh +#./bootstrap_filesystem.sh +#./build_initramfs.sh ./build_filesystem.sh ./build_image.sh - +./boot_image.sh diff --git a/scripts/build_filesystem.sh b/scripts/build_filesystem.sh index 75e8287..24bd546 100755 --- a/scripts/build_filesystem.sh +++ b/scripts/build_filesystem.sh @@ -2,22 +2,6 @@ set -e set -x -cd "$(dirname "$0")" -DIR="$(dirname "$0")" -cd .. -echo $PWD - -#downloading graphene malloc -if [ ! -f ./dependencies/hardened_malloc/Makefile ]; then - cd ./dependencies/ - git clone https://github.com/GrapheneOS/hardened_malloc.git -fi - -cd "$(dirname "$0")" -DIR="$(dirname "$0")" -cd .. -echo $PWD - #switching to root to perform chroot if [ "$(id -u)" -ne 0 ]; then echo "switching from $(id -un) to root" diff --git a/scripts/download_malloc.sh b/scripts/download_malloc.sh new file mode 100755 index 0000000..ef550d5 --- /dev/null +++ b/scripts/download_malloc.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e +set -x + +cd "$(dirname "$0")" +DIR="$(dirname "$0")" +cd .. +echo $PWD + +#downloading graphene malloc +if [ ! -f ./dependencies/hardened_malloc/Makefile ]; then + cd ./dependencies/ + git clone https://github.com/GrapheneOS/hardened_malloc.git +fi + +echo 'graphene malloc downloaded.'