Fix --plists --bootdisks logic

This commit is contained in:
sickcodes 2021-03-08 14:24:00 +00:00
parent 0830eb49df
commit ecbac8b7dd
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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}"