ComposeFS package integration: Debian/Fedora package support and distribution-specific installation commands
Some checks failed
Compile apt-layer (v2) / compile (push) Has been cancelled

This commit is contained in:
robojerk 2025-07-15 11:18:41 -07:00
parent d01d222b4d
commit 6cd1be1ba1
17 changed files with 1476 additions and 656 deletions

View file

@ -285,6 +285,21 @@ fi
"
script_content+=("$config_sourcing")
# Read and embed dependencies.json as a shell variable at the top
update_progress "Embedding: dependencies.json" 8
DEPENDENCIES_JSON_FILE="$SCRIPT_DIR/config/dependencies.json"
if [[ -f "$DEPENDENCIES_JSON_FILE" ]]; then
DEPENDENCIES_JSON_CONTENT=$(cat "$DEPENDENCIES_JSON_FILE")
script_content+=("# Embedded dependencies.json")
script_content+=("APT_LAYER_DEPENDENCIES_JSON=\$(cat << 'EOF'")
script_content+=("$DEPENDENCIES_JSON_CONTENT")
script_content+=("EOF")
script_content+=(")")
script_content+=("")
else
print_warning "dependencies.json not found, using fallback in scriptlet."
fi
# Function to add scriptlet content with error handling
add_scriptlet() {
local scriptlet_name="$1"