Skip to content

Commit ad5dc22

Browse files
authored
Merge pull request #48 from SuMere/fix_no_qemu
Fixes error when running image recipe outside qemu.
2 parents 4b15a29 + 6e27440 commit ad5dc22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

debos-recipes/qualcomm-linux-debian-image.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,18 @@ actions:
7676
chroot: true
7777
command: |
7878
set -eux
79+
# Fixes error when running outside qemu
80+
dpkg-divert --local --rename --add /etc/kernel/postinst.d/u-boot-efi-dtb
81+
ln -s /bin/true /etc/kernel/postinst.d/u-boot-efi-dtb
7982
# u-boot-efi-dtb installs a kernel hook that will trigger on kernel
8083
# installation/upgrade, but also calls it explicitely in its postinst in
8184
# case it was installed after the kernel; it requires an ESP partition to
8285
# copy the DTBs though, so install it after the ESP partition is
8386
# available
8487
apt -y install u-boot-efi-dtb
88+
# Removing previous diversion and symlink
89+
rm /etc/kernel/postinst.d/u-boot-efi-dtb
90+
dpkg-divert --rename --remove /etc/kernel/postinst.d/u-boot-efi-dtb
8591
# when building under debos, /sys/firmware/efi is not always present, so
8692
# the u-boot-efi-dtb postinst doesn't install an initial copy of the
8793
# DTBs; do this once here

0 commit comments

Comments
 (0)