I've followed some previous conversations in this forum to set up a customized SD card image to support my use-case - which is looking after a set of very remote (other side of the world) Raspberry Pis that I only physically visit very rarely - like once in 5 years so far.
The image looks something like this:
p1: FAT32 partition with autoboot.txt, bootcode.bin and config.txt
p2: FAT32 a_boot
p3: FAT32 b_boot
p4 primary partition for remaining extended partitions'
p5: ext4 a_root
p6: ext4 b_root
I can initiate which ever configuration I want with reboot 2 or reboot 3, and I have set the default partition to boot from in autoboot.txt with the tryboot section set for the other.What I'm now trying to achieve is resilience to some real-world issues I might inflict on myself. The first thing I tried was putting the wrong root=PARTUUID in b_boot's cmdline.txt, then restarting with 'reboot "0 tryboot"'
I did this on a test pi that's physically here with me, and I could see it was left with an initramfs prompt I could resolve this one, but it it was on the other side of the world I'd have been scuppered.
Is there any way to make a pi automatically reboot if it hits this sort of error, like a missing rootfs or some other misconfiguration?
The image looks something like this:
p1: FAT32 partition with autoboot.txt, bootcode.bin and config.txt
p2: FAT32 a_boot
p3: FAT32 b_boot
p4 primary partition for remaining extended partitions'
p5: ext4 a_root
p6: ext4 b_root
I can initiate which ever configuration I want with reboot 2 or reboot 3, and I have set the default partition to boot from in autoboot.txt with the tryboot section set for the other.
Code:
[all]tryboot_a_b=1boot_partition=2[tryboot]boot_partition=3I did this on a test pi that's physically here with me, and I could see it was left with an initramfs prompt I could resolve this one, but it it was on the other side of the world I'd have been scuppered.
Is there any way to make a pi automatically reboot if it hits this sort of error, like a missing rootfs or some other misconfiguration?
Statistics: Posted by bcb2k — Mon Oct 20, 2025 1:57 am