diff -Nru u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/changelog u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/changelog --- u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/changelog 2022-11-29 09:20:07.000000000 +0000 +++ u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/changelog 2023-06-08 14:09:37.000000000 +0100 @@ -1,3 +1,10 @@ +u-boot-nezha (2022.10-1089-g528ae9bc6c-0ubuntu2) mantic; urgency=medium + + * Add initramfs-tools snippet to ensure MMC module is always included in + the initrd for boards using u-boot-nezha. LP: #1975592 + + -- Dimitri John Ledkov Thu, 08 Jun 2023 14:09:37 +0100 + u-boot-nezha (2022.10-1089-g528ae9bc6c-0ubuntu1) lunar; urgency=medium * Bump version to 2022.10 (LP: #1998197) diff -Nru u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/install u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/install --- u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/install 2022-11-29 09:20:07.000000000 +0000 +++ u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/install 2023-06-08 14:01:22.000000000 +0100 @@ -1,2 +1,3 @@ build_nezha/u-boot-sunxi-with-spl.bin /usr/lib/u-boot/nezha build_licheerv/u-boot-sunxi-with-spl.bin /usr/lib/u-boot/licheerv +debian/modules.d/ /usr/share/initramfs-tools/ diff -Nru u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/modules.d/allwinner-sdcard-boot u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/modules.d/allwinner-sdcard-boot --- u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/modules.d/allwinner-sdcard-boot 1970-01-01 01:00:00.000000000 +0100 +++ u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/modules.d/allwinner-sdcard-boot 2023-06-08 14:00:58.000000000 +0100 @@ -0,0 +1,2 @@ +# required driver to boot of MMC +sunxi-mmc diff -Nru u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/postinst u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/postinst --- u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/postinst 2022-11-29 09:20:07.000000000 +0000 +++ u-boot-nezha-2022.10-1089-g528ae9bc6c/debian/postinst 2023-06-08 14:09:22.000000000 +0100 @@ -13,6 +13,10 @@ if grep -q '^Sipeed Lichee RV' /sys/firmware/devicetree/base/model && [ -e /dev/disk/by-partlabel/loader1 ]; then dd if=/usr/lib/u-boot/licheerv/u-boot-sunxi-with-spl.bin of=/dev/disk/by-partlabel/loader1 conv=fsync fi + # Update initramfs on this package upgrade, due to introduced initramfs-tools snippet + if dpkg --compare-versions "$2" lt-nl 2022.10-1089-g528ae9bc6c-0ubuntu2; then + dpkg-trigger --no-await update-initramfs + fi ;; esac