diff --git a/debian/changelog b/debian/changelog index bf72d08bb0c094c19fd3fd8af677866c7c09f6ae..2842504f5cc62a2831668d1cb7d9aeb1b24a9686 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +reform-tools (1.26) reform; urgency=medium + + * sbin/reform-flash-rescue: change disk labels after dd + + -- Johannes Schauer Marin Rodrigues <josch@debian.org> Mon, 11 Sep 2023 17:54:27 +0200 + reform-tools (1.25) reform; urgency=medium * updates for sysimage-v4 diff --git a/sbin/reform-flash-rescue b/sbin/reform-flash-rescue index 055a4c86886e1ef8b9592761709d8162344e0780..a4c2bc7219a96dadb8f84f190452d4d548bcf030 100755 --- a/sbin/reform-flash-rescue +++ b/sbin/reform-flash-rescue @@ -71,6 +71,10 @@ else fi; } | gzip --decompress --to-stdout | dd of=/dev/mmcblk0 status=progress partprobe /dev/mmcblk0 +# overwrite the partition label +e2label /dev/mmcblk0p1 reformemmcboot +e2label /dev/mmcblk0p2 reformemmcroot + # The rescue system image that we downloaded and wrote to the eMMC above is # configured to use the rootfs on the SD-Card but we want the initramfs on eMMC # to boot the rootfs on eMMC and not the rootfs from SD-Card. Use