boot-scripts
boot-scripts copied to clipboard
BeagleBone Black and Green running Amazon Greengrass IOT
Hi,
/etc/fstab needs a cgroups entry to run Amazon's IOT Greengrass core like this:-
cgroup /sys/fs/cgroup cgroup defaults 0 0
The flasher creates its fstab afresh and does not add/copy this line from the old fstab so a newly flashed BB Greengrass device has to be manually edited again to add the line. We solved this by adding the following line to init-eMMC-flasher-v3.sh
echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /tmp/rootfs/etc/fstab
between these two lines in functions.sh (see line 972/3
echo "debugfs /sys/kernel/debug debugfs defaults 0 0" >> ${tmp_rootfs_dir}/etc/fstab
echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> ${tmp_rootfs_dir}/etc/fstab
echo_broadcast "===> /etc/fstab generated"