danielhilst

myimage.bb

Sep 24th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # SOMELAYER/recipes-sato/images/myimage.bb
  2. IMAGE_FEATURES += "splash package-management x11-base ssh-server-openssh hwcodecs"
  3. LICENSE = "MIT"
  4. inherit core-image
  5.  
  6. ROOT_PASSWD ?= "r00t"
  7. set_root_password () {
  8. local p=$(openssl passwd -1 -salt "As salty as the Dead Sea" "${ROOT_PASSWD}")
  9. sed -e "s/root:[^:]*:/root:${p}:/" -i ${IMAGE_ROOTFS}/etc/shadow
  10. }
  11. # EXPORT_FUNCTIONS set_root_password
  12. ROOTFS_POSTPROCESS_COMMAND += "set_root_password; "
Advertisement
Add Comment
Please, Sign In to add comment