From 75a6df618382a7d5c6468568407970d897d60b0a Mon Sep 17 00:00:00 2001 From: Jon Cluck Date: Sat, 4 May 2019 23:53:45 -0400 Subject: [PATCH] Use Edison's FAT32 Partition Mount the Edison's FAT32 partition to give us enough room to install golang. --- bin/oref0-setup.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/oref0-setup.sh b/bin/oref0-setup.sh index f734908f4..d3123dde5 100755 --- a/bin/oref0-setup.sh +++ b/bin/oref0-setup.sh @@ -647,7 +647,16 @@ if prompt_yn "" N; then # Replace apt sources.list with archive.debian.org locations echo -e "deb http://security.debian.org/ jessie/updates main\n#deb-src http://security.debian.org/ jessie/updates main\n\ndeb http://archive.debian.org/debian/ jessie-backports main\n#deb-src http://archive.debian.org/debian/ jessie-backports main\n\ndeb http://archive.debian.org/debian/ jessie main contrib non-free\n#deb-src http://archive.debian.org/debian/ jessie main contrib non-free" > /etc/apt/sources.list fi - + + #Mount the Edison's fat32 partition at /usr/local/go to give us lots of room to install golang + if is_edison && [ -e /dev/mmcblk0p9 ] && ! mount | grep -qa mmcblk0p9 ; then + echo 'Removing golang from /usr partition...' && rm -rf /usr/local/go && mkdir -p /usr/local/go + if ! grep -qa "mmcblk0p9" /etc/fstab ; then + echo 'Adding Edison FAT32 partition to /etc/fstab...' && echo "/dev/mmcblk0p9 /usr/local/go auto defaults 1 1" >> /etc/fstab + fi + echo 'Mounting Edison FAT32 partition...' && mount -a + fi + #TODO: remove this when IPv6 works reliably echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4