[Bug 2004500] Re: alternative-bin-sh autopkgtest redirect tar to busybox

Gioele Barabucci 2004500 at bugs.launchpad.net
Wed Feb 1 18:42:51 UTC 2023


Thanks Paride for the report and the analysis.

To me this looks like a bug in autopkgtest-virt-lxd: why is the runner
executing any command inside an environment that has been modified (and
possibly broken) by a test with `Restrictions: breaks-testbed`?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lsb-release-minimal in Ubuntu.
https://bugs.launchpad.net/bugs/2004500

Title:
  alternative-bin-sh autopkgtest redirect tar to busybox

Status in lsb-release-minimal package in Ubuntu:
  New

Bug description:
  The alternative-bin-sh autopkgtest is meant to run a set of tests
  using busybox as /bin/sh, however this somehow happens to also
  redirect /bin/tar. This causes autopkgtest failures. To reproduce
  locally fetch the lsb-release-minimal (12.0-1) source tree and run:

  autopkgtest --test-name=alternative-bin-sh -s -U --no-built-binaries
  ./lsb-release-minimal-12.0/ --apt-pocket=proposed=lsb-release-minimal
  -- lxd ubuntu-daily:lunar

  Sample error:

  autopkgtest [19:09:08]: test alternative-bin-sh:  - - - - - - - - - - results - - - - - - - - - -
  alternative-bin-sh   PASS
  tar: unrecognized option '--warning=none'
  BusyBox v1.35.0 (Ubuntu 1:1.35.0-4ubuntu1) multi-call binary.

  Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [FILE]...

  Create, extract, or list files from a tar file

  	c	Create
  	x	Extract
  	t	List
  	-f FILE	Name of TARFILE ('-' for stdin/out)
  	-C DIR	Change to DIR before operation
  	-v	Verbose
  	-O	Extract to stdout
  	-m	Don't restore mtime
  	-o	Don't restore user:group
  	-k	Don't replace existing files
  	-Z	(De)compress using compress
  	-z	(De)compress using gzip
  	-J	(De)compress using xz
  	-j	(De)compress using bzip2
  	--lzma	(De)compress using lzma
  	-a	(De)compress based on extension
  	-h	Follow symlinks
  	--overwrite		Replace existing files
  	--strip-components NUM	NUM of leading components to strip
  	--no-recursion		Don't descend in directories
  	--numeric-owner		Use numeric user:group
  	--no-same-permissions	Don't restore access permissions
  	--to-command COMMAND	Pipe files to COMMAND
  tar: This does not look like a tar archive
  tar: Exiting with failure status due to previous errors
  autopkgtest-virt-lxd [19:09:08]: copyup destination failed, status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb-release-minimal/+bug/2004500/+subscriptions




More information about the foundations-bugs mailing list