** Changed in: livecd-rootfs (Ubuntu)
       Status: In Progress => New

** Description changed:

  [Impact]
+ 
+ Note: this only affects bionic - all other release don't have this
+ problem.
  
  Currently, the official Ubuntu docker images are based on the core rootfs 
tarballs from https://partner-images.canonical.com/core/ .
  We want to switch to the newly created OCI tarballs from 
(https://partner-images.canonical.com/oci). See also LP:#1926732 for details 
about the OCI rootfs tarballs.
  
  While trying to switch the official ubuntu docker images on dockerhub to
  the newly created OCI rootfs tarballs, it poped up that for the bionic
  containers, there are device node entries in the rootfs (/dev files).
  
  The diff (see https://github.com/docker-library/official-
  images/pull/10287) looks like:
  
- --- a/ubuntu_bionic/ubuntu-bionic-core-cloudimg-amd64-root.tar.gz  'tar -t'   
- +++ b/ubuntu_bionic/ubuntu-bionic-oci-amd64-root.tar.gz  'tar -t'     
+ --- a/ubuntu_bionic/ubuntu-bionic-core-cloudimg-amd64-root.tar.gz  'tar -t'
+ +++ b/ubuntu_bionic/ubuntu-bionic-oci-amd64-root.tar.gz  'tar -t'
  @@ -86,6 +86,19 @@ bin/zmore
-  bin/znew
-  boot/
-  dev/
+  bin/znew
+  boot/
+  dev/
  +dev/fd
  +dev/full
  +dev/null
  +dev/ptmx
  +dev/pts/
  +dev/random
  +dev/shm/
  +dev/stderr
  +dev/stdin
  +dev/stdout
  +dev/tty
  +dev/urandom
  +dev/zero
  
- 
- This causes problems (see 
https://github.com/tianon/docker-brew-ubuntu-core/issues/62 ) and would be a 
regression when switching from the core rootfs tarballs to the oci rootfs 
tarball.
+ This causes problems (see https://github.com/tianon/docker-brew-ubuntu-
+ core/issues/62 ) and would be a regression when switching from the core
+ rootfs tarballs to the oci rootfs tarball.
  
  Expected is that there are not /dev files in the rootfs tarball.
  
  [Test Plan]
  
  1) build ubuntu-oci project with launchpad
  2) do some basic tests with the rootfs tarball:
  cat << EOF > Dockerfile
  FROM scratch
  ADD hirsute-minimal-cloudimg-amd64-root.tar.gz /
  CMD ["/bin/bash"]
  EOF
  $ docker build .
  docker run -it $image-id uname -a
  3) check the tarball size (should not change significantly)
  4) check that there are not /dev files in the tarball
  
- 
  [Where problems could occur]
  This change could break other livecd-rootfs projects which might lead to 
failed builds. But beside that, there is nothing I can think of that would be 
affected by this change. And it's very unlikely to break other livecd-rootfs 
builds.
  
  [Other Info]
  None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930686

Title:
  Do not include /dev device node filles in OCI rootfs tarballs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1930686/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to