From cd5e102c47daf091af71405b53e81d25fa6fa471 Mon Sep 17 00:00:00 2001 From: SteeManMI <36392828+SteeManMI@users.noreply.github.com> Date: Mon, 8 Mar 2021 13:14:45 -0500 Subject: [PATCH] Fix issue with fat filesystems. The mv left the filesystem in a different (#2697) state than a cp will. On an ext4 filesystem the ln leaves both objects, but the fat version was only leaving the Image. This was causing an error latter in the postinst script when the vmlinuz- filename was referenced --- patch/misc/general-packaging-5.10.y.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/misc/general-packaging-5.10.y.patch b/patch/misc/general-packaging-5.10.y.patch index 17115421b..f77610e08 100644 --- a/patch/misc/general-packaging-5.10.y.patch +++ b/patch/misc/general-packaging-5.10.y.patch @@ -196,7 +196,7 @@ index 1b11f8993..c21d931ea 100755 +## +sed -e "s/exit 0//g" -i $tmpdir/DEBIAN/postinst +cat >> $tmpdir/DEBIAN/postinst < /dev/null || mv /$installed_image_path /boot/$image_name ++ln -sf $(basename $installed_image_path) /boot/$image_name 2> /dev/null || cp /$installed_image_path /boot/$image_name +touch /boot/.next +exit 0 +EOT