This commit is contained in:
2026-03-20 08:35:32 +01:00
parent 8a7603ffcc
commit ea00688fe9
2 changed files with 11 additions and 3 deletions

View File

@@ -185,13 +185,18 @@ else
fi
# Package repos — copy and fix permissions for system paths
info "Copying package repos..."
for repo in core extra desktop gaming; do
if [ -d "${PROJECT_ROOT}/src/repos/${repo}" ]; then
cp -a "${PROJECT_ROOT}/src/repos/${repo}" "${ROOTFS}/var/lib/dpack/repos/" 2>/dev/null || true
cp -a "${PROJECT_ROOT}/src/repos/${repo}" "${ROOTFS}/var/lib/dpack/repos/"
ok " Copied ${repo} repo ($(find "${PROJECT_ROOT}/src/repos/${repo}" -mindepth 1 -maxdepth 1 -type d | wc -l) packages)"
else
warn " Repo not found: ${PROJECT_ROOT}/src/repos/${repo}"
fi
done
# Fix permissions: repo dirs came from build user, but must be world-readable in the ISO
chmod -R a+rX "${ROOTFS}/var/lib/dpack/repos/" 2>/dev/null || true
chmod -R a+rX "${ROOTFS}/var/lib/dpack/repos/"
ls -la "${ROOTFS}/var/lib/dpack/repos/" || true
# --- Install kernel ----------------------------------------------------------
KERNEL_PATH=""