29 lines
783 B
YAML
29 lines
783 B
YAML
# Post-processing configuration for Debian minimal base images
|
|
postprocess:
|
|
# Set up essential system configuration
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
# Create essential directories
|
|
mkdir -p /etc/apt/apt.conf.d
|
|
mkdir -p /etc/systemd/system
|
|
mkdir -p /etc/ostree
|
|
|
|
# Configure APT for minimal system
|
|
cat > /etc/apt/apt.conf.d/99-minimal << 'EOF'
|
|
APT::Install-Recommends "false";
|
|
APT::Install-Suggests "false";
|
|
APT::Get::Assume-Yes "true";
|
|
EOF
|
|
|
|
# Set up OSTree configuration
|
|
cat > /etc/ostree/ostree.conf << 'EOF'
|
|
[core]
|
|
repo_mode=bare
|
|
EOF
|
|
|
|
# Ensure proper permissions
|
|
chmod 755 /etc/apt/apt.conf.d
|
|
chmod 644 /etc/apt/apt.conf.d/99-minimal
|
|
chmod 644 /etc/ostree/ostree.conf
|