1. ROOTFS_POSTPROCESS_COMMAND += " do_foo; do_root_passwd; do_bar; "
  2. fakeroot do_root_passwd() {
  3. ROOT_PASS=`${STAGING_BINDIR_NATIVE}/pwgen -1`
  4. ROOT_PSTRING=`${STAGING_BINDIR_NATIVE}/openssl passwd -crypt -salt salty ${ROOT_PASS}`
  5. sed -i -e "s|root::|root:${ROOT_PSTRING}:|" ${IMAGE_ROOTFS}/etc/passwd
  6. }

adding a root password in ROOTFS_POSTPROCESS

Comments powered by Disqus