#!/bin/bash # set root password to foobar echo '(echo foobar; sleep 1; echo foobar) | passwd root' > ${CDCHROOTDIR}/.runme chroot ${CDCHROOTDIR} /bin/bash -i /.runme rm -f ${CDCHROOTDIR}/.runme