[Pkg-libvirt-maintainers] Bug#838995: No support for "/usr merge"

Hilko Bengen bengen at debian.org
Wed Sep 28 09:43:52 UTC 2016


* Vincent Bernat:

> I am using a merged /usr and supermin doesn't seem to cope with
> it. For example, when running libguestfs-tool-test:

I believe that I can reproduce the underlying problem in a stretch
chroot where I have done the following:

# mv /bin/* /usr/bin
# mv /sbin/* /usr/sbin
# ln -s /usr/bin /bin
# ln -s /usr/sbin /sbin

With such a setup, the test-binaries-exist.sh test fails during package
build because the symlinks are copied as-is.

Now, to your specific problem:

> supermin: *** parent directory not found ***
> supermin: When reporting this error:
> supermin: please include ALL the debugging information below
> supermin: AND tell us what system you are running this on.
>      src=/tmp/supermin8ddbc4.tmpdir/base.d/sbin/guestfsd
>     dest=/sbin/guestfsd
>  dirname=/usr/sbin
> basename=guestfsd
> supermin: ext2fs_namei: parent directory not found: /usr/sbin: File not found by ext2_lookup
> supermin: failure: ext2fs_namei: parent directory not found

So, supermin wants to place /sbin/guestfsd (from
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/daemon.tar.gz) into the
filesystem but it cannot deal with /sbin being a symlink, therefore it
does not find the directory.

Steps to reproduce:

$ supermin --prepare --use-installed bash coreutils -o prep
$ cp /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/daemon.tar.gz prep
$ supermin --build -f ext2 prep -o fs

Cheers,
-Hilko



More information about the Pkg-libvirt-maintainers mailing list