From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6875588819966492672 X-Received: by 2002:a5d:4e8c:: with SMTP id e12mr5007144wru.180.1600948360686; Thu, 24 Sep 2020 04:52:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:4154:: with SMTP id o81ls1398465wma.0.gmail; Thu, 24 Sep 2020 04:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmmHfs+gv1zyuIjITRvgwH8+sgyMTyjEWPBKRxkwtKpj0zJjWc/QoZhkTf5O1QdKr2zCOz X-Received: by 2002:a1c:9d43:: with SMTP id g64mr4800643wme.16.1600948359772; Thu, 24 Sep 2020 04:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600948359; cv=none; d=google.com; s=arc-20160816; b=MQ0P1RkBT1unIx784Gp7Lw8CSf1AA3bz8Gj5GIi4zuG0cj62TPUWoRvXv7nMozCi+e YBpCGX2Y4x0NU9Y8iRuVJ03wyb4GaT0dshp2UyP6cYP0oP459LKCQMX3r1fY3YEYBlRz rycY8cs5V0KflrQF2WoxTtRX6x2KQ8ZSxqTFB9SM1u1bsG6UIMXHdzBPOpML1DRKOGu9 i7B285jyxpj+aJd/U7aACEmMm7/y3wWpLlIGC4Ml7+DYNa2Cm8+yJykxkf4RaO+ySFeL CCbod9C0ZL7i8QfDGTPOTY9Xw5DyvhGMXS3kD+ogDmWFFTN40hGqA8RIdEjlUl/GL5E5 h3WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=SDcgG69H6OzLFItlLE3llO2yyFp0sOoWSLAMadbskxs=; b=KYqZ7ytekRITxxTTltCanVLVhgtuMQw56ejUTsBuH8muf+sV6BBEWGyv0j4g2+ngf4 My2ZmqR6vISXgc9FfctvbXLUAu3HTQyDW+Xht3ErCpXuby0YABe+9cG59U9fhG21x84r 3DfUWcTjKM6UILncah5FxARycWuI9awFFnpGODnDYZNGsJQbCp6QS+w9j2kiNOCvV/Q8 9qD6qSaP8jDq82iuy9wzyL5KXcGB90pbqKpORG5g3qxv4wE7Qa3sjeYDtkOqK71lkvf2 S+pTGJXptpl1C/Y56Uk+El5SOSEjerVxa8B8WUEsjYEhSjPihMQr4LDO2eswiwoYcjTA qjPw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id y64si220360wmc.0.2020.09.24.04.52.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2020 04:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 08OBqdYq024934 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Sep 2020 13:52:39 +0200 Received: from md1za8fc.ad001.siemens.net ([167.87.26.11]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 08OBqcoh007523; Thu, 24 Sep 2020 13:52:38 +0200 Date: Thu, 24 Sep 2020 13:52:38 +0200 From: Henning Schild To: "[ext] Jan Kiszka" Cc: kas-devel , isar-users , Baurzhan Ismagulov Subject: Re: [PATCH v2] Dockerfile.isar: Pull qemu-user-static from buster-backports Message-ID: <20200924135238.6d067e68@md1za8fc.ad001.siemens.net> In-Reply-To: <8d2408ef-899f-8479-7674-eb344da2bb85@siemens.com> References: <16ff005a-fcfe-1cea-b461-b9759a1cfa97@siemens.com> <8d2408ef-899f-8479-7674-eb344da2bb85@siemens.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: kerZ9VBKUkFF On Thu, 24 Sep 2020 13:12:35 +0200 "[ext] Jan Kiszka" wrote: > From: Jan Kiszka > > This is needed for running fakeroot from bullseye and sid which > triggers an unimplemented syscall with the current version. > > Due to changes in the new qemu-user-static package, the current > approach to activate its binfmt settings no longer works. Instead, > switch to an explicit call of the binfmt-support in init script. > > Signed-off-by: Jan Kiszka > --- > > Changes in v2: > - fix binfmt activation > - drop unneeded (and effectless) listing of binfmt-support for > buster-backports > > OK, this was a nice one: > - debootstrap (of buster) creates the rootfs initially with a link of > $target/proc -> /proc > - later, it tries to umount $target/proc (and then sets up a proper > mounting via chroot) - I consider this a bug of debootstrap Did you report that bug or are planning to do something about it? Henning > - for us, umount $target/proc, which is effectively umount /proc, > because /proc/sys/fs/binfmt_misc is mounted > - debootstrap ignores this error > - but due to the issue in v1, binfmt_misc wasn't mounted, and the > problem started... > > Dockerfile.isar | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Dockerfile.isar b/Dockerfile.isar > index 6b325f3..cde63b0 100644 > --- a/Dockerfile.isar > +++ b/Dockerfile.isar > @@ -3,7 +3,9 @@ > FROM kasproject/kas:latest > > ENV LC_ALL=en_US.UTF-8 > -RUN apt-get update && \ > +RUN echo 'deb http://deb.debian.org/debian buster-backports main' > > /etc/apt/sources.list.d/buster-backports.list && \ > + echo "Package: qemu-user-static\nPin: release > n=buster-backports\nPin-Priority: 501\n\nPackage: *\nPin: release > n=buster-backports\nPin-Priority: -1" > > /etc/apt/preferences.d/qemu-user-static && \ > + apt-get update && \ > apt-get install -y -f --no-install-recommends \ > autoconf automake gdisk libtool bash-completion \ > sudo grub2 grub-efi-amd64-bin grub-efi-ia32-bin \ > @@ -18,4 +20,4 @@ RUN echo "builder ALL=NOPASSWD: ALL" > > /etc/sudoers.d/builder-nopasswd && \ RUN echo "Defaults env_keep += > \"ftp_proxy http_proxy https_proxy no_proxy\"" \ > > /etc/sudoers.d/env_keep && chmod 660 /etc/sudoers.d/env_keep > > -RUN sed -i 's|#!/bin/bash|\0\n\ndpkg-reconfigure qemu-user-static > 2>\&1 \| grep -v "already enabled in kernel"|' /kas/docker-entrypoint > 2>+RUN sed -i 's|#!/bin/bash|\0\n\n/etc/init.d/binfmt-support start|' > 2>/kas/docker-entrypoint