mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-06-29 21:38:35 +00:00
Compare commits
No commits in common. "b945c831a05a5a4f2aef45c4b3417dbdfb22d75f" and "f3fc9a3a92989df5d76f4985759eb29ab1461652" have entirely different histories.
b945c831a0
...
f3fc9a3a92
1
.github/workflows/build-all-live-usb.yml
vendored
1
.github/workflows/build-all-live-usb.yml
vendored
|
|
@ -48,7 +48,6 @@ jobs:
|
||||||
output_pattern: "secubox-live-amd64-*.img*"
|
output_pattern: "secubox-live-amd64-*.img*"
|
||||||
needs_qemu: false
|
needs_qemu: false
|
||||||
embed_image: false
|
embed_image: false
|
||||||
extra_args: "--kiosk"
|
|
||||||
|
|
||||||
# MOCHAbin (arm64) - U-Boot distroboot
|
# MOCHAbin (arm64) - U-Boot distroboot
|
||||||
- platform: mochabin
|
- platform: mochabin
|
||||||
|
|
|
||||||
|
|
@ -1137,24 +1137,6 @@ mount_chroot_fs() {
|
||||||
|
|
||||||
mount_chroot_fs
|
mount_chroot_fs
|
||||||
|
|
||||||
# Make EVERY dpkg op in the chroot keep existing conffiles and never prompt.
|
|
||||||
# secubox-mesh's mesh.toml is an auto-detected conffile; in the headless chroot
|
|
||||||
# its prompt aborts with "end of file on stdin at conffile prompt", failing the
|
|
||||||
# whole build. dpkg.cfg.d covers apt installs AND bare `dpkg --configure -a`.
|
|
||||||
install -d "${ROOTFS}/etc/dpkg/dpkg.cfg.d"
|
|
||||||
printf 'force-confold\nforce-confdef\n' > "${ROOTFS}/etc/dpkg/dpkg.cfg.d/90-secubox-confold"
|
|
||||||
|
|
||||||
# Deny service start/stop/reload during install — the chroot has no running
|
|
||||||
# init/dbus, so packages like dbus / the kiosk X11+chromium stack abort their
|
|
||||||
# postinst ("Failed to connect to system message bus", invoke-rc.d errors),
|
|
||||||
# which fails the whole build. Removed before squashfs so the real system
|
|
||||||
# boots services normally (systemd starts enabled units regardless).
|
|
||||||
cat > "${ROOTFS}/usr/sbin/policy-rc.d" <<'POLICY'
|
|
||||||
#!/bin/sh
|
|
||||||
exit 101
|
|
||||||
POLICY
|
|
||||||
chmod +x "${ROOTFS}/usr/sbin/policy-rc.d"
|
|
||||||
|
|
||||||
cat > "${ROOTFS}/etc/apt/sources.list" <<EOF
|
cat > "${ROOTFS}/etc/apt/sources.list" <<EOF
|
||||||
deb ${APT_MIRROR} ${SUITE} main contrib non-free non-free-firmware
|
deb ${APT_MIRROR} ${SUITE} main contrib non-free non-free-firmware
|
||||||
deb ${APT_MIRROR} ${SUITE}-updates main contrib non-free non-free-firmware
|
deb ${APT_MIRROR} ${SUITE}-updates main contrib non-free non-free-firmware
|
||||||
|
|
@ -3359,9 +3341,6 @@ umount -lf "${ROOTFS}/sys" 2>/dev/null || true
|
||||||
log "7/8 Creating SquashFS filesystem..."
|
log "7/8 Creating SquashFS filesystem..."
|
||||||
mkdir -p "${LIVE_DIR}/live"
|
mkdir -p "${LIVE_DIR}/live"
|
||||||
|
|
||||||
# Remove the build-time service-deny shim so the booted system starts services.
|
|
||||||
rm -f "${ROOTFS}/usr/sbin/policy-rc.d"
|
|
||||||
|
|
||||||
mksquashfs "${ROOTFS}" "${LIVE_DIR}/live/filesystem.squashfs" \
|
mksquashfs "${ROOTFS}" "${LIVE_DIR}/live/filesystem.squashfs" \
|
||||||
-comp xz -b 1M -Xdict-size 100% -e boot/grub -e boot/efi
|
-comp xz -b 1M -Xdict-size 100% -e boot/grub -e boot/efi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user