shutils/chroot.sh: create /{dev,run}/shm in masterdir.