public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* expand-on-first-boot and surprising umounts
@ 2022-10-21  7:48 Raphael Lisicki
  2022-10-21  8:45 ` Bezdeka, Florian
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Raphael Lisicki @ 2022-10-21  7:48 UTC (permalink / raw)
  To: isar-users

Hi everybody,

I am using a debian bullseye based system and use expand-on-first-boot 
to expand the last partition. It is not the root file system but an 
extra ext4 partition to be mounted under /data. The mounting happens 
after expand-on-first boot has succeeded.

Sometimes, on some builds more often than others, /data gets (attempted 
to be) umounted immediately after being mounted and subsequent units 
will fail.

Removing expand-on-first-boot resolves the issue, so does adding 
"ExecStartPost=/usr/bin/udevadm settle" to expand-on-first-boot but I am 
not sure if this is only a sophisticated way of solving a race condition 
with "sleep".

My gut feeling is that after expand-on-first boot finishes, the kernel
still processes block device events, which systemd gets after /data has
already been mounted and then cause it to be umounted, as systemd was
already picky with umounting stuff in the past [1]. Unfortunately I have
no idea how to test this hypothesis.

Did anyone already experience something like this? The racy-ness of the 
issue makes creating a minimal reproduction hard.



[1] https://github.com/systemd/systemd/issues/9869



best regards
raphael

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

end of thread, other threads:[~2022-10-27 14:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21  7:48 expand-on-first-boot and surprising umounts Raphael Lisicki
2022-10-21  8:45 ` Bezdeka, Florian
2022-10-21  9:36   ` Raphael Lisicki
2022-10-21  9:41     ` Bezdeka, Florian
2022-10-21 13:05       ` Jan Kiszka
2022-10-21 16:38         ` Jan Kiszka
2022-10-27 14:36           ` Raphael Lisicki
2022-10-21 16:24       ` Raphael Lisicki
2022-10-21 11:15 ` Henning Schild
2022-10-21 15:41 ` Roberto A. Foglietta
2022-10-21 16:15   ` Bezdeka, Florian
2022-10-21 17:35     ` Roberto A. Foglietta

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