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