[arch-dev-public] /dev/shm permissions and building in chroot

Pierre Schmitz pierre at archlinux.de
Mon Aug 16 09:13:13 EDT 2010


On Sat, 14 Aug 2010 15:54:13 +1000, Allan McRae <allan at archlinux.org>
wrote:
> Umm..  has anyone?   I am fairly certain that the mount command is wrong.
> 
> +  [ -e "${working_dir}/dev/shm" ] || mkdir "${working_dir}/dev/shm"
> +  mount -t tmpfs shm /dev/shm "${working_dir}/dev/shm"
> 
> Should be:
> mount -t tmpfs 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"
> 
> Delete /dev/pts here too.

You are right. I had never a chance to test this as my build system is
nuked. I'll correct that hopefully soon. (Unfortunately I also lost some
code which I somehow missed to backup)

-- 
Pierre Schmitz, https://users.archlinux.de/~pierre


More information about the arch-dev-public mailing list