Skip to content
Snippets Groups Projects
Verified Commit 0c01c7f2 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

sbin/reform-flash-rescue: change disk labels after dd

Otherwise, an inserted SD card will look for a partition with the
reformsdboot and reformsdroot label, find it on the emmc and use those
instead of sd-card.
parent 9e9b5a99
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment