注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Translations:32-bit Chroot/32/en
Jump to navigation
Jump to search
start() {
ebegin "Mounting 32-bit chroot directories" mount --rbind /dev "${chroot_dir}/dev" >/dev/null mount --rbind /sys "${chroot_dir}/sys" >/dev/null mount -t proc none "${chroot_dir}/proc" >/dev/null mount -o bind /tmp "${chroot_dir}/tmp" >/dev/null mount -o bind,ro /var/git/meta-repo "${chroot_dir}/var/git/meta-repo/" >/dev/null mount -o bind /var/cache/portage/distfiles "${chroot_dir}/var/cache/portage/distfiles/" >/dev/null mount -t tmpfs -o nosuid,nodev,noexec,mode=755 none "${chroot_dir}/run" > /dev/null eend $? "An error occured while attempting to mount 32bit chroot directories" ebegin "Copying 32bit chroot files" cp -pf /etc/resolv.conf /etc/passwd /etc/shadow /etc/group \ /etc/gshadow /etc/hosts "${chroot_dir}/etc" >/dev/null cp -Ppf /etc/localtime "${chroot_dir}/etc" >/dev/null eend $? "An error occured while attempting to copy 32 bits chroot files."
}