From ecbac8b7ddf7a514844a330a1a3e3f9ba5d35052 Mon Sep 17 00:00:00 2001 From: sickcodes Date: Mon, 8 Mar 2021 14:24:00 +0000 Subject: [PATCH] Fix --plists --bootdisks logic --- README.md | 9 ++++++--- generate-unique-machine-values.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index adb0a11..5cb54f3 100644 --- a/README.md +++ b/README.md @@ -46,16 +46,19 @@ Used at runtime in [Docker-OSX](https://github.com/sickcodes/Docker-OSX). ```bash # Ubuntu/Debian/Pop -sudo apt update -y && sudo apt install libguestfs-tools build-essential ld wget git -y +sudo apt update -y +sudo apt install libguestfs-tools build-essential wget git linux-headers-generic -y # Fedora, RHEL, CentOS -sudo yum install libguestfs wget git -y +sudo yum install libguestfs wget git kernel-devel -y sudo yum groupinstall 'Development Tools' -y # Arch, Manjaro -sudo pacman -Sy libguestfs wget git base-devel +sudo pacman -Sy libguestfs wget git base-devel linux ``` +* to run inside a docker container, you need to install `linux` inside the container too: + # Generating New Unique Serial Numbers diff --git a/generate-unique-machine-values.sh b/generate-unique-machine-values.sh index c5def1b..a902055 100755 --- a/generate-unique-machine-values.sh +++ b/generate-unique-machine-values.sh @@ -280,7 +280,7 @@ EOF echo "Wrote CSV to: ${TSV_SERIAL_SETS_FILE}" # make envs if --envs, but also if you set the env filename it will switch on by itself - if [ "${CREATE_ENVS}" ] || [ "${OUTPUT_ENV}" ]; then + if [ "${CREATE_ENVS}" ] || [ "${OUTPUT_ENV}" ] || [ "${CREATE_PLISTS}" ]; then mkdir -p "${OUTPUT_DIRECTORY}/envs" OUTPUT_ENV_FILE="${OUTPUT_ENV:-"${OUTPUT_DIRECTORY}/envs/${SERIAL}.env.sh"}" touch "${OUTPUT_ENV_FILE}"