mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 17:48:27 +08:00
修复pardus-chroot挂载时出现DNS错误的问题
This commit is contained in:
parent
e7b8127cd3
commit
5db45ff3e5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user