1. fakeroot do_root_passwd() {
  2. ROOT_PASS=`${STAGING_BINDIR_NATIVE}/pwgen -1`
  3. ROOT_PSTRING=`${STAGING_BINDIR_NATIVE}/openssl passwd -crypt -salt salty ${ROOT_PASS}`
  4. sed -i -e "s|root::|root:${ROOT_PSTRING}:|" ${IMAGE_ROOTFS}/etc/passwd
  5. }
Comments powered by Disqus