billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 334 forks source link

cmdline.txt not update on cloned disk #182

Closed gtnscebba closed 2 months ago

gtnscebba commented 2 months ago

I installed version 2.0.22 on a Raspberry PI4b. The Linux version is SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux.

Cloning is successful, but at the end it only updates fstab and not cmdline.txt.

The result is that the cloned SD is not able to boot correctly.

By manually updating cmdline.txt with the correct PARTUUID, the SD boots correctly. I can see the correct PARTUUID from sudo blkid.