* [PATCH 1/1] Dockerfile: add libguestfs-tools package @ 2020-05-30 22:16 Heinrich Schuchardt 2020-06-05 15:19 ` Tom Rini 2020-06-19 13:24 ` Tom Rini 0 siblings, 2 replies; 5+ messages in thread From: Heinrich Schuchardt @ 2020-05-30 22:16 UTC (permalink / raw) To: u-boot In some of our Python tests we build disk images. Currently this involves using the sudo command for losetup and mount. For some tests sudo is not necessary if the command guestmount of package libguestfs-tools is available. Another useful tool in libguestfs-tools is virt-make-fs. Generally we should get rid of using a root user for building and testing. As a first step install libguestfs-tools in our Docker image. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4138415..20a861f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,7 @@ RUN apt-get update && apt-get install -y \ iasl \ imagemagick \ iputils-ping \ + libguestfs-tools \ libisl15 \ liblz4-tool \ libpixman-1-dev \ -- 2.26.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 1/1] Dockerfile: add libguestfs-tools package 2020-05-30 22:16 [PATCH 1/1] Dockerfile: add libguestfs-tools package Heinrich Schuchardt @ 2020-06-05 15:19 ` Tom Rini 2020-06-08 1:25 ` AKASHI Takahiro 2020-06-19 13:24 ` Tom Rini 1 sibling, 1 reply; 5+ messages in thread From: Tom Rini @ 2020-06-05 15:19 UTC (permalink / raw) To: u-boot On Sun, May 31, 2020 at 12:16:58AM +0200, Heinrich Schuchardt wrote: > In some of our Python tests we build disk images. Currently this involves > using the sudo command for losetup and mount. For some tests sudo is > not necessary if the command guestmount of package libguestfs-tools is > available. Another useful tool in libguestfs-tools is virt-make-fs. > > Generally we should get rid of using a root user for building and testing. > As a first step install libguestfs-tools in our Docker image. > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > --- > Dockerfile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Dockerfile b/Dockerfile > index 4138415..20a861f 100644 > --- a/Dockerfile > +++ b/Dockerfile > @@ -57,6 +57,7 @@ RUN apt-get update && apt-get install -y \ > iasl \ > imagemagick \ > iputils-ping \ > + libguestfs-tools \ > libisl15 \ > liblz4-tool \ > libpixman-1-dev \ I haven't applied this as in order to also convert any of the tests to libguestfs-tools based approaches, Azure/GitLab (or Travis even) can be locally modified to point at your own fork of the image. If you really need me to push this change to unblock further conversion please let me know, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200605/1b9616d6/attachment.sig> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] Dockerfile: add libguestfs-tools package 2020-06-05 15:19 ` Tom Rini @ 2020-06-08 1:25 ` AKASHI Takahiro 2020-06-10 16:13 ` Tom Rini 0 siblings, 1 reply; 5+ messages in thread From: AKASHI Takahiro @ 2020-06-08 1:25 UTC (permalink / raw) To: u-boot On Fri, Jun 05, 2020 at 11:19:15AM -0400, Tom Rini wrote: > On Sun, May 31, 2020 at 12:16:58AM +0200, Heinrich Schuchardt wrote: > > > In some of our Python tests we build disk images. Currently this involves > > using the sudo command for losetup and mount. For some tests sudo is > > not necessary if the command guestmount of package libguestfs-tools is > > available. Another useful tool in libguestfs-tools is virt-make-fs. > > > > Generally we should get rid of using a root user for building and testing. > > As a first step install libguestfs-tools in our Docker image. > > > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > > --- > > Dockerfile | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Dockerfile b/Dockerfile > > index 4138415..20a861f 100644 > > --- a/Dockerfile > > +++ b/Dockerfile > > @@ -57,6 +57,7 @@ RUN apt-get update && apt-get install -y \ > > iasl \ > > imagemagick \ > > iputils-ping \ > > + libguestfs-tools \ > > libisl15 \ > > liblz4-tool \ > > libpixman-1-dev \ > > I haven't applied this as in order to also convert any of the tests to > libguestfs-tools based approaches, Azure/GitLab (or Travis even) can be As far as I know, the only use of sudo can be seen in tests I added: a test_fs b test_efi_secboot (a) has a flexible approach like: if (tool_is_in_path('guestmount'): ... else check_call('sudo mount ...') I also took a similar approach in (b) when I posted my patch, but Heinrich deleted "non-sudo" part from my original code when it was merged. -Takahiro Akashi > locally modified to point at your own fork of the image. If you really > need me to push this change to unblock further conversion please let me > know, thanks! > > -- > Tom ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] Dockerfile: add libguestfs-tools package 2020-06-08 1:25 ` AKASHI Takahiro @ 2020-06-10 16:13 ` Tom Rini 0 siblings, 0 replies; 5+ messages in thread From: Tom Rini @ 2020-06-10 16:13 UTC (permalink / raw) To: u-boot On Mon, Jun 08, 2020 at 10:25:20AM +0900, AKASHI Takahiro wrote: > On Fri, Jun 05, 2020 at 11:19:15AM -0400, Tom Rini wrote: > > On Sun, May 31, 2020 at 12:16:58AM +0200, Heinrich Schuchardt wrote: > > > > > In some of our Python tests we build disk images. Currently this involves > > > using the sudo command for losetup and mount. For some tests sudo is > > > not necessary if the command guestmount of package libguestfs-tools is > > > available. Another useful tool in libguestfs-tools is virt-make-fs. > > > > > > Generally we should get rid of using a root user for building and testing. > > > As a first step install libguestfs-tools in our Docker image. > > > > > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > > > --- > > > Dockerfile | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/Dockerfile b/Dockerfile > > > index 4138415..20a861f 100644 > > > --- a/Dockerfile > > > +++ b/Dockerfile > > > @@ -57,6 +57,7 @@ RUN apt-get update && apt-get install -y \ > > > iasl \ > > > imagemagick \ > > > iputils-ping \ > > > + libguestfs-tools \ > > > libisl15 \ > > > liblz4-tool \ > > > libpixman-1-dev \ > > > > I haven't applied this as in order to also convert any of the tests to > > libguestfs-tools based approaches, Azure/GitLab (or Travis even) can be > > As far as I know, the only use of sudo can be seen in tests I added: > a test_fs > b test_efi_secboot > > (a) has a flexible approach like: > if (tool_is_in_path('guestmount'): > ... > else > check_call('sudo mount ...') > > I also took a similar approach in (b) when I posted my patch, > but Heinrich deleted "non-sudo" part from my original code > when it was merged. Ah, I had forgotten that guestmount was part of it already. I'll apply this patch soon then, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200610/bc6cfe8e/attachment.sig> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] Dockerfile: add libguestfs-tools package 2020-05-30 22:16 [PATCH 1/1] Dockerfile: add libguestfs-tools package Heinrich Schuchardt 2020-06-05 15:19 ` Tom Rini @ 2020-06-19 13:24 ` Tom Rini 1 sibling, 0 replies; 5+ messages in thread From: Tom Rini @ 2020-06-19 13:24 UTC (permalink / raw) To: u-boot On Sun, May 31, 2020 at 12:16:58AM +0200, Heinrich Schuchardt wrote: > In some of our Python tests we build disk images. Currently this involves > using the sudo command for losetup and mount. For some tests sudo is > not necessary if the command guestmount of package libguestfs-tools is > available. Another useful tool in libguestfs-tools is virt-make-fs. > > Generally we should get rid of using a root user for building and testing. > As a first step install libguestfs-tools in our Docker image. > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Applied to gitlab-ci-runner/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200619/cc52fb33/attachment.sig> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-06-19 13:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-05-30 22:16 [PATCH 1/1] Dockerfile: add libguestfs-tools package Heinrich Schuchardt 2020-06-05 15:19 ` Tom Rini 2020-06-08 1:25 ` AKASHI Takahiro 2020-06-10 16:13 ` Tom Rini 2020-06-19 13:24 ` Tom Rini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox