From 312dcfd53bfc23e7ff95268f9dbd2dabd615767c Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sun, 11 Apr 2021 16:47:13 -0500 Subject: [PATCH] Add cloud-init for VMs --- rootfs/standard/usr/bin/mynode_post_upgrade.sh | 5 +++++ setup/setup_device.sh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index c07cc785..ead20c55 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -106,6 +106,11 @@ $TORIFY apt-get -y install libudev-dev libusb-1.0-0-dev python3-venv gunicorn sq $TORIFY apt-get -y install torsocks python3-requests libsystemd-dev libjpeg-dev zlib1g-dev psmisc $TORIFY apt-get -y install hexyl libbz2-dev +# Install device specific packages +if [ $IS_X86 = 1 ]; then + $TORIFY apt-get -y install cloud-init +fi + # Make sure some software is removed apt-get -y purge ntp # (conflicts with systemd-timedatectl) apt-get -y purge chrony # (conflicts with systemd-timedatectl) diff --git a/setup/setup_device.sh b/setup/setup_device.sh index f6c79cbd..acafcd26 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -170,6 +170,10 @@ apt-get -y install zlib1g-dev libudev-dev libusb-1.0-0-dev python3-venv gunicorn apt-get -y install sqlite3 libsqlite3-dev torsocks python3-requests libsystemd-dev apt-get -y install libjpeg-dev zlib1g-dev psmisc hexyl libbz2-dev +# Install device specific packages +if [ $IS_X86 = 1 ]; then + apt-get -y install cloud-init +fi # Make sure some software is removed apt-get -y purge ntp # (conflicts with systemd-timedatectl)