FS#62230 - Curl does not resolve domains under a chrooted user in the ISO anymore.
Attached to Project:
Arch Linux
Opened by Martin Rys (C0rn3j) - Thursday, 04 April 2019, 16:44 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 23 November 2019, 16:10 GMT
Opened by Martin Rys (C0rn3j) - Thursday, 04 April 2019, 16:44 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 23 November 2019, 16:10 GMT
|
Details
Description:
I used to install an AUR package by doing sudo -i (or su) to a normal user account and then running makepkg under that user. This broke at some point, it seems to be a curl issue, as 'drill' can resolve just fine. Steps to reproduce: Boot the latest ISO and run the attached install script. Line 90 (sudo -u ${username} curl http://github.com) will throw a resolve error. Running the same command with sudo as that user will work. |
This task depends upon
nameserver 1.1.1.1
in the chroot when testing(my DHCP gives 8.8.8.8, 1.1.1.1 and some IPv6 ones), and it still bugged out.
EDIT: As to what file it is, whatever the default is as you can see in the repro script - I don't touch resolv.conf
EDIT2: Also something to add even though am sure this is obvious - test on a VM, this script will format data.
Fixed the repro script in case it will be needed in the future if this resurfaces...