Skip to content

Commit

Permalink
Add emtpy customize stage for freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Oct 24, 2023
1 parent 56413bf commit 156fd53
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions guestfish/freebsd12
3 changes: 3 additions & 0 deletions guestfish/freebsd13/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "[INFO] Empty customize stage, creating symlink $DIR_EXPORT/$1.qcow2 -> $DIR_INSTALL/$1"
( cd $DIR_EXPORT; ln -f -s ../../$DIR_INSTALL/$1.qcow2 $1-$VERSION-$RELEASE.qcow2 )
9 changes: 8 additions & 1 deletion guestfish/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ DISTRO=$1
DST_IMG=$2
SRC_IMG=${DIR_INSTALL}/$DISTRO.qcow2
DIR_CURR=$(dirname "$0")

GUESTFISH_WORKING_DIR=$DIR_BUILD/_guestfish/$DISTRO

# Run distro-specific run.sh and exit
if [ -e $DIR_CURR/$DISTRO/run.sh ]; then
$DIR_CURR/$DISTRO/run.sh $@
exit $?
fi

# OR continue with default run.sh
mkdir -p "$GUESTFISH_WORKING_DIR"

# Create image working copy
Expand Down

0 comments on commit 156fd53

Please sign in to comment.