public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] isar-image: umount base-apt when doing offline build
@ 2018-11-29 14:19 Jan Kiszka
  2018-11-29 14:28 ` Andreas Reichel
  2018-12-07 13:44 ` Maxim Yu. Osipov
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2018-11-29 14:19 UTC (permalink / raw)
  To: isar-users; +Cc: Andreas Reichel

Leaving it mounted "slightly" increases the target image size.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/isar-image.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/isar-image.bbclass b/meta/classes/isar-image.bbclass
index 7aaaecb..23b3a99 100644
--- a/meta/classes/isar-image.bbclass
+++ b/meta/classes/isar-image.bbclass
@@ -63,6 +63,10 @@ isar_image_cleanup() {
     sudo umount -l ${IMAGE_ROOTFS}/proc
     sudo umount -R -l ${IMAGE_ROOTFS}/sys
     sudo rm -f "${IMAGE_ROOTFS}/etc/apt/apt.conf.d/55isar-fallback.conf"
+    if [ "${ISAR_USE_CACHED_BASE_REPO}" = "1" ]; then
+        sudo umount -l ${IMAGE_ROOTFS}/base-apt
+        sudo rmdir ${IMAGE_ROOTFS}/base-apt
+    fi
 }
 
 python do_rootfs() {
-- 
2.16.4

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

end of thread, other threads:[~2018-12-07 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 14:19 [PATCH] isar-image: umount base-apt when doing offline build Jan Kiszka
2018-11-29 14:28 ` Andreas Reichel
2018-11-29 14:55   ` Jan Kiszka
2018-12-07 13:44 ` Maxim Yu. Osipov

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