From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6875588819966492672 X-Received: by 2002:a5d:6886:: with SMTP id h6mr4696569wru.374.1600945957606; Thu, 24 Sep 2020 04:12:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:dd0a:: with SMTP id a10ls3493127wrm.2.gmail; Thu, 24 Sep 2020 04:12:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPdYTeyZk3yHCe5KFipTmtN4M1oG7sRv+C7aqOSx+NmSoI0y4Qcl3UnCqVsLYViOWzaN/R X-Received: by 2002:adf:9e43:: with SMTP id v3mr4651238wre.306.1600945956491; Thu, 24 Sep 2020 04:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600945956; cv=none; d=google.com; s=arc-20160816; b=SlkvVFd08cstJ4e9NZueHpuG4mz6cX3zzz3WB0UNRAUTfLjJXUB2PO6DE2uw/IOVzC zmrOEor3VTX8bQc+na59Sdp8GiEOUMKDzWu0O/SKMhoq/8PDDTcsZ4yqVjHDKdVWXMAL FpHt3l/Rs92XGF5Ev6DbaV2cwscYVNiKxBhlrhqb6501pshUsn/7j6sao2ZTOW50f3qg p3sU/NAJ7aDj0ntjdV7pbllwqeTZPqCH+LQM4btB5QD4+KW2T51xT77bRxxqZtVyV7sh E0ls/US+7DCpZeboDgAKSGS/9VO2+YWrkUNQOOD0+FYiZytms5GE03OqXuiSr4atHjLy l67Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:cc:to:from:subject; bh=X/zxbp9YeUTcVe3eNOXSLHVHFjuK/g2fmQTTYRf+zXc=; b=Gwlw5nq7cw37o88bPYwXv/8WExgeBQA7F9Wj2fXfQWE23/tq+i/pVjA8dX0nWbIuLk 8supvjYg8zczbin/qSz4oZljv0BB+oiUt4GruIhDUUAgNtv+cnEop75MgOKcPQEjm5Fg y9vW5L4pZV1bAzqVrP05MLxnpk2aG5M+6hZEhLxBWgYqkLLIBRlXP4qTcC/6xrIM2Mo9 5kFcQztYf13PQ7L5RNuwP5wsVsLezSg1V+XcAP95ZEsauGt0p9bmaL4YEOP/ris6uZCU bDRgnchvCqFH4hm5JjmrBAk2kecEsLkPwVnzXrZDsmfG3gcYwieso9oFa3hNA1MnJjze Fq/A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id w2si81265wrr.5.2020.09.24.04.12.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2020 04:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@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 lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 08OBCa1w026206 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Sep 2020 13:12:36 +0200 Received: from [167.87.1.32] ([167.87.1.32]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 08OBCZwW029090; Thu, 24 Sep 2020 13:12:35 +0200 Subject: [PATCH v2] Dockerfile.isar: Pull qemu-user-static from buster-backports From: Jan Kiszka To: kas-devel Cc: isar-users , Baurzhan Ismagulov References: <16ff005a-fcfe-1cea-b461-b9759a1cfa97@siemens.com> Message-ID: <8d2408ef-899f-8479-7674-eb344da2bb85@siemens.com> Date: Thu, 24 Sep 2020 13:12:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <16ff005a-fcfe-1cea-b461-b9759a1cfa97@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: YgCVCPPdkWmZ 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 - 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 +RUN sed -i 's|#!/bin/bash|\0\n\n/etc/init.d/binfmt-support start|' /kas/docker-entrypoint -- 2.26.2