Reorganize

This commit is contained in:
River 2025-04-28 23:42:35 -04:00
parent 746e459795
commit 49bbab5457
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2
10 changed files with 15 additions and 18 deletions

View File

@ -45,24 +45,18 @@ eselect news read new > /dev/null
# squashfs-tools needed for image mksquashfs for image generation # squashfs-tools needed for image mksquashfs for image generation
# gentoolkit needed for euse for setting use flags # gentoolkit needed for euse for setting use flags
emerge --quiet squashfs-tools gentoolkit # btrfs-progs needed for mkfs.btrfs for generating usr partition fs
emerge --quiet squashfs-tools gentoolkit btrfs-progs
# Copy in package list # Copy in host configs
mkdir -p /etc/portage/sets cp -r /build/include-host/* /
cp /build/emerge/packages.txt /etc/portage/sets/halogenos
if [ -d /build/emerge/package.use ]; then
cp -r /build/emerge/package.use /etc/portage/
fi
# We have to ensure use.disable contains at least one flag # We have to ensure use.disable contains at least one flag
# Otherwise euse -D will disable all global use flags # Otherwise euse -D will disable all global use flags
if [[ "$(cat /build/emerge/use.disable)" = *[![:space:]]* ]]; then if [[ "$(cat /etc/portage/use.disable)" = *[![:space:]]* ]]; then
euse -D "$(cat /build/emerge/use.disable)" euse -D "$(cat /etc/portage/use.disable)"
fi fi
# Copy in any patch sets
cp -r /build/emerge/patches /etc/portage/
# Set install location # Set install location
export ROOT="$DISTPATH" export ROOT="$DISTPATH"
@ -70,20 +64,22 @@ export ROOT="$DISTPATH"
#emerge -j "$NPROC" --quiet --update --deep --newuse @world #emerge -j "$NPROC" --quiet --update --deep --newuse @world
# Emerge all packages # Emerge all packages
emerge dev-python/setuptools
emerge -j "$NPROC" --quiet @halogenos emerge -j "$NPROC" --quiet @halogenos
emerge --unmerge portage
emerge gentoolkit
# Include any additional files # Include any additional files
mkdir -p "$DISTPATH"/usr/share/halogenos mkdir -p "$DISTPATH"/usr/share/halogenos
mkdir "$DISTPATH"/usr/share/halogenos/keys mkdir -p "$DISTPATH"/usr/share/halogenos/keys
mkdir "$DISTPATH"/usr/share/halogenos/bin mkdir -p "$DISTPATH"/usr/share/halogenos/bin
# Fix directory locations # Fix directory locations
for dir in bin sbin etc lib; do for dir in bin sbin etc lib; do
mv "$DISTPATH"/"$dir" "$DISTPATH"/usr/ mv "$DISTPATH"/"$dir" "$DISTPATH"/usr/"$dir"
done done
cp -r /build/include/* "$DISTPATH"/ cp -r /build/include-image/* "$DISTPATH"/
echo "IMAGE_VERSION="$VERSION"" >> "$DISTPATH"/usr/lib/os-release echo "IMAGE_VERSION="$VERSION"" >> "$DISTPATH"/usr/lib/os-release
@ -92,6 +88,7 @@ echo "IMAGE_VERSION="$VERSION"" >> "$DISTPATH"/usr/lib/os-release
# Require inclusion of public key if $REQSIG is true # Require inclusion of public key if $REQSIG is true
if [ "$REQSIG" == "true" ]; then if [ "$REQSIG" == "true" ]; then
# This will cause an exit if the key is missing
cp /run/secrets/signing_key_public "$DISTPATH"/usr/share/halogenos/keys/release_key_pub.asc cp /run/secrets/signing_key_public "$DISTPATH"/usr/share/halogenos/keys/release_key_pub.asc
else else
# Otherwise, attempt to copy the key, but don't freak out if it does not exist # Otherwise, attempt to copy the key, but don't freak out if it does not exist
@ -103,7 +100,7 @@ else
fi fi
# Metadata & build-time configs # Metadata & build-time configs
mkdir "$DISTPATH"/usr/share/halogenos/meta mkdir -p "$DISTPATH"/usr/share/halogenos/meta
echo "VERSION=$VERSION echo "VERSION=$VERSION
OTA=$DISTURL OTA=$DISTURL
TPM=$TPM TPM=$TPM

0
build/external/gvisor.sh vendored Normal file → Executable file
View File