Update iso tools

This commit is contained in:
dave 2019-04-07 15:04:15 -07:00
parent 24bad32cc4
commit 7329421aed
2 changed files with 7 additions and 4 deletions

View File

@ -10,6 +10,8 @@ Setup:
* Install requirements:
* `pip3 install -r requirements.txt`
* `apt-get install -y bsdtar genisoimage`
* `python3 setup.py install`
* (you could use the Dockerfile instead)
* Prepare at least one ISO (see below)
* Start it
* `python3 main.py`
@ -24,7 +26,7 @@ can be written to. Refer to the example commands below:
```
cd iso_raws
cd isos
mkdir ubuntu-16.04.1-server-amd64
cd ubuntu-16.04.1-server-amd64
bsdtar xfp ~/Downloads/ubuntu-16.04.1-server-amd64.iso
@ -45,7 +47,8 @@ In normal operation, the application loads templates and configs once on startup
variable is set, it will reload the templates and configs on every page load:
```
REFRESH=1 python3 main.py
python3 setup.py develop
REFRESH=1 PORT=8080 DATADIR=./isos isoserverd
```
Additional config templates can be added under the "samples" directory.

View File

@ -4,8 +4,8 @@ ISO_PATH="$1"
ISO_NAME="$(basename $1 | sed -E 's/\.iso$//' )"
mkdir iso_raws/$ISO_NAME
cd iso_raws/$ISO_NAME
mkdir isos/$ISO_NAME
cd isos/$ISO_NAME
bsdtar xfp $ISO_PATH