diff --git a/README.md b/README.md index 0b2795a..4b27fe1 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,6 @@ You will have to use Arch or Arch-Based distros to build this ISO File. * `pacman-contrib` * `archiso` -Install With - `sudo pacman -Syu pacman-contrib archiso`
-(Syu To make sure everything else is up to date and the repos are synchronized) ### Run the Command -Go to the project folder, open a terminal and Type `./build_iso.sh`
-Or Open Visual Studio code and execute the script from there. -* If you get an error about `/tmp/` running out of space, reboot (to clear tmpfs), then edit the `WORKDIR=...` line to a regular dir name. - * This (could) happen because the script is written to make a temp dir in `/tmp`, which is a virtual FS that lives in RAM. - * If it happens to many people, we can just add a commandline arg to change `WORKDIR` +* `./build_iso.sh` +* If you get an error about `/tmp/` running out of space, reboot (to clear tmpfs), then re-run with a dir to use as temp (e.g. `./build_iso.sh FOOBAR`) diff --git a/build_iso.sh b/build_iso.sh index 4e7057c..c7ef08a 100755 --- a/build_iso.sh +++ b/build_iso.sh @@ -1,6 +1,14 @@ rm -fv *.iso -WORKDIR=$(mktemp -d) +if [[ "$1" == "" ]]; then + WORKDIR=$(mktemp -d) +else + WORKDIR="$1" + if [[ ! -d "$WORKDIR" ]]; then + mkdir -p "$WORKDIR" + fi +fi + # idk if this would've happened automatically? cp crystal/pacman.conf crystal/airootfs/etc/. cp crystal/packages.x86_64 crystal/airootfs/etc/packages.x86_64