#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60.
+# Generated by GNU Autoconf 2.61.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
## M4sh Initialization. ##
## --------------------- ##
-# Be Bourne compatible
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
- case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
+
+
# PATH needs CR
else
as_candidate_shells=
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Try only shells that exist, to save several forks.
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ ("$as_shell") 2> /dev/null <<\_ASEOF
-# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
- case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
+
:
_ASEOF
CONFIG_SHELL=$as_shell
as_have_required=yes
if { "$as_shell" 2> /dev/null <<\_ASEOF
-# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
- case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
+
:
(as_func_return () {
as_mkdir_p=false
fi
-# Find out whether ``test -x'' works. Don't use a zero-byte file, as
-# systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- as_executable_p="test -x"
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
else
- as_executable_p=:
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
fi
-rm -f conf$$.file
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
HAVE_DARWIN_OS_TRUE
HAVE_DARWIN_OS_FALSE
DEV
-iso
where
type
KERNEL
-disable-* | --disable-*)
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
eval enable_$ac_feature=no ;;
-docdir | --docdir | --docdi | --doc | --do)
-enable-* | --enable-*)
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
eval enable_$ac_feature=\$ac_optarg ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
-with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
- ac_package=`echo $ac_package| sed 's/-/_/g'`
+ ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
eval with_$ac_package=\$ac_optarg ;;
-without-* | --without-*)
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
- ac_package=`echo $ac_package | sed 's/-/_/g'`
+ ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
eval with_$ac_package=no ;;
--x)
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-dev=DEVICE specify device (e.g. /dev/hdc)
- --with-iso=PATH specify path to iso (not implemented)
+ --with-iso=PATH specify path to iso image
--with-cdrom=PATH specify path to cdrom
--with-kernel=version specify complete kernel version (e.g. 2.6.14-2)
--with-bacula=PATH specify path to Bacula source
if $ac_init_version; then
cat <<\_ACEOF
configure
-generated by GNU Autoconf 2.60
+generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.60. Invocation command line was
+generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
+
# ------------------------------------------
# Where to get cdrom
# ------------------------------------------
-ac_config_files="$ac_config_files autoconf/Make.common Makefile linux/Makefile linux/cdrom/Makefile linux/cdrom/bacula/Makefile linux/cdrom/cdtree/boot/isolinux/boot.msg knoppix/cdrom/Makefile knoppix/cdrom/bacula/Makefile freebsd/Makefile solaris/Makefile $PFILES"
+ac_config_files="$ac_config_files autoconf/Make.common Makefile linux/Makefile linux/usb/Makefile linux/cdrom/Makefile linux/cdrom/bacula/Makefile linux/cdrom/cdtree/boot/isolinux/boot.msg knoppix/cdrom/Makefile knoppix/cdrom/bacula/Makefile freebsd/Makefile solaris/Makefile $PFILES"
ac_config_commands="$ac_config_commands default"
## M4sh Initialization. ##
## --------------------- ##
-# Be Bourne compatible
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
- case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
+
+
# PATH needs CR
as_mkdir_p=false
fi
-# Find out whether ``test -x'' works. Don't use a zero-byte file, as
-# systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- as_executable_p="test -x"
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
else
- as_executable_p=:
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
fi
-rm -f conf$$.file
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# values after options handling.
ac_log="
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.60. Invocation command line was
+generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
- -V, --version print version number, then exit
+ -V, --version print version number and configuration settings, then exit
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.60,
+configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Copyright (C) 2006 Free Software Foundation, Inc.
"autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"linux/Makefile") CONFIG_FILES="$CONFIG_FILES linux/Makefile" ;;
+ "linux/usb/Makefile") CONFIG_FILES="$CONFIG_FILES linux/usb/Makefile" ;;
"linux/cdrom/Makefile") CONFIG_FILES="$CONFIG_FILES linux/cdrom/Makefile" ;;
"linux/cdrom/bacula/Makefile") CONFIG_FILES="$CONFIG_FILES linux/cdrom/bacula/Makefile" ;;
"linux/cdrom/cdtree/boot/isolinux/boot.msg") CONFIG_FILES="$CONFIG_FILES linux/cdrom/cdtree/boot/isolinux/boot.msg" ;;
HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
DEV!$DEV$ac_delim
-iso!$iso$ac_delim
where!$where$ac_delim
type!$type$ac_delim
KERNEL!$KERNEL$ac_delim
BACULA_BIN!$BACULA_BIN$ac_delim
BACULA_SCRIPTS!$BACULA_SCRIPTS$ac_delim
hostname!$hostname$ac_delim
+DISTNAME!$DISTNAME$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
-DISTNAME!$DISTNAME$ac_delim
DISTVER!$DISTVER$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
--- /dev/null
+#
+# Makefile for building a Bacula Rescue USB remastered Ubuntu LiveCD
+#
+
+.PATH: .
+
+CWD=/home/kern/bacula/rescue/linux/usb
+
+ISOIMAGE=/home/src/kubuntu/kubuntu-8.04.1-desktop-i386.iso
+
+first_rule: all
+dummy:
+
+#-------------------------------------------------------------------------
+
+# Make an iso boot image
+iso:
+ rm -f bootcd.iso
+ mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
+ -J -R -T -o bootcd.iso \
+ -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
+ -no-emul-boot -boot-load-size 4 -boot-info-table cdtree
+
+mountiso:
+ ./mountiso $ISOIMAGE
+
+unmountiso:
+ ./unmountiso
+
+mountsquashfs:
+ ./mountsqfs
+
+unpacksquashfs:
+ ./unpacksqfs
+
+unpackinitrd:
+ ./unpackinitrd
+
+
+# try booting it with qemu emulator
+boot:
+ qemu -cdrom bootcd.iso
+
+packinitrd:
+ ./packinitrd
+
+binaries:
+ ./makebinaries
+
+static-bacula: dummy
+ @(cd bacula; make copy-static-fd)
+
+bacula: dummy
+ @(cd bacula; make)
+
+copy-bacula:
+ cp -a bacula/ cdimage/
+
+
+
+# This will build the Bacula rescue
+all:
+
+
+copy-static-fd: kernel binaries static-bacula initrd iso
+
+
+# This needs to be customized for your burner.
+# Use either dev=ATA:x,y,z (as reported by cdrecord -scanbus)
+# or dev=/dev/<device> (e.g. hdc)
+burn:
+ cdrecord dev=ATA:3,0,0 gracetime=2 fs=4096k driveropts=burnfree -v \
+ -useinfo speed=48 -dao -eject -pad -data "bootcd.iso"
+
+# Blank the CDROM assuming it is +rw
+blank:
+ cdrecord dev=ATA:3,0,0 gracetime=2 -v blank=fast -useinfo speed=48
+
+scan:
+ cdrecord -scanbus
+
+distclean:
+clean:
+#
+# Clean out files that are rebuilt
+#
+ @rm -f bootcd.iso custom-rd.img.bz2
+ @rm -f 1 2 3 4
+ @rm -rf mnt
+ @rm -rf roottree/bin roottree/proc roottree/boot
+ @rm -rf roottree/lib roottree/sbin roottree/dev
+ @rm -rf roottree/dev roottree/sys roottree/sysroot
+ @rm -rf roottree/sys roottree/usr
+ @rm -rf roottree/initrd roottree/cdrom roottree/mnt
+ @rm -rf roottree/tmp roottree/var
+ @rm -f roottree/etc/services roottree/etc/exports
+ @rm -f roottree/etc/gshadow roottree/etc/shadow
+ @rm -f roottree/etc/passwd roottree/etc/group
+ @rm -f roottree/etc/hosts roottree/etc/bashrc
+ @rm -f roottree/etc/filesystems roottree/etc/fstab
+ @rm -f roottree/etc/protocols roottree/etc/localtime
+ @rm -f roottree/etc/ld.so.cache
+ @rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
+ @rm -rf roottree/etc/pam.d roottree/etc/ssh
+ @rm -rf roottree/etc/security roottree/etc/init.d
+ @rm -rf roottree/etc/rc.d
+ @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
+ @rm -rf roottree/etc/dev.d roottre/etc/hotplug roottree/etc/modprobe.d
+ @rm -rf roottree/etc/modprobe.conf.local roottree/etc/hotplug
+ @rm -rf roottree/etc/sysconfig roottree/etc/syslog-ng
+ @rm -rf roottree/bacula-*
+ @rm -f cdtree/boot/isolinux/initrd.img
+ @rm -f cdtree/boot/isolinux/isolinux.cfg
+ @rm -f cdtree/boot/isolinux/vmlinuz
+ @rm -f cdtree/boot/isolinux/map
+ @(cd bacula; make distclean)
+# @(cd ${MKCDREC}; make clean)
+# @(cd ${MKCDREC}/busybox; make distclean)
+
+
+#
+# This was the integration with mkcdrec, but I could never
+# get it to work reliably.
+#
+MKCDREC=/home/kern/bacula/rescue/mkcdrec
+mkcdrec: kernel binaries bacula pre-mkcdrec main-mkcdrec post-mkcdrec
+pre-mkcdrec:
+ @echo
+ ./mkcdrec_rd
+ @echo "Patching mkcdrec Config.sh for Bacula"
+ @mkdir -p tmp
+ @rm -f tmp/1 tmp/2 tmp/1
+ @cp ${MKCDREC}/Config.sh tmp/2
+ @echo "s%^BACULA_DIR.*$$%BACULA_DIR=${CWD}/bacula%g" >tmp/1
+ @sed -f tmp/1 tmp/2 >tmp/3
+ @echo "s%^BACULA_RESTORE.*$$%BACULA_RESTORE=\"y\"%g" >tmp/1
+ @sed -f tmp/1 tmp/3 >tmp/4
+ @echo "s%^DVD_Drive.*$$%DVD_Drive=0%g" >tmp/1
+ @sed -f tmp/1 tmp/4 >tmp/5
+ @echo "s%^USECOLOR.*$$%USECOLOR=n%g" >tmp/1
+ @sed -f tmp/1 tmp/5 >${MKCDREC}/Config.sh
+ @rm -rf tmp
+ @cp -f /bacula-fd bacula/bin
+ @cp -f /bacula-fd.conf bacula/bin
+
+main-mkcdrec: dummy
+ @echo " "
+ @echo "Doing make in mkcdrec directory. This may take some time and"
+ @echo " produce a good amount of output"
+ @echo " "
+ @echo
+ (cd ${MKCDREC}; make rescue)
+
+post-mkcdrec:
+ @echo "Cleaning up"
+ cp /tmp/CDrec.iso bootcd.iso
+ chmod 644 bootcd.iso
+ rm -f /tmp/CDrec.iso
+ rm -f custom-rd.img.bz2
--- /dev/null
+#
+# Makefile for building a Bacula Rescue USB remastered Ubuntu LiveCD
+#
+
+.PATH: .
+
+CWD=@BUILD_DIR@/linux/usb
+
+ISOIMAGE=@where@
+
+first_rule: all
+dummy:
+
+#-------------------------------------------------------------------------
+
+# Make an iso boot image
+iso:
+ rm -f bootcd.iso
+ mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
+ -J -R -T -o bootcd.iso \
+ -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
+ -no-emul-boot -boot-load-size 4 -boot-info-table cdtree
+
+mountiso:
+ ./mountiso $ISOIMAGE
+
+unmountiso:
+ ./unmountiso
+
+mountsquashfs:
+ ./mountsqfs
+
+unpacksquashfs:
+ ./unpacksqfs
+
+unpackinitrd:
+ ./unpackinitrd
+
+
+# try booting it with qemu emulator
+boot:
+ qemu -cdrom bootcd.iso
+
+packinitrd:
+ ./packinitrd
+
+binaries:
+ ./makebinaries
+
+static-bacula: dummy
+ @(cd bacula; make copy-static-fd)
+
+bacula: dummy
+ @(cd bacula; make)
+
+copy-bacula:
+ cp -a bacula/ cdimage/
+
+
+
+# This will build the Bacula rescue
+all:
+
+
+copy-static-fd: kernel binaries static-bacula initrd iso
+
+
+# This needs to be customized for your burner.
+# Use either dev=ATA:x,y,z (as reported by cdrecord -scanbus)
+# or dev=/dev/<device> (e.g. hdc)
+burn:
+ cdrecord dev=@DEV@ gracetime=2 fs=4096k driveropts=burnfree -v \
+ -useinfo speed=48 -dao -eject -pad -data "bootcd.iso"
+
+# Blank the CDROM assuming it is +rw
+blank:
+ cdrecord dev=@DEV@ gracetime=2 -v blank=fast -useinfo speed=48
+
+scan:
+ cdrecord -scanbus
+
+distclean:
+clean:
+#
+# Clean out files that are rebuilt
+#
+ @rm -f bootcd.iso custom-rd.img.bz2
+ @rm -f 1 2 3 4
+ @rm -rf mnt
+ @rm -rf roottree/bin roottree/proc roottree/boot
+ @rm -rf roottree/lib roottree/sbin roottree/dev
+ @rm -rf roottree/dev roottree/sys roottree/sysroot
+ @rm -rf roottree/sys roottree/usr
+ @rm -rf roottree/initrd roottree/cdrom roottree/mnt
+ @rm -rf roottree/tmp roottree/var
+ @rm -f roottree/etc/services roottree/etc/exports
+ @rm -f roottree/etc/gshadow roottree/etc/shadow
+ @rm -f roottree/etc/passwd roottree/etc/group
+ @rm -f roottree/etc/hosts roottree/etc/bashrc
+ @rm -f roottree/etc/filesystems roottree/etc/fstab
+ @rm -f roottree/etc/protocols roottree/etc/localtime
+ @rm -f roottree/etc/ld.so.cache
+ @rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
+ @rm -rf roottree/etc/pam.d roottree/etc/ssh
+ @rm -rf roottree/etc/security roottree/etc/init.d
+ @rm -rf roottree/etc/rc.d
+ @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
+ @rm -rf roottree/etc/dev.d roottre/etc/hotplug roottree/etc/modprobe.d
+ @rm -rf roottree/etc/modprobe.conf.local roottree/etc/hotplug
+ @rm -rf roottree/etc/sysconfig roottree/etc/syslog-ng
+ @rm -rf roottree/bacula-*
+ @rm -f cdtree/boot/isolinux/initrd.img
+ @rm -f cdtree/boot/isolinux/isolinux.cfg
+ @rm -f cdtree/boot/isolinux/vmlinuz
+ @rm -f cdtree/boot/isolinux/map
+ @(cd bacula; make distclean)
+# @(cd ${MKCDREC}; make clean)
+# @(cd ${MKCDREC}/busybox; make distclean)
+
+
+#
+# This was the integration with mkcdrec, but I could never
+# get it to work reliably.
+#
+MKCDREC=@BUILD_DIR@/mkcdrec
+mkcdrec: kernel binaries bacula pre-mkcdrec main-mkcdrec post-mkcdrec
+pre-mkcdrec:
+ @echo
+ ./mkcdrec_rd
+ @echo "Patching mkcdrec Config.sh for Bacula"
+ @mkdir -p tmp
+ @rm -f tmp/1 tmp/2 tmp/1
+ @cp ${MKCDREC}/Config.sh tmp/2
+ @echo "s%^BACULA_DIR.*$$%BACULA_DIR=${CWD}/bacula%g" >tmp/1
+ @sed -f tmp/1 tmp/2 >tmp/3
+ @echo "s%^BACULA_RESTORE.*$$%BACULA_RESTORE=\"y\"%g" >tmp/1
+ @sed -f tmp/1 tmp/3 >tmp/4
+ @echo "s%^DVD_Drive.*$$%DVD_Drive=0%g" >tmp/1
+ @sed -f tmp/1 tmp/4 >tmp/5
+ @echo "s%^USECOLOR.*$$%USECOLOR=n%g" >tmp/1
+ @sed -f tmp/1 tmp/5 >${MKCDREC}/Config.sh
+ @rm -rf tmp
+ @cp -f @BACULA_BIN@/bacula-fd bacula/bin
+ @cp -f @BACULA_SCRIPTS@/bacula-fd.conf bacula/bin
+
+main-mkcdrec: dummy
+ @echo " "
+ @echo "Doing make in mkcdrec directory. This may take some time and"
+ @echo " produce a good amount of output"
+ @echo " "
+ @echo
+ (cd ${MKCDREC}; make rescue)
+
+post-mkcdrec:
+ @echo "Cleaning up"
+ cp /tmp/CDrec.iso bootcd.iso
+ chmod 644 bootcd.iso
+ rm -f /tmp/CDrec.iso
+ rm -f custom-rd.img.bz2