I would like to change the UUID of the rootfs partition of the default Ubuntu server image (ubuntu-20.04-server-odroidm1-20220531.img).
First I generate a random UUID (say, "7dded70e-47db-11ee-a647-001e06510b32").
Then here are my steps:
Code: Select all
sudo tune2fs -O metadata_csum_seed /dev/mmcblk0p2 sudo tune2fs -U 7dded70e-47db-11ee-a647-001e06510b32 /dev/mmcblk0p2 sudo vi /etc/fstab sudo vi /etc/default/flash-kernel sudo flash-kernel sudo reboot
The command "sudo blkid /dev/mmcblk0p2" shows that the UUID is correctly updated.
Also, the UUID in "/boot/boot.scr" is correctly updated by "flash-kernel".
The kernel boots fine but the login prompt never appears.
I compared the boot log before and after the modification and nothing shows up, log is the same.
I suspect that the kernel is not able the rootfs after the UUID change for some reason.
Is there anything else I should do? Any ideas?
Thanks in advance!