fakechroot
fakechroot copied to clipboard
env escaping chroot
I have a script (or set of scripts) that build system images using fakechroot. They suddenly started failing and i'm not sure what changed, but it seems to come down to:
root@host:/# ls -id /tmp 41960819 /tmp root@host:/# env ls -id /tmp 37365864 /tmp
Where the latter is causing ls to see the /tmp of the host environment. This problem is arising whilst installing grub-efi-amd64 which has a postinst script which tries to use ucf. ucf fails to find a tmp file as its being run via env and seeing the /tmp of the host system.
u r right