feat: add systemd Nix rootfs

This commit is contained in:
blazblue547-afk committed 2026-06-17 12:55:11 -04:00
1 parent 9e86817361
commit 1c3099dbac
38 files changed
+735 -1190

No files matched your search

+12 -9
View File
@@ -11,6 +11,7 @@ CHECK_ONLY=0
packages=(
build-essential
gcc-aarch64-linux-gnu
binutils-aarch64-linux-gnu
bc
bison
flex
@@ -33,10 +34,6 @@ packages=(
kmod
openssl
libelf-dev
mmdebstrap
debootstrap
qemu-user-static
binfmt-support
qemu-system-arm
)
@@ -44,6 +41,7 @@ required_commands=(
bash
make
aarch64-linux-gnu-gcc
aarch64-linux-gnu-readelf
curl
git
tar
@@ -69,7 +67,7 @@ usage() {
cat <<EOF
Usage: scripts/install-deps.sh [options]
Install Debian/Ubuntu host packages needed for:
Install host packages needed for:
make rootfs
make run
@@ -80,8 +78,13 @@ Options:
--help Show this help.
This does not install disk-image, installer, or Secure Boot signing extras.
It installs the AArch64 cross compiler, ARM64 bootstrap helpers, and
qemu-system-aarch64 for the default ARM64 console build.
It installs the AArch64 cross compiler, kernel/BusyBox/systemd build tools,
and qemu-system-aarch64 for the ARM64 systemd + Nix console build.
The systemd source build also needs target ARM64 development libraries visible
through pkg-config. On Debian-style hosts this usually means enabling arm64
multiarch and installing the required :arm64 -dev packages, or setting
SYSTEMD_PKG_CONFIG_LIBDIR/SYSTEMD_RUNTIME_LIB_DIRS to a prepared ARM64 sysroot.
EOF
}
@@ -175,7 +178,7 @@ else
"${sudo_cmd[@]}" apt-get update
fi
msg "installing ForgeOS rootfs/run dependencies"
msg "installing ForgeOS systemd/Nix build/run dependencies"
"${sudo_cmd[@]}" apt-get install -y --no-install-recommends "${missing_packages[@]}"
fi
fi
@@ -193,5 +196,5 @@ if [[ "${#missing_commands[@]}" -gt 0 ]]; then
exit 1
fi
msg "host dependencies are ready for make rootfs and make run"
msg "host dependencies are ready for systemd/Nix make rootfs and make run"
msg "project: $ROOT_DIR"