[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: schroot: 20copyfiles: cp: cannot create regular file '.../etc/resolv.conf'



Sean Whitton wrote on Tue, Sep 13, 2016 at 17:08:03 -0700:
> Does etc exist in /srv/chroot/unstable-amd64 (or wherever you have the
> base chroot)?

No, it doesn't exist:

% tar tf unstable-amd64.tar.gz | cut -d/ -f 1,2 | uniq -c
      1 ./
   2668 ./usr
     65 ./sbin
      1 ./build
      1 ./mnt
      5 ./run
      1 ./proc
     46 ./dev
     65 ./bin
% 

When I create /etc in the tarball, I get further errors, about various
other dirents not existing: /etc/apt/apt.conf.d/, /root, /bin/bash,
even /bin/sh.

By comparison, the (working) jessie chroot has:

% tar tf jessie.tar.gz | cut -d/ -f 1,2 | uniq -c | sort -n
⋮
     82 ./sbin
    103 ./bin
    354 ./etc
    607 ./lib
    898 ./var
  10887 ./usr
% 

I created the sid chroot last Friday with «/usr/sbin/sbuild-createchroot
--include=eatmydata --make-sbuild-tarball=/path/to/unstable-amd64.tar.gz
unstable `mktemp -d` http://httpredir.debian.org/debian»;.  At the time
I used sbuild from stable (0.65.2-1).  I just now re-created that chroot
using sbuild 0.71.0-2 (locally rebuilt on jessie), and it now works.

I still don't know why the stable sbuild didn't work, though.  (Or
whether upgrading sbuild was the fix: perhaps something changed in the
archive since Friday.)  Should I file a bug about that?

Thanks,

Daniel


Reply to: