Skip to content

Commit

Permalink
v9.10
Browse files Browse the repository at this point in the history
- DietPi-Build | Fix workaround
  • Loading branch information
MichaIng committed Dec 25, 2024
1 parent 46a5237 commit 2d07ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .build/images/dietpi-build
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ G_EXEC mount -o X-mount.mkdir -t tmpfs tmpfs rootfs/var/cache/apt
G_EXEC mount -o X-mount.mkdir -t tmpfs tmpfs rootfs/var/lib/apt/lists
G_EXEC mount -o X-mount.mkdir -t tmpfs tmpfs rootfs/var/log
# Workaround for apt-key dependency loop on Raspbian Trixie
if (( $HW_ARCH == 1 && $G_DISTRO == 8 ))
if (( $HW_ARCH == 1 && $DISTRO == 8 ))
then
G_EXEC mkdir -p rootfs/usr/local/bin
G_EXEC ln -s /bin/true rootfs/usr/local/bin/apt-key
Expand All @@ -430,7 +430,7 @@ packages='apt,bash-completion,bzip2,ca-certificates,cron,curl,fdisk,gpg,htop,ipu
G_EXEC_OUTPUT=1 G_EXEC mmdebstrap --mode=root --format=dir --skip=check/empty --skip=check/qemu --variant=minbase --include="$packages" --arch="$parch" --keyring="$keyring" "$distro" ./rootfs "$repo"
G_EXEC umount rootfs/dev rootfs/run rootfs/var/cache/apt rootfs/var/lib/apt/lists rootfs/var/log
# Undo workaround for apt-key dependency loop on Raspbian Trixie
if (( $HW_ARCH == 1 && $G_DISTRO == 8 ))
if (( $HW_ARCH == 1 && $DISTRO == 8 ))
then
G_EXEC rm rootfs/usr/local/bin/apt-key
G_EXEC rmdir -p rootfs/usr/local/bin
Expand Down

0 comments on commit 2d07ecb

Please sign in to comment.