From cd9975541a00c1e04b71462c1ec550d3fd7c636e Mon Sep 17 00:00:00 2001 From: David Carley Date: Sun, 11 Sep 2022 02:41:25 +0000 Subject: [PATCH] Tweaks to the release scripts --- scripts/create-sdcard-image.js | 2 +- scripts/prep-controller-for-imaging.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/create-sdcard-image.js b/scripts/create-sdcard-image.js index 88fdc10..c5deb3f 100755 --- a/scripts/create-sdcard-image.js +++ b/scripts/create-sdcard-image.js @@ -38,5 +38,5 @@ async function main() { runCommand(`dd if=${device} of=${IMAGE_FILENAME} status=progress`, { stdio: "inherit" }); - runCommand(`chown ${uid} 1f.img`); + runCommand(`chown ${uid} ${IMAGE_FILENAME}`); } diff --git a/scripts/prep-controller-for-imaging.js b/scripts/prep-controller-for-imaging.js index 3616c52..0bdd682 100755 --- a/scripts/prep-controller-for-imaging.js +++ b/scripts/prep-controller-for-imaging.js @@ -4,6 +4,7 @@ const inquirer = require("inquirer"); const { runCommand, logErrorAndExit, initSignalHandlers, assertInstalled, info } = require("./util"); const PACKAGES_TO_PURGE = [ + "aptitude", "dphys-swapfile", "gdb", "geoip-database", @@ -47,6 +48,7 @@ async function main() { }); ssh("apt-get update"); + ssh("apt-get install usbutils"); ssh(`apt-get purge -y ${PACKAGES_TO_PURGE.join(" ")}`); ssh("apt-get autoremove -y"); ssh("touch /root/.prep-controller-completed");