mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 17:48:27 +08:00
修复无法chroot的问题
This commit is contained in:
parent
f4d8139ed8
commit
2d399c57ba
3
Mount.sh
3
Mount.sh
@ -51,4 +51,5 @@ fi
|
|||||||
# 写入 DNS
|
# 写入 DNS
|
||||||
cat /etc/resolv.conf > etc/resolv.conf
|
cat /etc/resolv.conf > etc/resolv.conf
|
||||||
# 如果参数 3 存在
|
# 如果参数 3 存在
|
||||||
"$programPath/pardus-chroot" --userspec=$2:$2 . env "HOME=/home/$2" ${@:3}
|
"$programPath/pardus-chroot" . #env "HOME=/home/$2" ${@:3}
|
||||||
|
chroot "--userspec=$2:$2" . env "HOME=/home/$2" ${@:3}
|
||||||
|
@ -25,8 +25,8 @@ if [[ -d /sys/firmware/efi/ ]] ; then
|
|||||||
mount -t efivarfs efivarfs "$DESTDIR/sys/firmware/efi/efivars"
|
mount -t efivarfs efivarfs "$DESTDIR/sys/firmware/efi/efivars"
|
||||||
fi
|
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" "$@"
|
#SHELL=/bin/bash unshare --fork --pid chroot "$DESTDIR" "$@"
|
||||||
exit
|
#exit
|
||||||
# 下面的因为有问题,不使用
|
# 下面的因为有问题,不使用
|
||||||
#if [[ -d /sys/firmware/efi/ ]] ; then
|
#if [[ -d /sys/firmware/efi/ ]] ; then
|
||||||
# while umount "$DESTDIR/sys/firmware/efi/efivars" 2>/dev/null ; do : ;done
|
# while umount "$DESTDIR/sys/firmware/efi/efivars" 2>/dev/null ; do : ;done
|
||||||
|
Loading…
Reference in New Issue
Block a user