Change pardus chroot

This commit is contained in:
2024-01-14 15:06:22 +08:00
parent a4e8b17ac5
commit 0c9da25093
2 changed files with 6 additions and 3 deletions

View File

@@ -22,9 +22,9 @@ mount -t sysfs sysfs "$DESTDIR/sys"
mount -t proc proc "$DESTDIR/proc"
mount -t tmpfs tmpfs "$DESTDIR/dev/shm"
mount --bind /tmp "$DESTDIR/tmp"
if [[ -d /sys/firmware/efi/ ]] ; then
mount -t efivarfs efivarfs "$DESTDIR/sys/firmware/efi/efivars"
fi
#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