You are not logged in.
I wrote a small script to install archlinux. It works great before, but stops work recently.
The script have 2 stages.
First, install the base package copy it's self to target / then arch-chroot
Second, being invoked by arch-chroot /mnt /$0 $target_dev chrooted
It's seems if I chroot then su to normal user, it will not able to resolve any DNS
Following is the error msg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 990 100 990 0 0 1833 0 --:--:-- --:--:-- --:--:-- 1833
==> Making package: auracle-git r192.ad01c04-2 (Wed 17 Apr 2019 02:27:11 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning auracle git repo...
Cloning into bare repository '/tmp/pacaur_install/auracle'...
fatal: unable to access 'https://github.com/falconindy/auracle.git/': Could not resolve host: github.com
==> ERROR: Failure while downloading auracle git repo
Aborting...
loading packages...
error: 'auracle-git-*.tar.xz': could not find or read package
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 429 100 429 0 0 800 0 --:--:-- --:--:-- --:--:-- 798
==> Making package: pacaur 4.8.6-1 (Wed 17 Apr 2019 02:27:12 AM CDT)
==> Checking runtime dependencies...
==> Missing dependencies:
-> auracle-git
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
loading packages...
error: 'pacaur-*.tar.xz': could not find or read package
Code block
$usr_name in here is the standard user, not root
#pacaur
pacman -Syu
pacman -S binutils make gcc fakeroot pkg-config --noconfirm --needed
pacman -S expac jq gtest gmock meson git --noconfirm --needed
mkdir -p /tmp/pacaur_install
cd /tmp/pacaur_install
chmod 777 .
if [ ! -n "$(pacman -Qs auracle-git)" ]; then
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=auracle-git
su $usr_name -c "makepkg PKGBUILD --skippgpcheck"
pacman -U auracle-git-*.tar.xz --noconfirm
fi
if [ ! -n "$(pacman -Qs pacaur)" ]; then
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur
su $usr_name -c "makepkg PKGBUILD"
pacman -U pacaur-*.tar.xz --noconfirm
fi
cd ~
rm -r /tmp/pacaur_install
Last edited by 424778940 (2019-04-17 16:01:41)
Offline
Found same issue here
https://www.reddit.com/r/archlinux/comm … g/?depth=1
Offline
It's seems if I chroot then su to normal user, it will not able to resolve any DNS
Does DNS work from chroot before you su ?
Last edited by Lone_Wolf (2019-04-18 07:49:41)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline