operating-system icon indicating copy to clipboard operation
operating-system copied to clipboard

Fix rauc hook to restore machine-id in new grub environment

Open claplace opened this issue 1 year ago • 2 comments

Without a machine-id, the next boot will be considered as a first boot, and any external data disk will be disabled.

Fixes #3247.

Screenshot 2024-06-29 at 12 32 46

After installing my raucb update bundle and a reboot:

Jun 29 16:34:38 homeassistant kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt4)/Image root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootwait zram.enabled=1 zram.num_devices=3 systemd.machine_id=6c631b4986cb426f9b7860df4ce10629 fsck.repair=yes console=ttyS0 console=tty0 rauc.slot=B

The machine-id has been conserved 👍

claplace avatar Jun 29 '24 16:06 claplace

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks :+1:

Learn more about our pull request process.

home-assistant[bot] avatar Jun 29 '24 16:06 home-assistant[bot]

I'd like to add the rel-x label, but I'm not sure I can do that myself.

claplace avatar Jun 29 '24 16:06 claplace

Hi @sairon, that works even better, thank you!

Screenshot 2024-07-03 at 19 30 05

claplace avatar Jul 03 '24 23:07 claplace

Tagging with generic-aarch64 only, since x86/OVA targets were not affected until the patch that landed just recently only in dev.

sairon avatar Jul 04 '24 08:07 sairon