From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6548708150105604096 X-Received: by 2002:aa7:d40f:: with SMTP id z15-v6mr3552745edq.9.1527175244883; Thu, 24 May 2018 08:20:44 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:c441:: with SMTP id w1-v6ls12563671edf.1.gmail; Thu, 24 May 2018 08:20:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZom4XZbvznknSVQ4iaYRZFCqTg3IZ9cAO6h7+WoPvF31JOzivS31CfKeCiVmRp2FMEmYYmC X-Received: by 2002:aa7:c516:: with SMTP id o22-v6mr3556201edq.6.1527175244493; Thu, 24 May 2018 08:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527175244; cv=none; d=google.com; s=arc-20160816; b=LeaqiSVUW69FAe1vo1ozAl3wIwcol3SQosUn6M7V1EhsGn0vCsf+zfdDeO4AzJRcJw uwJ58Od/ZYDdASZWJSXYBiriAeGGF+tXdYRCtVosCNQ8t7ARepjrmXd7klEtB6uzXfeI on2hFNmVMkb7TSjCsA6kuUom5kYTDXn+B93k7hsZi6u+227yc8BgMd4z1WEwXtM9FWAr I6uEbEaB59kzpt7fGbz70y+Y43/xQywwKy46+kzrDYiqaz+cc85g+/f7z7iIsyAnOlrE MvhtTF2qj4D/K3aNtd04b4usIkVGAs9Y8U0/BDBbCMMc5gTzeiiY1SY9GXJmTXFJCrhc DNuw== 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:to:from:subject :arc-authentication-results; bh=uOr/Yg5EVXG3tbUU9C0Ai7wqAQHwHOgoKE2j3JKdXIY=; b=ZGPsrWeNEIlYDPYEmUR8x/d9a6ZgzcLma5hFu1Y0q5sju/0Er8WsKjJBr1/hiWcCEJ DZOjgjQTnzvDboV5Z2CraCFUW9mFbdHYnmB0YQ5uXkc5+0y1THOB5FggIaFDzvYmpUvP /y4v803sZou2Gjr60xoec1chMxK8d1iGWD9qwkKe5PQ4HEVwnDgJr/tYicU2QeYAmkfA vwpf/h8BOoYsaOTcicpcwt2hhGNTMu/KWdAkAoxnKP8GNZe12mI7oqFHSGEI0KtyLQsQ 88kYZ6EldqOqEGLQALvQQJRDTFlssPYHlaPgjvUt8yJkS2dBm7NIBBoBpbmCYojWeQfN fmKw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id v28-v6si929398edd.1.2018.05.24.08.20.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 08:20:44 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w4OFKin4021178 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 17:20:44 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w4OFKhB9002618; Thu, 24 May 2018 17:20:43 +0200 Subject: Re: Overview over my outstanding patches From: Claudius Heine To: Jan Kiszka , Alexander Smirnov , isar-users References: <988a13f4-5a03-0ca5-7b68-8b95d91fc222@ilbers.de> <1e1bc52c-05bc-2b75-ed50-b41b571cdbfb@siemens.com> <9b19e51b-7ddc-e1c3-9aef-e48f89c01563@siemens.com> <854a4c57-6716-6e88-ba23-846d86d23243@siemens.com> Message-ID: Date: Thu, 24 May 2018 17:20:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: L40H4OJdYcn4 On 2018-05-24 17:02, [ext] Claudius Heine wrote: > On 2018-05-24 16:52, Jan Kiszka wrote: >> On 2018-05-24 16:50, Claudius Heine wrote: >>> Hi Jan, >>> >>> On 2018-05-24 15:38, Jan Kiszka wrote: >>>> On 2018-05-24 15:34, [ext] Claudius Heine wrote: >>>>> Hi, >>>>> >>>>> On 2018-05-24 11:21, [ext] Claudius Heine wrote: >>>>>> Hi Alex, >>>>>> >>>>>> On 2018-05-14 15:47, Alexander Smirnov wrote: >>>>>>> Remaining: >>>>>>> ========== >>>>>>>     - meta-isar/isar-image-base: added removal of qemu-*-static >>>>>>> binaries: >>>>>>> >>>>>>> Here is the question about case, when user wants to install >>>>>>> qemu-user-static package to target rootfs. >>>>>> >>>>>> If the user wants to install qemu-user-static to the image, apt >>>>>> overwrites the one already there and then the linux kernel complains >>>>>> about infinite symlink since it wants to execute the new foreign >>>>>> 'qemu-*-static' binary with the foreign 'qemu-*-static' binary on >>>>>> and on. >>>>>> >>>>>> Installing qemu-user-static is simply forbidden until >>>>>> qemu-debootstrap >>>>>> changes the deployment path and binfmt settings to avoid this >>>>>> conflict. >>>>> >>>>> With Hennings help we further investigated this. The binfmt_misc flag >>>>> 'F' would prevent this issue [1]. So installing qemu-user-static could >>>>> be possible if that flag is used. >>>> >>>> Do we have that under our control, or would we have to patch the >>>> upstream binfmt debian package to tune that flag? >>> >>> I have to investigate that. On my sid debian host that flag was set. >>> I think I can see this in the diff between the /var/lib/binfmts/qemu-arm >>> from the kas container and my host: >>> >>> --- kas-qemu-arm    2018-05-24 16:48:31.998958282 +0200 >>> +++ /var/lib/binfmts/qemu-arm    2018-05-22 15:02:13.580660019 +0200 >>> @@ -7,3 +7,4 @@ >>> >>>   yes >>> >>> +yes >>> >>> I suppose this yes is were the 'F' flag is set. Currently I don't know >>> how those files are generated. I can take a look into it. >> >> There is the binfmt-support package, and its update-binfmts seems to set >> that stuff. > > This I know. But were are those qemu configurations defined? Is there a > way to overwrite them in order to update those flags? I will have to > investigate how to do that. Maybe we can patch this into those kas > containers. Ok I got it. Its done in the postinst of the binfmt-support package. There those /var/lib/binfmts/qemu-* files are created. So if we like to do this in the container as well, we might just change those files directly ourselves. They won't be overwritten. Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de