Since /usr/bin/true is dynamically linked, it is a bit scary bind mount it into 
another userspace and use it. Given it only links to libc6, it shouldn't be a 
problem in my lifetime. But it does feel like a risky pattern to introduce.

Another option is to put the symlink'd ischroot earlier in the $PATH :

ln -sf ../../bin/true /usr/local/bin/ischroot
echo 'DPkg::Path "/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";' > 
/etc/apt/apt.conf.d/99-usr-local-dpkg-path

and then clean that up at the end. I haven't looked at the source, that may 
need to be guarded around deb-based distros if it applies to them.

Just wanted to throw this option out there for the reviewers.
-- 
https://code.launchpad.net/~mitchellaugustin/curtin/+git/curtin/+merge/460559
Your team curtin developers is subscribed to branch curtin:master.


-- 
Mailing list: https://launchpad.net/~curtin-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~curtin-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to