release.sh: jail building adjustments
This commit is contained in:
parent
1e56737131
commit
d2897e946f
1 changed files with 3 additions and 19 deletions
|
@ -102,21 +102,7 @@ do
|
||||||
SVNREV=-r$OPTARG
|
SVNREV=-r$OPTARG
|
||||||
;;
|
;;
|
||||||
j)
|
j)
|
||||||
FINAL_JAILDIR=$OPTARG
|
RELEASEDIR=$OPTARG
|
||||||
|
|
||||||
# Make sure no important directory will be wiped
|
|
||||||
if [ -d "$FINAL_JAILDIR" ]
|
|
||||||
then echo "$FINAL_JAILDIR exists."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Sanity check name
|
|
||||||
if mkdir $FINAL_JAILDIR
|
|
||||||
then :
|
|
||||||
else echo "Could not create $FINAL_JAILDIR."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
rm -rf $FINAL_JAILDIR
|
|
||||||
JAILMODE=1
|
JAILMODE=1
|
||||||
;;
|
;;
|
||||||
u)
|
u)
|
||||||
|
@ -302,11 +288,9 @@ fi
|
||||||
|
|
||||||
# If we are making a jail, all is done!
|
# If we are making a jail, all is done!
|
||||||
if [ $JAILMODE = 1 ]
|
if [ $JAILMODE = 1 ]
|
||||||
then rm -rf $FINAL_JAILDIR
|
then echo "Created new minix install in $RELEASEDIR."
|
||||||
mv $RELEASEDIR $FINAL_JAILDIR
|
|
||||||
echo "Created new minix install in $FINAL_JAILDIR."
|
|
||||||
echo "Enter it by typing: "
|
echo "Enter it by typing: "
|
||||||
echo "# chroot $FINAL_JAILDIR /bin/sh"
|
echo "# chroot $RELEASEDIR /bin/sh"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue