"release" action now defaults to "dfsbuild config harden isoz" (instead of "iso")

"burn" action now refers to the compressed image
This commit is contained in:
lars 2005-10-04 12:15:20 +00:00
parent 141d6ef4d4
commit 527f138146
1 changed files with 20 additions and 20 deletions

View File

@ -11,7 +11,7 @@
# burn - burns the image on a cd-rw
#
# final action:
# release - the same as "dfsbuild config harden iso"
# release - the same as "dfsbuild config harden isoz"
#
#
# problems of this script:
@ -19,7 +19,7 @@
# - 'harden' is strangely integrated
#
# you may run this script with multiple arguments, e.g.:
# cb-build.sh dfsbuild config iso
# cb-build.sh dfsbuild config isoz
#
# the action "release" does what it says :)
# (all developer's features like sshd, writable templates and
@ -50,7 +50,7 @@ function run_dfsbuild()
}
function create_iso()
function create_uncompressed_iso()
{
echo "Creating the iso ..."
mkisofs $MKISOFS_OPTIONS -o "$IMAGE_FILE" "$IMAGE_DIR"
@ -125,7 +125,7 @@ function fetch_revision()
function blanknburn_cdrw()
{
cdrecord -v dev=$CDWRITER blank=fast
cdrecord -v dev=$CDWRITER $IMAGE_FILE
cdrecord -v dev=$CDWRITER $IMAGEZ_FILE
}
################ do it! ######################
@ -140,42 +140,42 @@ for a in $LOCALCONF_DIR $CUSTOM_CONFIGURE_DIR
[ "$(id -u)" -ne 0 ] && echo "this script ($0) has to be called as root" >&2 && exit 1
while [ $# -gt 0 ]
do case "$1" in
dfsbuild )
do case "$1" in
dfsbuild )
# check if we are in ROOT_DIR - otherwise we will have problems with
# relative paths in dfs-box.conf
[ "$ROOT_DIR" -ef "$(pwd)" ] || error_die 1 "Sorry: you have to run $0 while you are in '$ROOT_DIR'!"
run_dfsbuild
;;
config )
config )
configure_cb normal
;;
iso )
create_iso
iso )
create_uncompressed_iso
;;
isoz )
isoz )
create_compressed_iso
;;
harden )
harden )
chroot "$IMAGE_DIR" "$CHROOT_START" /usr/lib/cryptobox/configure-cryptobox.sh secure
;;
burn )
;;
burn )
blanknburn_cdrw
;;
release )
$0 dfsbuild config harden iso
release )
$0 dfsbuild config harden isoz
;;
help|--help )
help|--help )
echo "Syntax: `basename $0` ( release | dfsbuild | config | harden | iso | isoz | burn | help )"
echo " (you may specify more than one action)"
echo
;;
* )
;;
* )
echo -e "unknown action: $1"
echo
$0 help
exit 1
;;
esac
shift
esac
shift
done