File: cloneTo16GsimulatedDrive

package info (click to toggle)
live-clone 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,104 kB
  • sloc: python: 2,333; xml: 440; makefile: 61; sh: 45
file content (23 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

usage() {
    echo "USAGE:"
    echo "$0 <ISO> <IMG>"
    echo "     Creates the file <IMG> by copying the contents of the <ISO> file,"
    echo "     then creates two additional partitions (VFAT and EXT4), the latter"
    echo "     being enabled to contain persistence data. The size of the created"
    echo "     file is 14 GiB, which should fit on any '16 GB' memory stick."
}

if [ $# -lt 2 ]; then
    echo "Number of parameters = $#"
    usage
    exit 1
fi

ISO="$1"
IMG="$2"

python3 /usr/lib/python3/dist-packages/live_clone/makeLiveStick.py -f 1\
     -s "$ISO" -m "$IMG"