From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH v2 4/4] events: Cleanup lost schroot sessions if any
Date: Tue, 3 Jan 2023 10:55:28 +0100 [thread overview]
Message-ID: <CAJGKYO73F4uaBsQoOngG7kDz1UMG6Qqpwsr+tEfn_fpvdkRwrw@mail.gmail.com> (raw)
In-Reply-To: <20221230190824.12256-5-amikan@ilbers.de>
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
On Fri, 30 Dec 2022 at 20:08, Anton Mikanovich <amikan@ilbers.de> wrote:
>
> In case the user will only open imager schroot session but not close it
> we need to find and clean it up.
Hi Anton,
this patchset works for me but it missing a 5th patch to free dpkg
base class from buildchroot, here in attachment.
The patch has been also sent by elastic mail SMTP and it went in
moderation as usual.
>From 79e97dd3fe5fa2e710ca48dd864fd3df1bdb5a3c Mon Sep 17 00:00:00 2001
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Date: Mon, 2 Jan 2023 14:46:21 +0100
Subject: [PATCH] dpkg base class: use schroot only not buildchroot anymore
The patchset v.2 by Anton Mikanovich to migrate buildchroot to schroot is not
complete because the buildchroot is still used by the dpkg base class which can
be freed by buildchroot with this patch which applies on the top of these four:
* events: Cleanup lost schroot sessions if any, v2
* imager: Move image types to schroot, v2
* imager: Migrate from buildchroot to schroot, v2
* sbuild: Allow setting custom config paths, v2
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
meta/classes/dpkg-base.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
https://github.com/ilbers/isar/commit/79e97dd3fe5fa2e710ca48dd864fd3df1bdb5a3c
[-- Attachment #2: 0001-dpkg-base-class-use-schroot-only-not-buildchroot-any.patch --]
[-- Type: text/x-patch, Size: 1767 bytes --]
From 79e97dd3fe5fa2e710ca48dd864fd3df1bdb5a3c Mon Sep 17 00:00:00 2001
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Date: Mon, 2 Jan 2023 14:46:21 +0100
Subject: [PATCH] dpkg base class: use schroot only not buildchroot anymore
The patchset v.2 by Anton Mikanovich to migrate buildchroot to schroot is not
complete because the buildchroot is still used by the dpkg base class which can
be freed by buildchroot with this patch which applies on the top of these four:
* events: Cleanup lost schroot sessions if any, v2
* imager: Move image types to schroot, v2
* imager: Migrate from buildchroot to schroot, v2
* sbuild: Allow setting custom config paths, v2
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
meta/classes/dpkg-base.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 260aa73..b0035f5 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -5,7 +5,7 @@
# SPDX-License-Identifier: MIT
inherit sbuild
-inherit buildchroot
+#inherit buildchroot
inherit debianize
inherit terminal
inherit repository
@@ -124,7 +124,7 @@ addtask apt_fetch
do_apt_fetch[lockfiles] += "${REPO_ISAR_DIR}/isar.lock"
# Add dependency from the correct buildchroot: host or target
-do_apt_fetch[depends] += "${BUILDCHROOT_DEP}"
+#do_apt_fetch[depends] += "${BUILDCHROOT_DEP}"
# Add dependency from the correct schroot: host or target
do_apt_fetch[depends] += "${SCHROOT_DEP}"
@@ -194,7 +194,7 @@ dpkg_do_mounts() {
mkdir -p ${BUILDROOT}
sudo mount --bind ${WORKDIR} ${BUILDROOT}
- buildchroot_do_mounts
+# buildchroot_do_mounts
}
dpkg_undo_mounts() {
--
2.34.1
next prev parent reply other threads:[~2023-01-03 9:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-30 19:08 [PATCH v2 0/4] Imager schroot migration Anton Mikanovich
2022-12-30 19:08 ` [PATCH v2 1/4] sbuild: Allow setting custom config paths Anton Mikanovich
2022-12-30 19:08 ` [PATCH v2 2/4] imager: Migrate from buildchroot to schroot Anton Mikanovich
2022-12-30 19:08 ` [PATCH v2 3/4] imager: Move image types " Anton Mikanovich
2022-12-30 19:08 ` [PATCH v2 4/4] events: Cleanup lost schroot sessions if any Anton Mikanovich
2023-01-03 9:55 ` Roberto A. Foglietta [this message]
2023-01-04 11:19 ` Roberto A. Foglietta
2022-12-30 19:13 ` [PATCH v2 0/4] Imager schroot migration Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJGKYO73F4uaBsQoOngG7kDz1UMG6Qqpwsr+tEfn_fpvdkRwrw@mail.gmail.com \
--to=roberto.foglietta@gmail.com \
--cc=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox