debian-bootc-base-images/minimal/basic-fixes.yaml
2025-08-30 12:36:18 -07:00

30 lines
787 B
YAML

# Basic fixes for Debian minimal base images
postprocess:
# Fix common issues and set up essential configuration
- |
#!/usr/bin/env bash
set -xeuo pipefail
# Fix locale issues
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/default/locale
# Set up timezone
echo "UTC" > /etc/timezone
# Fix permissions on essential files
chmod 644 /etc/default/locale
chmod 644 /etc/timezone
# Ensure proper hostname configuration
echo "debian-atomic" > /etc/hostname
# Set up basic networking
cat > /etc/network/interfaces << 'EOF'
auto lo
iface lo inet loopback
EOF
# Fix systemd configuration
systemctl enable systemd-networkd
systemctl enable systemd-resolved