-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Hi!
Thanks for writing this program! It's been extremely helpful creating new images to flash for our customers.
I took a running CM4 that has an older codebase on it that's operational, our customer was having some issues with a later upgrade to the CM5, and they lost the original software that's running great on the CM4. So I extracted the rootfs and bootfs from the running software, and now flashing that to a new CM4.
But I'm having issues with how to correctly set everything up so that the PARTUUID and any other unique ID gets replaced correctly for the new CM4. When it boots up, it can't find the root partition and fails to boot up.
Here's the command I'm using:
sudo sdm --hostname msrs 2024-10-22-raspios-bookworm-arm64-lite.img
--poptions noupdate,noupgrade,noautoremove
--customize $1
--logwidth 132
--extend --xmb 32768
--nowait-timesync
--plugin @./my.plugins
--regen-ssh-host-keys
My plugins file:
user:deluser=pi
user:adduser=pi|password=climbing
raspiconfig:net_names=1|boot_splash=1|i2c=1
disables:piwiz
L10n:keymap=us|locale=en_US.UTF-8|timezone=America/Los_Angeles
network:netman=network-manager|noipv6|timesyncwait=30
hotspot:device=wlan0|hsname=hs|hsenable=y|type=routed|dhcpmode=nm|wifissid=CM4|wifipassword=changeme
copydir:from=/media/jctullos/sw/home/pi/|to=/home/pi/
copydir:from=/media/jctullos/sw/etc/|to=/etc/
copyfile:filelist=/home/jctullos/APT_REPO/myfiles
copydir:from=/media/jctullos/sw/var/|to=/var/