mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
修复无法chroot的问题
This commit is contained in:
@@ -25,8 +25,8 @@ if [[ -d /sys/firmware/efi/ ]] ; then
|
||||
mount -t efivarfs efivarfs "$DESTDIR/sys/firmware/efi/efivars"
|
||||
fi
|
||||
#cat /etc/resolv.conf > $DESTDIR/etc/resolv.conf
|
||||
SHELL=/bin/bash unshare --fork --pid chroot "$DESTDIR" "$@"
|
||||
exit
|
||||
#SHELL=/bin/bash unshare --fork --pid chroot "$DESTDIR" "$@"
|
||||
#exit
|
||||
# 下面的因为有问题,不使用
|
||||
#if [[ -d /sys/firmware/efi/ ]] ; then
|
||||
# while umount "$DESTDIR/sys/firmware/efi/efivars" 2>/dev/null ; do : ;done
|
||||
|
||||
Reference in New Issue
Block a user