From a1a20f45728617191d65510a997feba94d040c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Tue, 2 Jun 2020 16:40:41 +0200 Subject: [PATCH] Implement a possible workaround for initird corruption (#2004) Signed-off-by: Igor Pecovnik --- lib/debootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/debootstrap.sh b/lib/debootstrap.sh index 51b38d7ef1..8ebe0d2f04 100644 --- a/lib/debootstrap.sh +++ b/lib/debootstrap.sh @@ -556,6 +556,12 @@ update_initramfs() display_alert "Updated initramfs." "for details see: $DEST/debug/install.log" "ext" umount_chroot "$chroot_target/" + + # dirty workaround for random initrd corruption https://armbian.atlassian.net/browse/AR-294 + if [[ "$RELEASE" == focal || "$RELEASE" == bullseye ]]; then + chroot $chroot_target $QEMU_BINARY /bin/bash -c "$update_initramfs_cmd" >> $DEST/debug/install.log 2>&1 + fi + rm $chroot_target/usr/bin/$QEMU_BINARY } #############################################################################