Am Mittwoch, den 23.10.2019, 14:01 +0200 schrieb Johannes Schauer: > Hi, > > Quoting Benjamin Drung (2019-10-23 13:01:52) > > when I delete /usr/sbin/policy-rc.d as part of a custom hook, > > mmdebstrap > > will fail: > > > > $ mmdebstrap -v --customize-hook='rm "$1/usr/sbin/policy-rc.d"' \ > > --aptopt='Dir::Etc::Trusted "/usr/share/keyrings/debian-archive- > > keyring.gpg"' \ > > buster /tmp/buster.tar.xz > > [...] > > I: running --customize-hook in shell: sh -c 'rm > > "$1/usr/sbin/policy-rc.d"' exec /tmp/mmdebstrap.kPFtRoxVVX > > E: run_chroot failed: E: cannot unlink policy-rc.d: No such file or > > directory > > I: removing tempdir /tmp/mmdebstrap.kPFtRoxVVX... > > > > Please only try to remove /usr/sbin/policy-rc.d if it still exists. > > whoops, indeed. Fixed in git! > > Out of interest: why would you delete policy-rc.d as part of a hook?
I was porting our custom build script (which used debootstrap followed by a lot of shell code) which did the same policy-rc.d magic. When using mmdebstrap, this policy-rc.d magic can be dropped since mmdebstrap takes care of it. -- Benjamin Drung Debian & Ubuntu Developer Platform Engineering Compute (Enterprise Cloud) 1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany E-mail: [email protected] | Web: www.ionos.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498 Vorstand: Dr. Christian Böing, Hüseyin Dogan, Hans-Henning Kettler, Matthias Steinberg, Achim Weiß Aufsichtsratsvorsitzender: Markus Kadelke Member of United Internet

