From 5db45ff3e5691b5ee560952811026cb6c77e6728 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 25 Dec 2022 22:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpardus-chroot=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E5=87=BA=E7=8E=B0DNS=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pardus-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pardus-chroot b/pardus-chroot index a00568a..2e96b59 100755 --- a/pardus-chroot +++ b/pardus-chroot @@ -24,7 +24,7 @@ mount -t tmpfs tmpfs "$DESTDIR/dev/shm" if [[ -d /sys/firmware/efi/ ]] ; then mount -t efivarfs efivarfs "$DESTDIR/sys/firmware/efi/efivars" fi -cat /etc/resolv.conf > /$DESTDIR/etc/resolv.conf +cat /etc/resolv.conf > $DESTDIR/etc/resolv.conf SHELL=/bin/bash unshare --fork --pid chroot "$DESTDIR" "$@" if [[ -d /sys/firmware/efi/ ]] ; then while umount "$DESTDIR/sys/firmware/efi/efivars" 2>/dev/null ; do : ;done