public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Hanging mount fixes
@ 2024-10-11 10:00 Anton Mikanovich
  2024-10-11 10:00 ` [PATCH v3 1/8] CI: Do not lose output on bitbake / qemu exit Anton Mikanovich
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Anton Mikanovich @ 2024-10-11 10:00 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

Consolidate the patches to address the hanging mount issues.

Addresses the following issues:

 1. Cleanup handler is called multiple times, unmounting any hanging
    mounts.

 2. Hanging mount warnings are discarded in the current setup.

 3. Incorrect asymmetric mount-umount logic inherited from buildchroot
    times.

In this series, cleanup is done in reverse /proc/mounts order to
unmount e.g. /dev/shm before /dev. This happens to work for us today
but we could perform stricter semantic ordering if necessary.

ISAR_FAIL_ON_CLEANUP=1 can be set in the environment to fail builds if
mounts are left behind. We will use this for Isar CI. The default is 0.

p1 comes from 'Additional CI improvements' series.
Patches p4-p6 come from v2 of 'Start to address umount problems' series
by Jan.
p7 comes from 'Fix leftover mounts in rootfs.bbclass' by Florian.
p2, p3 and p8 are new one.

Anton Mikanovich (4):
  CI: Do not lose output on bitbake / qemu exit
  isar-events: Unhide mounts left behind
  CI: Pass ISAR_FAIL_ON_CLEANUP from environment to bitbake
  image: Do not call rootfs_do_umounts twice

Florian Bezdeka (1):
  rootfs: Add missing umounts in rootfs_postprocess() and
    rootfs_install()

Jan Kiszka (3):
  image: Avoid breaking the build when mounts are no longer present on
    umount
  rootfs: Provide rootfs_do_umounts
  initramfs: Add missing umounts after generation

 RECIPE-API-CHANGELOG.md          | 15 ++++++++
 meta/classes/image.bbclass       | 19 ----------
 meta/classes/initramfs.bbclass   |  2 +
 meta/classes/isar-events.bbclass | 40 ++++++++++++++++----
 meta/classes/rootfs.bbclass      | 63 ++++++++++++++++++++++++++------
 testsuite/cibuilder.py           | 13 +++++--
 6 files changed, 110 insertions(+), 42 deletions(-)

-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/20241011100050.322686-1-amikan%40ilbers.de.

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

end of thread, other threads:[~2024-10-16 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-11 10:00 [PATCH v3 0/8] Hanging mount fixes Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 1/8] CI: Do not lose output on bitbake / qemu exit Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 2/8] isar-events: Unhide mounts left behind Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 3/8] CI: Pass ISAR_FAIL_ON_CLEANUP from environment to bitbake Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 4/8] image: Avoid breaking the build when mounts are no longer present on umount Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 5/8] rootfs: Provide rootfs_do_umounts Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 6/8] initramfs: Add missing umounts after generation Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 7/8] rootfs: Add missing umounts in rootfs_postprocess() and rootfs_install() Anton Mikanovich
2024-10-11 10:00 ` [PATCH v3 8/8] image: Do not call rootfs_do_umounts twice Anton Mikanovich
2024-10-15  9:23 ` [PATCH v3 0/8] Hanging mount fixes Baurzhan Ismagulov
2024-10-16 16:06 ` Uladzimir Bely

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