diff -Nru raspi3-firmware-1.20171201/debian/changelog raspi3-firmware-1.20171201/debian/changelog --- raspi3-firmware-1.20171201/debian/changelog 2018-01-06 17:14:17.000000000 +0000 +++ raspi3-firmware-1.20171201/debian/changelog 2018-01-21 14:35:47.000000000 +0000 @@ -1,3 +1,9 @@ +raspi3-firmware (1.20171201-3) unstable; urgency=medium + + * Ensure /boot/firmware exists (Closes: #887062) + + -- Michael Stapelberg Sun, 21 Jan 2018 15:35:47 +0100 + raspi3-firmware (1.20171201-2) unstable; urgency=medium * postinst: also trigger hook on upgrades, not just first installation diff -Nru raspi3-firmware-1.20171201/debian/kernel/postinst.d/raspi3-firmware raspi3-firmware-1.20171201/debian/kernel/postinst.d/raspi3-firmware --- raspi3-firmware-1.20171201/debian/kernel/postinst.d/raspi3-firmware 2018-01-05 07:00:22.000000000 +0000 +++ raspi3-firmware-1.20171201/debian/kernel/postinst.d/raspi3-firmware 2018-01-21 14:34:39.000000000 +0000 @@ -38,6 +38,9 @@ fi fi +# Ensure the target directory exists. See https://bugs.debian.org/887062 +mkdir -p /boot/firmware + latest_kernel=$(ls -1 /boot/vmlinuz-* | grep -v '\.dpkg-bak$' | sort -V -r | head -1) if [ -z "$latest_kernel" ]; then echo "raspi3-firmware: no kernel found in /boot/vmlinuz-*, cannot populate /boot/firmware" diff -Nru raspi3-firmware-1.20171201/debian/raspi3-firmware.postinst raspi3-firmware-1.20171201/debian/raspi3-firmware.postinst --- raspi3-firmware-1.20171201/debian/raspi3-firmware.postinst 2018-01-06 17:13:21.000000000 +0000 +++ raspi3-firmware-1.20171201/debian/raspi3-firmware.postinst 2018-01-21 14:35:09.000000000 +0000 @@ -13,6 +13,9 @@ fi fi + # Ensure the target directory exists. See https://bugs.debian.org/887062 + mkdir -p /boot/firmware + for file in /usr/lib/raspi3-firmware/* do file=$( basename "$file" )