boot-scripts icon indicating copy to clipboard operation
boot-scripts copied to clipboard

BeagleBone Black and Green running Amazon Greengrass IOT

Open electricpocket opened this issue 6 years ago • 0 comments

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"

electricpocket avatar Jun 20 '18 08:06 electricpocket