Yocto recipe to update /etc/fstab -


i'm having trouble updating /etc/fstab of linux distribution, when building yocto. i'm pretty new yocto, maybe i'm off rocker.

my latest attempt add recipe named base-files_%.bbappend.

mount_smackfs () {     cat >> ${image_rootfs}/etc/fstab <<eof  # generated smack-userspace smackfs /smack smackfs smackfsdefault=* 0 0   eof }   rootfs_postprocess_command += "mount_smackfs; " 

but, output /etc/fstab on distribution hasn't changed. questions are:

  1. is there better way this?
  2. how can tell if .bbappend file executed?

rootfs_postprocess_command handled in image recipes , not in package recipes. have 2 possibilities.

  • update fstab in base-file_%.bbappend:

    do_install_append () {     cat >> ${d}${sysconfdir}/fstab <<eof  # generated smack-userspace smackfs /smack smackfs smackfsdefault=* 0 0   eof } 
  • update fstab in image's recipe: in case, append wrote above (in post) in image's recipe.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -