rauc / meta-rauc-community

Yocto/OpenEmbedded meta layer with examples for integration of RAUC, the embedded Linux A/B update framework
MIT License
48 stars 52 forks source link

Home partition not mounted after update #15

Closed alex88 closed 2 years ago

alex88 commented 3 years ago

I've mentioned this in the irc channel because it was happening with my custom image and I gave a try using this layer on a brand new project as in https://www.konsulko.com/getting-started-with-rauc-on-raspberry-pi-2/ to understand if my custom image was the issue issue or also on the default one.

It seems that even in a default configuration, the /home extra partition isn't mounted after a rauc update.

Just to give a quick example:

So I think the two viable solutions are to either:

ejoerns commented 2 years ago

@alex88 There is no need to figure out why the wic-generated fstab doesn' apply to rauc bundle as wic is not involved in the image that ends up in the bundle. wic uses the generated rootfs partition image and manipulates this when creating the disk image. The RAUC bundle of course uses the partition image only.

So the proper solution for this is to place the mount into /etc/fstab via manipulation of base-files.bb or, if you have systemd, make sure you have a mount unit set up for home.

alex88 commented 2 years ago

Got it thank you!