Disable multiple update-initramfs runs while building image (#2296)

This commit is contained in:
Piotr Szczepanik 2020-11-06 10:52:53 +01:00 committed by GitHub
parent 94ec4ce7c9
commit f9642f3882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -569,6 +569,9 @@ update_initramfs()
chroot $chroot_target /bin/bash -c "$update_initramfs_cmd" >> $DEST/debug/install.log 2>&1
display_alert "Updated initramfs." "for details see: $DEST/debug/install.log" "ext"
display_alert "Re-enabling" "initramfs-tools hook for kernel"
chroot "${SDCARD}" /bin/bash -c "chmod +x /etc/kernel/postinst.d/initramfs-tools" "${DEST}"/debug/install.log 2>&1
umount_chroot "$chroot_target/"
rm $chroot_target/usr/bin/$QEMU_BINARY

View File

@ -214,6 +214,9 @@ install_common()
display_alert "Updating" "package lists"
chroot "${SDCARD}" /bin/bash -c "apt-get update" "${DEST}"/debug/install.log 2>&1
display_alert "Temporarily disabling" "initramfs-tools hook for kernel"
chroot "${SDCARD}" /bin/bash -c "chmod -x /etc/kernel/postinst.d/initramfs-tools" "${DEST}"/debug/install.log 2>&1
# install family packages
if [[ -n ${PACKAGE_LIST_FAMILY} ]]; then
chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt-get -yqq --no-install-recommends install $PACKAGE_LIST_FAMILY" >> "${DEST}"/debug/install.log