태그 보관물: afs

afs

네트워크 파일 시스템을 schroot에 마운트 마운트하고 싶습니다. / etc / schroot

네트워크 파일 시스템 (AFS)을 사용하고 있으며이를 schroot에 마운트하고 싶습니다. / etc / schroot / mount-defaults에 행을 추가 bind하거나 rbind옵션을 사용하여 도움이되지 않았습니다. schroot는 항상으로 디렉토리를 마운트 bind하며 chroot에는 비어 있습니다.

내 현재 솔루션은 rbindschroot가 설정된 후 / afs 디렉토리를 다시 마운트하는 스크립트입니다 .

schroot가 rbind를 직접 사용하게하는 방법이 있습니까?



답변

# means run with root or sudo

1. Create a mountpoint
# mkdir /mount/point

2. Mount /proc /sys /dev to chroot
# mount -o bind /proc /mount/point/proc
# mount -o bind /dev /mount/point/dev
# mount -o bind /dev/pts /mount/point/dev/pts
# mount -o bind /sys /mount/point/sys

3. Copy resolv.conf to networking
# cp /etc/resolv.conf /mount/point/etc/resolv.conf

4.Open bash in chroot
# chroot /mount/point /bin/bash

5. Do what you have to do and then exit chroot
exit

참조 : http://fermilinux.fnal.gov/documentation/tips/mount-bind-chroot


답변