Petr Šabata f5bf49
#!/usr/bin/env bash
Petr Šabata f5bf49
Petr Šabata f5bf49
BASEDIR=$(realpath $(dirname "$0"))
Petr Šabata f5bf49
. $BASEDIR/image-init-lib.sh
Petr Šabata f5bf49
Petr Šabata f5bf49
# Base image to build from
Petr Šabata f5bf49
BOOT_IMAGE=$1
Petr Šabata f5bf49
if [[ ! -e $BOOT_IMAGE ]]; then
Petr Šabata f5bf49
	perror_exit "Image '$BOOT_IMAGE' not found"
Petr Šabata f5bf49
else
Petr Šabata f5bf49
	BOOT_IMAGE=$(realpath "$BOOT_IMAGE")
Petr Šabata f5bf49
fi
Petr Šabata f5bf49
Petr Šabata f5bf49
mount_image $BOOT_IMAGE
Petr Šabata f5bf49
Petr Šabata f5bf49
shell_in_image $BOOT_IMAGE