Skip to content
Snippets Groups Projects
Commit 148f0fcc authored by Nikolai Hartmann's avatar Nikolai Hartmann
Browse files

print usage message for build_image.sh

parent 52912212
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
img_path="$1"
prefix="/"
if [[ -n "$2" ]]; then
prefix="$2"
if [[ $# -lt 1 ]];then
echo "Usage: build_image.sh <img_path> [<prefix>]"
exit 1
fi
img_path="$1"
prefix=${2:-"/"}
dnf -y --installroot "$img_path" --releasever=8 install system-release bash yum
rsync -av "${prefix}var/local/mkosi/mkosi.extra/" "$img_path"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment