summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-09 20:10:01 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-09 20:10:01 -0500
commitdd8c9b738c811a03c5e9ccd57ec73beccc5c1eeb (patch)
treebafcd3f9f32ffc8e7894708b32cf55bd25763226 /src
parent39a5bee5b060a092cbc6f9b40295bb8853e760a9 (diff)
fix `librechroot update`
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/librechroot4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index dcf8488..051148d 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -381,7 +381,9 @@ main() {
arch-nspawn "$copydir" pacman -Sy "$@"
;;
update)
- arch-nspawn "$copydir" bash -c 'pacman -Syw --noconfirm && umount /etc/resolv.conf && pacman -Su --noconfirm'
+ # umount resolv.conf so that it can be upgraded, if nescessary
+ # this disables DNS, so fetch everything first
+ arch-nspawn "$copydir" bash -c 'pacman -Syuw --noconfirm && umount /etc/resolv.conf && pacman -Su --noconfirm'
;;
clean-pkgs)
trap "rm -f '$copydir'/bin/chcleanup '$copydir'/chrootexec" EXIT