mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] [RFC 0/3] Fix slots with nodev mounts
@ 2019-05-10  9:48 Ladislav Michl
  2019-05-10  9:48 ` [RAUC] [PATCH 1/3] Normalize device names to find mounted slots (2) Ladislav Michl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ladislav Michl @ 2019-05-10  9:48 UTC (permalink / raw)
  To: rauc; +Cc: Trent Piepho

Hi there,

this is just an attempt to make rauc work with nodev mounted slots.
It is based on https://github.com/rauc/rauc/pull/406 where first
patch in the serie is meant to be squashed there.

Second patch then implements matching against ubi:<vol_name>
device naming scheme and can be easily extended. Now with
$ cat /proc/mounts 
ubi0:rootfs0 / ubifs ro,relatime,assert=read-only,ubi=0,vol=0 0 0
[strip]
It is able to correctly find slot and use it as seed slot for casync:
$ rauc status
Compatible:  Foomatic System
Variant:     
Booted from: rootfs.0 (system0)
Activated:   rootfs.0 (system0)
slot states:
  rootfs.1: class=rootfs, device=/dev/ubi0_1, type=ubifs, bootname=system1
      state=inactive, description=, parent=(none), mountpoint=(none)
      boot status=good
  rootfs.0: class=rootfs, device=/dev/ubi0_0, type=ubifs, bootname=system0
      state=booted, description=, parent=(none), mountpoint=/
      boot status=good

Third patch is again just a preview - r_mount_slot should be fixed
instead. I'm assuming anything having ext_mount_point set is already
mounted there, thus only bind mount makes sense here. Correct?

Please review, I'd like to have patch 1 and (rewritten) patch 3
merged for v1.1 milestone :)

Thank you,
	ladis

_______________________________________________
RAUC mailing list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-10  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-10  9:48 [RAUC] [RFC 0/3] Fix slots with nodev mounts Ladislav Michl
2019-05-10  9:48 ` [RAUC] [PATCH 1/3] Normalize device names to find mounted slots (2) Ladislav Michl
2019-05-10  9:49 ` [RAUC] [PATCH 2/3] Try harder to determine slot state (preview) Ladislav Michl
2019-05-10  9:49 ` [RAUC] [PATCH 3/3] Bind mount seed slot Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox