Changes to rebuild without recompiling

This commit is contained in:
g-vidal
2025-11-01 09:57:48 +01:00
parent 92b81a7a4e
commit 62675a0971
6 changed files with 28 additions and 155 deletions

View File

@@ -8,6 +8,8 @@
VARIANT=""
COMPONENTS="main"
if [ "$BUILD_KERNEL" != "uselocal" ]; then #ajout 2025
# Use non-free Debian packages if needed
# One use variable which is only needed by wifi firmware blob => reworked to use non free in /etc/apt/sources.list - we could just use ENABLE_WIRELESS here
if [ "$ENABLE_WIRELESS" = true ] || [ "$ENABLE_NONFREE" = true ] ; then
@@ -24,11 +26,12 @@ fi
#if [ "$RELEASE" = "bookworm" ] || [ "$RELEASE" = "bullseye" ] ; then
# APT_EXCLUDES="--exclude=init,systemd-sysv"
#fi
# Base debootstrap (unpack only)
http_proxy=${APT_PROXY} debootstrap ${APT_EXCLUDES} --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian"
# Copy qemu emulator binary to chroot
install -m 755 -o root -g root "${QEMU_BINARY}" "${R}${QEMU_BINARY}"
@@ -36,9 +39,13 @@ install -m 755 -o root -g root "${QEMU_BINARY}" "${R}${QEMU_BINARY}"
mkdir -p "${R}/usr/share/keyrings"
install_readonly /usr/share/keyrings/debian-archive-keyring.gpg "${R}/usr/share/keyrings/debian-archive-keyring.gpg"
# Complete the bootstrapping process
chroot_exec /debootstrap/debootstrap --second-stage
fi
# Mount required filesystems
mount -t proc none "${R}/proc"
mount -t sysfs none "${R}/sys"