| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
usage() { |
| 4 |
echo "USAGE:" |
| 5 |
echo "$0 <ISO> <IMG>" |
| 6 |
echo " Creates the file <IMG> by copying the contents of the <ISO> file," |
| 7 |
echo " then creates two additional partitions (VFAT and EXT4), the latter" |
| 8 |
echo " being enabled to contain persistence data. The size of the created" |
| 9 |
echo " file is 14 GiB, which should fit on any '16 GB' memory stick." |
| 10 |
} |
| 11 |
|
| 12 |
if [ $# -lt 2 ]; then |
| 13 |
echo "Number of parameters = $#" |
| 14 |
usage |
| 15 |
exit 1 |
| 16 |
fi |
| 17 |
|
| 18 |
ISO="$1" |
| 19 |
IMG="$2" |
| 20 |
|
| 21 |
python3 /usr/lib/python3/dist-packages/live_clone/makeLiveStick.py -f 1\ |
| 22 |
-s "$ISO" -m "$IMG" |
| 23 |
|