RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

BeagleBone Black and Green running Amazon Greengrass IOT #87

Open electricpocket opened 6 years ago

electricpocket commented 6 years ago

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"