* [PATCH 0/1] Use path in TMPDIR for schroot's overlay
@ 2022-07-12 11:14 Uladzimir Bely
2022-07-12 11:14 ` [PATCH 1/1] " Uladzimir Bely
2022-07-20 5:48 ` [PATCH 0/1] " Anton Mikanovich
0 siblings, 2 replies; 4+ messages in thread
From: Uladzimir Bely @ 2022-07-12 11:14 UTC (permalink / raw)
To: isar-users
The patch makes external mount for `/var/lib/schroot/union/overlay`
unnecessary when running in docker. So, Gitlab CI doesn't require
changes in `/etc/gitlab-runner/config.toml` to provide external
path anymore.
Also, in corresponding external mount in kas-container also becomes
redundant.
The problem was initially raised in isar-groups mailing list as
https://groups.google.com/g/isar-users/c/xelLq3MTc_I
Uladzimir Bely (1):
Use path in TMPDIR for schroot's overlay
meta/classes/sbuild.bbclass | 2 ++
1 file changed, 2 insertions(+)
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] Use path in TMPDIR for schroot's overlay
2022-07-12 11:14 [PATCH 0/1] Use path in TMPDIR for schroot's overlay Uladzimir Bely
@ 2022-07-12 11:14 ` Uladzimir Bely
2022-07-19 15:27 ` Michael Adler
2022-07-20 5:48 ` [PATCH 0/1] " Anton Mikanovich
1 sibling, 1 reply; 4+ messages in thread
From: Uladzimir Bely @ 2022-07-12 11:14 UTC (permalink / raw)
To: isar-users
By default, overlay path for schroot is /var/lib/schroot/union/overlay
that leads to the conflict with docker build.
Docker itself also uses overlayfs for the layers and we come to
situation with 'overlayfs over overlayfs' that is not supported
by the driver.
This solution places overlay path under the build/tmp so gitlab-runner
configuration changes or using external volumes in docker are not
required anymore.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
meta/classes/sbuild.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/sbuild.bbclass b/meta/classes/sbuild.bbclass
index f9bfaaf6..405fb963 100644
--- a/meta/classes/sbuild.bbclass
+++ b/meta/classes/sbuild.bbclass
@@ -31,6 +31,7 @@ SCHROOT_CONF_FILE ?= "${SCHROOT_CONF}/chroot.d/${SBUILD_CHROOT}"
SBUILD_CONFIG="${WORKDIR}/sbuild.conf"
schroot_create_configs() {
+ mkdir -p "${TMPDIR}/schroot-overlay"
sudo -s <<'EOSUDO'
set -e
@@ -46,6 +47,7 @@ root-groups=root,sbuild
source-root-users=${SCHROOT_USER}
source-root-groups=root,sbuild
union-type=overlay
+union-overlay-directory=${TMPDIR}/schroot-overlay
preserve-environment=true
EOF
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Use path in TMPDIR for schroot's overlay
2022-07-12 11:14 ` [PATCH 1/1] " Uladzimir Bely
@ 2022-07-19 15:27 ` Michael Adler
0 siblings, 0 replies; 4+ messages in thread
From: Michael Adler @ 2022-07-19 15:27 UTC (permalink / raw)
To: Uladzimir Bely; +Cc: isar-users
Hi Uladzimir,
I have tested your patch and it appears to be working (verified using one of our K8s based CI runners).
Kind Regards,
Michael
--
Michael Adler
Siemens AG
T CED SES-DE
Otto-Hahn-Ring 6
81739 M�nchen, Deutschland
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Roland Busch, Vorsitzender; Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Sitz der Gesellschaft: Berlin und M�nchen, Deutschland; Registergericht: Berlin-Charlottenburg, HRB 12300, M�nchen, HRB 6684; WEEE-Reg.-Nr. DE 23691322
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/1] Use path in TMPDIR for schroot's overlay
2022-07-12 11:14 [PATCH 0/1] Use path in TMPDIR for schroot's overlay Uladzimir Bely
2022-07-12 11:14 ` [PATCH 1/1] " Uladzimir Bely
@ 2022-07-20 5:48 ` Anton Mikanovich
1 sibling, 0 replies; 4+ messages in thread
From: Anton Mikanovich @ 2022-07-20 5:48 UTC (permalink / raw)
To: Uladzimir Bely, isar-users
12.07.2022 14:14, Uladzimir Bely wrote:
> The patch makes external mount for `/var/lib/schroot/union/overlay`
> unnecessary when running in docker. So, Gitlab CI doesn't require
> changes in `/etc/gitlab-runner/config.toml` to provide external
> path anymore.
>
> Also, in corresponding external mount in kas-container also becomes
> redundant.
>
> The problem was initially raised in isar-groups mailing list as
> https://groups.google.com/g/isar-users/c/xelLq3MTc_I
>
> Uladzimir Bely (1):
> Use path in TMPDIR for schroot's overlay
>
> meta/classes/sbuild.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-20 5:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 11:14 [PATCH 0/1] Use path in TMPDIR for schroot's overlay Uladzimir Bely
2022-07-12 11:14 ` [PATCH 1/1] " Uladzimir Bely
2022-07-19 15:27 ` Michael Adler
2022-07-20 5:48 ` [PATCH 0/1] " Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox