* Overview over my outstanding patches @ 2018-04-26 10:52 Claudius Heine 2018-04-26 13:57 ` Claudius Heine 2018-05-14 13:47 ` Alexander Smirnov 0 siblings, 2 replies; 11+ messages in thread From: Claudius Heine @ 2018-04-26 10:52 UTC (permalink / raw) To: isar-users Hi, https://github.com/cmhe/isar/tree/ch/posted contains all the patches I posted to the mailinglist. Thanks, 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-04-26 10:52 Overview over my outstanding patches Claudius Heine @ 2018-04-26 13:57 ` Claudius Heine 2018-05-14 13:47 ` Alexander Smirnov 1 sibling, 0 replies; 11+ messages in thread From: Claudius Heine @ 2018-04-26 13:57 UTC (permalink / raw) To: isar-users On 2018-04-26 12:52, [ext] Claudius Heine wrote: > Hi, > > https://github.com/cmhe/isar/tree/ch/posted > > contains all the patches I posted to the mailinglist. I also just rebased those to the current next and added my just submitted patch about those Perl locale warnings to it. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-04-26 10:52 Overview over my outstanding patches Claudius Heine 2018-04-26 13:57 ` Claudius Heine @ 2018-05-14 13:47 ` Alexander Smirnov 2018-05-24 9:21 ` Claudius Heine 1 sibling, 1 reply; 11+ messages in thread From: Alexander Smirnov @ 2018-05-14 13:47 UTC (permalink / raw) To: Claudius Heine, isar-users Hi, On 04/26/2018 01:52 PM, Claudius Heine wrote: > Hi, > > https://github.com/cmhe/isar/tree/ch/posted > > contains all the patches I posted to the mailinglist. The following were applied to next: =================================== - isar-bootstrap: Change task dependencies to improve parallelization - Renamed 'Multistrap' references to 'Isar' - meta-isar/isar-image-base: Remove uncesessary cmd lines from cfg scripts - isar-bootstrap: Implement DISTRO_APT_PREMIRRORS feature - base.bbclass: Implement 'root_cleandirs' feature - meta-isar/isar-image-base: Make kernel optional Thank you! 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. - classes/isar-bootstrap-helper: set locale variables - buildchroot/build.sh: set locale variables There one 'locale' error message remains. Now I have time, so will look at this issue right now. Alex ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-14 13:47 ` Alexander Smirnov @ 2018-05-24 9:21 ` Claudius Heine 2018-05-24 13:34 ` Claudius Heine 0 siblings, 1 reply; 11+ messages in thread From: Claudius Heine @ 2018-05-24 9:21 UTC (permalink / raw) To: Alexander Smirnov, isar-users 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. Cheers, 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 9:21 ` Claudius Heine @ 2018-05-24 13:34 ` Claudius Heine 2018-05-24 13:38 ` Jan Kiszka 0 siblings, 1 reply; 11+ messages in thread From: Claudius Heine @ 2018-05-24 13:34 UTC (permalink / raw) To: Alexander Smirnov, isar-users 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. I will prepare a patch that removes the qemu-*-static binaries only if that package is not installed. Claudius [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/binfmt-misc.rst?h=v4.16#n83 -- 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 13:34 ` Claudius Heine @ 2018-05-24 13:38 ` Jan Kiszka 2018-05-24 14:50 ` Claudius Heine 0 siblings, 1 reply; 11+ messages in thread From: Jan Kiszka @ 2018-05-24 13:38 UTC (permalink / raw) To: [ext] Claudius Heine, Alexander Smirnov, isar-users 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? Jan > > I will prepare a patch that removes the qemu-*-static binaries only if > that package is not installed. > > Claudius > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/binfmt-misc.rst?h=v4.16#n83 > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 13:38 ` Jan Kiszka @ 2018-05-24 14:50 ` Claudius Heine 2018-05-24 14:52 ` Jan Kiszka 0 siblings, 1 reply; 11+ messages in thread From: Claudius Heine @ 2018-05-24 14:50 UTC (permalink / raw) To: Jan Kiszka, Alexander Smirnov, isar-users 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. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 14:50 ` Claudius Heine @ 2018-05-24 14:52 ` Jan Kiszka 2018-05-24 15:02 ` Claudius Heine 0 siblings, 1 reply; 11+ messages in thread From: Jan Kiszka @ 2018-05-24 14:52 UTC (permalink / raw) To: Claudius Heine, Alexander Smirnov, isar-users 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. Jan ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 14:52 ` Jan Kiszka @ 2018-05-24 15:02 ` Claudius Heine 2018-05-24 15:10 ` Henning Schild 2018-05-24 15:20 ` Claudius Heine 0 siblings, 2 replies; 11+ messages in thread From: Claudius Heine @ 2018-05-24 15:02 UTC (permalink / raw) To: Jan Kiszka, Alexander Smirnov, isar-users 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. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 15:02 ` Claudius Heine @ 2018-05-24 15:10 ` Henning Schild 2018-05-24 15:20 ` Claudius Heine 1 sibling, 0 replies; 11+ messages in thread From: Henning Schild @ 2018-05-24 15:10 UTC (permalink / raw) To: [ext] Claudius Heine; +Cc: Jan Kiszka, Alexander Smirnov, isar-users Am Thu, 24 May 2018 17:02:09 +0200 schrieb "[ext] Claudius Heine" <claudius.heine.ext@siemens.com>: > 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. I am not sure the benefit is really worth the complexity. If we mess with binfmt in the containers, one will need to build using this container. And the host might end up in a state it does not expect. And all for installing a package that probably nobody wants. Deleting the qemu is important, for size and clearing reasons. Henning > Claudius > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Overview over my outstanding patches 2018-05-24 15:02 ` Claudius Heine 2018-05-24 15:10 ` Henning Schild @ 2018-05-24 15:20 ` Claudius Heine 1 sibling, 0 replies; 11+ messages in thread From: Claudius Heine @ 2018-05-24 15:20 UTC (permalink / raw) To: Jan Kiszka, Alexander Smirnov, isar-users 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-05-24 15:20 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-04-26 10:52 Overview over my outstanding patches Claudius Heine 2018-04-26 13:57 ` Claudius Heine 2018-05-14 13:47 ` Alexander Smirnov 2018-05-24 9:21 ` Claudius Heine 2018-05-24 13:34 ` Claudius Heine 2018-05-24 13:38 ` Jan Kiszka 2018-05-24 14:50 ` Claudius Heine 2018-05-24 14:52 ` Jan Kiszka 2018-05-24 15:02 ` Claudius Heine 2018-05-24 15:10 ` Henning Schild 2018-05-24 15:20 ` Claudius Heine
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox