罐子的obs 想要交流可到QQ群979437558联系我

File config.sh of Package debian13-dde25-image

#!/bin/bash
set -eux

ROOT="${KIWI_ROOT_DIR}"

echo "Asia/Shanghai" > "${ROOT}/etc/timezone"

if [ -d "${ROOT}/etc/default" ]; then
    cat > "${ROOT}/etc/default/locale" <<'EOF'
LANG=zh_CN.UTF-8
LC_ALL=zh_CN.UTF-8
EOF
fi

if [ -d "${ROOT}/etc/systemd/system" ]; then
    ln -sf /lib/systemd/system/graphical.target \
        "${ROOT}/etc/systemd/system/default.target"
fi

systemctl --root="${ROOT}" enable NetworkManager.service || true
systemctl --root="${ROOT}" enable lightdm.service || true