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:
- is there better way this?
- 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
Post a Comment