Skip to content
Snippets Groups Projects
Commit 542e5b7b authored by Bob Mottram's avatar Bob Mottram
Browse files

More package cleaning

parent 29f446ff
No related branches found
No related tags found
No related merge requests found
......@@ -1765,6 +1765,9 @@ image_setup_utils() {
# shellcheck disable=SC2086
chroot "$rootdir" $INSTALL_PACKAGES network-manager iputils-ping libnss-mdns libnss-myhostname
# shellcheck disable=SC2086
chroot "$rootdir" $CLEAN_PACKAGES
chroot "$rootdir" /bin/rm -rf /var/lib/apt/lists/*
# shellcheck disable=SC2086
chroot "$rootdir" $INSTALL_PACKAGES libnss-gw-name nano man ntp locales locales-all debconf
# shellcheck disable=SC2086
chroot "$rootdir" $INSTALL_PACKAGES wireless-tools wpasupplicant usbutils cryptsetup zsh
......@@ -1805,6 +1808,10 @@ image_setup_utils() {
# shellcheck disable=SC2086
chroot "$rootdir" $INSTALL_PACKAGES fswebcam
# shellcheck disable=SC2086
chroot "$rootdir" $CLEAN_PACKAGES
chroot "$rootdir" /bin/rm -rf /var/lib/apt/lists/*
# Install golang
chroot "$rootdir" adduser --disabled-login --gecos 'go' go
GOARCH=
......@@ -1834,6 +1841,7 @@ image_setup_utils() {
if [ ! -f "${rootdir}/root/build/go${GO_VERSION}.linux-${GOARCH}.tar.gz" ]; then
exit 26
fi
chroot "$rootdir" tar -C /home/go -xzf "${INSTALL_DIR}/go${GO_VERSION}.linux-${GOARCH}.tar.gz"
if [ ! -d "${rootdir}/home/go/go/bin" ]; then
echo 'Go binary not installed'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment