From f7b67c25ff4a3f1f290c29a70500292344c59a1e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 12 Aug 2010 18:26:07 +0200 Subject: Provide /dev/{shm,pts} within chroot implements FS#20246 --- mkarchroot | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mkarchroot') diff --git a/mkarchroot b/mkarchroot index 1e86440..8f3a118 100755 --- a/mkarchroot +++ b/mkarchroot @@ -84,6 +84,12 @@ chroot_mount() { [ -e "${working_dir}/dev" ] || mkdir "${working_dir}/dev" mount -o bind /dev "${working_dir}/dev" + [ -e "${working_dir}/dev/shm" ] || mkdir "${working_dir}/dev/shm" + mount -t tmpfs shm /dev/shm "${working_dir}/dev/shm" + + [ -e "${working_dir}/dev/pts" ] || mkdir "${working_dir}/dev/pts" + mount -t devpts devpts /dev/pts "${working_dir}/dev/pts" + [ -e "${cache_dir}" ] || mkdir -p "${cache_dir}" [ -e "${working_dir}/${cache_dir}" ] || mkdir -p "${working_dir}/${cache_dir}" mount -o bind "${cache_dir}" "${working_dir}/${cache_dir}" @@ -99,6 +105,8 @@ copy_hostconf () { chroot_umount () { umount "${working_dir}/proc" umount "${working_dir}/sys" + umount "${working_dir}/dev/pts" + umount "${working_dir}/dev/shm" umount "${working_dir}/dev" umount "${working_dir}/${cache_dir}" } -- cgit v1.2.3-70-g09d2