f5bf4978d8
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/kexec-tools#041ba89902961b5490a7143d9596dc00d732cba0
17 lines
304 B
Bash
Executable File
17 lines
304 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BASEDIR=$(realpath $(dirname "$0"))
|
|
. $BASEDIR/image-init-lib.sh
|
|
|
|
# Base image to build from
|
|
BOOT_IMAGE=$1
|
|
if [[ ! -e $BOOT_IMAGE ]]; then
|
|
perror_exit "Image '$BOOT_IMAGE' not found"
|
|
else
|
|
BOOT_IMAGE=$(realpath "$BOOT_IMAGE")
|
|
fi
|
|
|
|
mount_image $BOOT_IMAGE
|
|
|
|
shell_in_image $BOOT_IMAGE
|