Tweaks to the release scripts

This commit is contained in:
David Carley
2022-09-11 02:41:25 +00:00
parent 32cdf2adbd
commit cd9975541a
2 changed files with 3 additions and 1 deletions

View File

@@ -38,5 +38,5 @@ async function main() {
runCommand(`dd if=${device} of=${IMAGE_FILENAME} status=progress`, { runCommand(`dd if=${device} of=${IMAGE_FILENAME} status=progress`, {
stdio: "inherit" stdio: "inherit"
}); });
runCommand(`chown ${uid} 1f.img`); runCommand(`chown ${uid} ${IMAGE_FILENAME}`);
} }

View File

@@ -4,6 +4,7 @@ const inquirer = require("inquirer");
const { runCommand, logErrorAndExit, initSignalHandlers, assertInstalled, info } = require("./util"); const { runCommand, logErrorAndExit, initSignalHandlers, assertInstalled, info } = require("./util");
const PACKAGES_TO_PURGE = [ const PACKAGES_TO_PURGE = [
"aptitude",
"dphys-swapfile", "dphys-swapfile",
"gdb", "gdb",
"geoip-database", "geoip-database",
@@ -47,6 +48,7 @@ async function main() {
}); });
ssh("apt-get update"); ssh("apt-get update");
ssh("apt-get install usbutils");
ssh(`apt-get purge -y ${PACKAGES_TO_PURGE.join(" ")}`); ssh(`apt-get purge -y ${PACKAGES_TO_PURGE.join(" ")}`);
ssh("apt-get autoremove -y"); ssh("apt-get autoremove -y");
ssh("touch /root/.prep-controller-completed"); ssh("touch /root/.prep-controller-completed");