#!/bin/sh mkdir /pup_rw mkdir /pup_ro1 mkdir /pup_new mount -o ro,rbind / /pup_ro1 mount -t aufs -o br:/pup_rw:/pup_ro1 aufs /pup_new echo '#!/bin/sh' > /pup_new/etc/rc.d/rc.sysinit #exec chroot /pup_new