summaryrefslogtreecommitdiff
path: root/functions.sh
blob: d4ddfc7bd2602996417aee81aad557e5a507c824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
process_distro() {
	source "distro/$1/install.sh"
	ISOFILE="$(basename $ISOURL)"
	ISOMNT="/media/$ISOFILE"
}

mount_iso() {
	udevil mount "isofiles/$ISOFILE" "$ISOMNT"
}

umount_iso() {
	udevil umount "$ISOMNT"
}

getuuid() {
	lsblk -n -o UUID "$1"
}