3
# lh_binary_tar(1) - build harddisk binary image
4
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/functions.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'build harddisk binary image')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
if ! In_list tar "${LH_BINARY_IMAGES}"
31
Echo_message "Begin building binary harddisk image..."
33
# Requiring stage file
34
Require_stagefile .stage/config .stage/bootstrap
37
Check_stagefile .stage/binary_tar
48
tar cf binary-tar.tar binary
49
gzip ${GZIP_OPTIONS} binary-tar.tar
52
Create_stagefile .stage/binary_tar