2007-09-23 08:04:46 +00:00
#!/bin/sh
2010-09-02 11:12:37 +00:00
## live-build(7) - System Build Scripts
2012-02-04 19:41:41 -01:00
## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
2010-09-02 11:12:37 +00:00
##
2012-07-29 23:59:00 +00:00
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
2010-09-02 11:12:37 +00:00
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
2007-09-23 08:04:46 +00:00
Set_defaults ( )
{
## config/common
2011-09-01 07:27:16 +00:00
if [ -e local/live-build ]
then
2012-07-19 17:37:26 +00:00
LIVE_BUILD = " ${ LIVE_BUILD :- ${ PWD } /local/live-build } "
2012-08-27 12:55:15 +00:00
export LIVE_BUILD
2011-09-01 07:27:16 +00:00
fi
2009-11-21 08:16:58 -01:00
2011-09-29 22:56:49 +00:00
# Setting system type
2011-10-13 17:50:48 +00:00
LB_SYSTEM = " ${ LB_SYSTEM :- live } "
2011-09-29 22:56:49 +00:00
2011-07-19 08:51:20 +00:00
# Setting mode (currently: debian, emdebian, progress, ubuntu and kubuntu)
2012-01-23 11:42:47 -01:00
if [ -x /usr/bin/lsb_release ]
then
_DISTRIBUTOR = " $( lsb_release -is | tr [ A-Z] [ a-z] ) "
case " ${ _DISTRIBUTOR } " in
debian| progress| ubuntu)
LB_MODE = " ${ LB_MODE :- ${ _DISTRIBUTOR } } "
; ;
*)
LB_MODE = " ${ LB_MODE :- debian } "
; ;
esac
else
if [ -e /etc/progress_version ]
then
LB_MODE = " ${ LB_MODE :- progress } "
elif [ -e /etc/ubuntu_version ]
then
LB_MODE = " ${ LB_MODE :- ubuntu } "
2012-02-16 19:39:52 -01:00
else
LB_MODE = " ${ LB_MODE :- debian } "
2012-01-23 11:42:47 -01:00
fi
fi
2007-09-23 08:04:49 +00:00
2007-09-23 08:05:13 +00:00
# Setting distribution name
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-01 22:45:08 -01:00
progress)
2012-08-27 14:23:27 +00:00
LB_DISTRIBUTION = " ${ LB_DISTRIBUTION :- baureo } "
2011-02-14 12:32:10 -01:00
LB_DERIVATIVE = "true"
2011-01-01 22:45:08 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2012-07-27 21:29:19 +00:00
LB_DISTRIBUTION = " ${ LB_DISTRIBUTION :- precise } "
2011-02-14 12:32:10 -01:00
LB_DERIVATIVE = "false"
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
*)
2011-06-15 19:14:23 +00:00
LB_DISTRIBUTION = " ${ LB_DISTRIBUTION :- wheezy } "
2011-02-14 12:32:10 -01:00
LB_DERIVATIVE = "false"
2011-01-08 09:05:19 -01:00
; ;
esac
case " ${ LB_MODE } " in
progress)
case " ${ LB_DISTRIBUTION } " in
2012-08-29 13:58:42 +00:00
artax| artax-backports)
2011-01-08 09:05:19 -01:00
LB_PARENT_DISTRIBUTION = " ${ LB_PARENT_DISTRIBUTION :- squeeze } "
2011-02-14 10:29:25 -01:00
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION = " ${ LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION :- ${ LB_PARENT_DISTRIBUTION } } "
2011-01-08 09:05:19 -01:00
; ;
2012-08-29 13:58:42 +00:00
baureo| baureo-backports)
2012-07-27 21:29:19 +00:00
LB_PARENT_DISTRIBUTION = " ${ LB_PARENT_DISTRIBUTION :- wheezy } "
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION = " ${ LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION :- ${ LB_PARENT_DISTRIBUTION } } "
; ;
2012-08-29 13:58:42 +00:00
charon| charon-backports)
2011-01-08 09:05:19 -01:00
LB_PARENT_DISTRIBUTION = " ${ LB_PARENT_DISTRIBUTION :- sid } "
2011-02-14 10:29:25 -01:00
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION = " ${ LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION :- ${ LB_PARENT_DISTRIBUTION } } "
2011-01-08 09:05:19 -01:00
; ;
esac
2012-02-04 20:05:36 -01:00
LB_BACKPORTS = " ${ LB_BACKPORTS :- true } "
2011-01-08 09:05:19 -01:00
; ;
*)
LB_PARENT_DISTRIBUTION = " ${ LB_PARENT_DISTRIBUTION :- ${ LB_DISTRIBUTION } } "
2011-02-14 10:29:25 -01:00
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION = " ${ LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION :- ${ LB_PARENT_DISTRIBUTION } } "
2012-02-04 20:05:36 -01:00
LB_BACKPORTS = " ${ LB_BACKPORTS :- false } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:11 +00:00
# Setting package manager
2010-09-07 13:11:20 +00:00
LB_APT = " ${ LB_APT :- apt } "
2007-09-23 08:05:11 +00:00
2007-09-23 08:04:46 +00:00
# Setting apt ftp proxy
2012-05-31 11:12:13 +00:00
LB_APT_FTP_PROXY = " ${ LB_APT_FTP_PROXY } "
2007-09-23 08:04:46 +00:00
# Setting apt http proxy
2012-05-31 11:12:13 +00:00
LB_APT_HTTP_PROXY = " ${ LB_APT_HTTP_PROXY } "
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:11 +00:00
# Setting apt pipeline
2010-09-07 13:11:20 +00:00
# LB_APT_PIPELINE
2007-09-23 08:04:46 +00:00
2008-02-21 18:03:57 -01:00
APT_OPTIONS = " ${ APT_OPTIONS :- --yes } "
APTITUDE_OPTIONS = " ${ APTITUDE_OPTIONS :- --assume-yes } "
2011-07-21 15:48:17 +00:00
BZIP2_OPTIONS = " ${ BZIP2_OPTIONS :- -6 } "
2011-01-01 22:36:20 -01:00
2011-07-21 15:48:17 +00:00
GZIP_OPTIONS = " ${ GZIP_OPTIONS :- -6 } "
2009-09-11 07:39:13 +00:00
2010-06-21 20:26:11 +00:00
if gzip --help | grep -qs "\-\-rsyncable"
2009-09-11 07:39:13 +00:00
then
2010-06-21 20:26:11 +00:00
GZIP_OPTIONS = " $( echo ${ GZIP_OPTIONS } | sed -e 's|--rsyncable||' ) --rsyncable "
2009-09-11 07:39:13 +00:00
fi
2011-07-21 15:48:17 +00:00
LZIP_OPTIONS = " ${ LZIP_OPTIONS :- -6 } "
2011-01-01 22:36:20 -01:00
2011-07-21 15:48:17 +00:00
LZMA_OPTIONS = " ${ LZMA_OPTIONS :- -6 } "
2011-06-13 18:38:44 +00:00
2012-07-18 17:44:00 +00:00
XZ_OPTIONS = " ${ XZ_OPTIONS :- -6 } "
2007-09-23 08:04:46 +00:00
# Setting apt recommends
2010-09-07 13:11:20 +00:00
case " ${ LB_MODE } " in
2011-01-01 22:45:08 -01:00
emdebian| progress)
2010-09-07 13:11:20 +00:00
LB_APT_RECOMMENDS = " ${ LB_APT_RECOMMENDS :- false } "
2008-12-08 10:24:11 -01:00
; ;
2010-12-27 16:12:36 -01:00
*)
LB_APT_RECOMMENDS = " ${ LB_APT_RECOMMENDS :- true } "
; ;
2007-09-23 08:05:17 +00:00
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:04:48 +00:00
# Setting apt secure
2010-09-07 13:11:20 +00:00
LB_APT_SECURE = " ${ LB_APT_SECURE :- true } "
2007-09-23 08:04:48 +00:00
2011-08-24 18:34:01 +00:00
# Setting apt source
2011-08-24 20:59:46 +00:00
case " ${ LB_MODE } " in
progress)
2011-08-24 21:30:22 +00:00
LB_APT_SOURCE_ARCHIVES = " ${ LB_APT_SOURCE_ARCHIVES :- false } "
2011-08-24 20:59:46 +00:00
; ;
*)
2011-08-24 21:30:22 +00:00
LB_APT_SOURCE_ARCHIVES = " ${ LB_APT_SOURCE_ARCHIVES :- true } "
2011-08-24 20:59:46 +00:00
; ;
esac
2011-08-24 18:34:01 +00:00
2007-09-23 08:04:46 +00:00
# Setting bootstrap program
2010-09-07 13:11:20 +00:00
if [ -z " ${ LB_BOOTSTRAP } " ] || ( [ ! -x " $( which ${ LB_BOOTSTRAP } 2>/dev/null) " ] && [ " ${ LB_BOOTSTRAP } " != "copy" ] )
2007-09-23 08:04:46 +00:00
then
2007-10-19 10:45:57 +00:00
if [ -x "/usr/sbin/debootstrap" ]
then
2010-09-07 13:11:20 +00:00
LB_BOOTSTRAP = "debootstrap"
2007-10-19 10:45:57 +00:00
elif [ -x "/usr/bin/cdebootstrap" ]
then
2010-09-07 13:11:20 +00:00
LB_BOOTSTRAP = "cdebootstrap"
2007-10-19 10:45:57 +00:00
fi
2007-09-23 08:04:46 +00:00
fi
# Setting cache option
2010-09-07 13:11:20 +00:00
LB_CACHE = " ${ LB_CACHE :- true } "
LB_CACHE_INDICES = " ${ LB_CACHE_INDICES :- false } "
LB_CACHE_PACKAGES = " ${ LB_CACHE_PACKAGES :- true } "
LB_CACHE_STAGES = " ${ LB_CACHE_STAGES :- bootstrap } "
2007-09-23 08:04:46 +00:00
# Setting debconf frontend
2010-09-07 13:11:20 +00:00
LB_DEBCONF_FRONTEND = " ${ LB_DEBCONF_FRONTEND :- noninteractive } "
LB_DEBCONF_NOWARNINGS = " ${ LB_DEBCONF_NOWARNINGS :- yes } "
LB_DEBCONF_PRIORITY = " ${ LB_DEBCONF_PRIORITY :- critical } "
2007-09-23 08:04:50 +00:00
2010-09-07 13:11:20 +00:00
case " ${ LB_DEBCONF_NOWARNINGS } " in
2009-12-13 19:17:45 -01:00
true )
2010-09-07 13:11:20 +00:00
LB_DEBCONF_NOWARNINGS = "yes"
2007-09-23 08:05:14 +00:00
; ;
2009-12-13 19:17:45 -01:00
false )
2010-09-07 13:11:20 +00:00
LB_DEBCONF_NOWARNINGS = "no"
2007-09-23 08:05:14 +00:00
; ;
esac
2007-09-23 08:05:10 +00:00
# Setting initramfs hook
2010-12-27 16:12:36 -01:00
case " ${ LB_INITRAMFS } " in
auto)
2010-09-07 13:11:20 +00:00
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-09-07 13:11:20 +00:00
LB_INITRAMFS = "casper"
2009-04-15 20:07:26 +00:00
; ;
2008-12-08 10:24:11 -01:00
*)
2010-12-27 16:12:36 -01:00
LB_INITRAMFS = "live-boot"
2008-12-08 10:24:11 -01:00
; ;
2007-09-23 08:05:17 +00:00
esac
2010-12-27 16:12:36 -01:00
; ;
*)
2011-09-29 22:56:49 +00:00
case " ${ LB_SYSTEM } " in
live)
LB_INITRAMFS = " ${ LB_INITRAMFS :- auto } "
; ;
normal)
LB_INITRAMFS = " ${ LB_INITRAMFS :- none } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:05:10 +00:00
2011-06-13 18:38:44 +00:00
LB_INITRAMFS_COMPRESSION = " ${ LB_INITRAMFS_COMPRESSION :- gzip } "
2011-02-09 09:37:21 -01:00
# Setting initsystem
2011-02-10 21:31:21 -01:00
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2011-02-10 21:44:40 -01:00
case " ${ LB_INITRAMFS } " in
live-boot)
LB_INITSYSTEM = " ${ LB_INITSYSTEM :- upstart } "
; ;
esac
2011-02-10 21:31:21 -01:00
; ;
2011-02-14 14:04:16 -01:00
*)
2011-09-29 22:56:49 +00:00
case " ${ LB_SYSTEM } " in
live)
LB_INITSYSTEM = " ${ LB_INITSYSTEM :- sysvinit } "
; ;
normal)
LB_INITSYSTEM = " ${ LB_INITSYSTEM :- none } "
; ;
esac
2011-02-14 14:04:16 -01:00
; ;
2011-02-10 21:31:21 -01:00
esac
2011-02-09 09:37:21 -01:00
2007-11-12 20:43:28 -01:00
# Setting fdisk
2010-09-07 13:11:20 +00:00
if [ -z " ${ LB_FDISK } " ] || [ ! -x " ${ LB_FDISK } " ]
2007-11-12 20:43:28 -01:00
then
# Workaround for gnu-fdisk divertion
# (gnu-fdisk is buggy, #445304).
if [ -x /sbin/fdisk.distrib ]
then
2010-09-07 13:11:20 +00:00
LB_FDISK = "fdisk.distrib"
2007-11-12 20:43:28 -01:00
elif [ -x /sbin/fdisk ]
then
2010-09-07 13:11:20 +00:00
LB_FDISK = "fdisk"
2007-11-12 20:43:28 -01:00
else
2008-08-12 21:29:14 +00:00
Echo_error "Can't process file /sbin/fdisk"
2007-11-12 20:43:28 -01:00
fi
fi
2007-09-23 08:04:47 +00:00
# Setting losetup
2010-09-07 13:11:20 +00:00
if [ -z " ${ LB_LOSETUP } " ] || [ " ${ LB_LOSETUP } " != "/sbin/losetup.orig" ]
2007-09-23 08:04:46 +00:00
then
2007-09-23 08:05:10 +00:00
# Workaround for loop-aes-utils divertion
2007-11-12 20:43:28 -01:00
# (loop-aes-utils' losetup lacks features).
2007-09-23 08:04:47 +00:00
if [ -x /sbin/losetup.orig ]
then
2010-09-07 13:11:20 +00:00
LB_LOSETUP = "losetup.orig"
2007-09-23 08:04:47 +00:00
elif [ -x /sbin/losetup ]
then
2010-09-07 13:11:20 +00:00
LB_LOSETUP = "losetup"
2007-09-23 08:04:47 +00:00
else
2008-08-12 20:36:48 +00:00
Echo_error "Can't process file /sbin/losetup"
2007-09-23 08:04:47 +00:00
fi
2007-09-23 08:04:46 +00:00
fi
2007-09-24 06:47:42 +00:00
if [ " $( id -u) " = "0" ]
2007-09-23 08:04:51 +00:00
then
2007-09-23 08:05:11 +00:00
# If we are root, disable root command
2010-09-07 13:11:20 +00:00
LB_ROOT_COMMAND = ""
2007-09-23 08:05:11 +00:00
else
if [ -x /usr/bin/sudo ]
then
2009-12-13 19:17:45 -01:00
# FIXME: this is false until considered safe
2010-09-07 13:11:20 +00:00
#LB_ROOT_COMMAND="sudo"
LB_ROOT_COMMAND = ""
2007-09-23 08:05:11 +00:00
fi
2007-09-23 08:04:51 +00:00
fi
2011-07-20 06:54:54 +00:00
if [ " ${ LB_ARCHITECTURE } " = "i386" ] && [ " $( uname -m) " = "x86_64" ]
then
2011-07-20 16:10:39 +00:00
_LINUX32 = "linux32"
else
_LINUX32 = ""
2011-07-20 06:54:54 +00:00
fi
2007-09-23 08:05:10 +00:00
# Setting tasksel
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
2011-05-16 20:08:22 +00:00
squeeze)
LB_TASKSEL = " ${ LB_TASKSEL :- tasksel } "
2011-05-16 14:03:56 +00:00
; ;
*)
2011-05-16 20:08:22 +00:00
LB_TASKSEL = " ${ LB_TASKSEL :- apt } "
2011-05-16 14:03:56 +00:00
; ;
esac
2007-09-23 08:04:52 +00:00
2007-09-23 08:04:47 +00:00
# Setting root directory
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:09:49 -01:00
debian)
2010-12-27 16:12:36 -01:00
LB_ROOT = " ${ LB_ROOT :- debian -live } "
; ;
2009-04-15 20:07:26 +00:00
2011-01-01 22:45:08 -01:00
progress)
LB_ROOT = " ${ LB_ROOT :- progress -linux } "
; ;
2010-12-27 16:12:36 -01:00
*)
LB_ROOT = " ${ LB_ROOT :- ${ LB_MODE } -live } "
; ;
esac
2007-09-23 08:04:49 +00:00
2007-09-23 08:04:52 +00:00
# Setting includes
2012-07-19 17:37:26 +00:00
if [ -n " ${ LIVE_BUID } " ]
then
LB_INCLUDES = " ${ LB_INCLUDES :- ${ LIVE_BUILD } /includes } "
else
LB_INCLUDES = " ${ LB_INCLUDES :- /usr/share/live/build/includes } "
fi
2007-09-23 08:04:52 +00:00
# Setting templates
2012-07-19 17:37:26 +00:00
if [ -n " ${ LIVE_BUID } " ]
then
LB_TEMPLATES = " ${ LB_TEMPLATES :- ${ LIVE_BUILD } /templates } "
else
LB_TEMPLATES = " ${ LB_TEMPLATES :- /usr/share/live/build/templates } "
fi
2007-09-23 08:04:52 +00:00
2010-09-13 19:49:20 +00:00
# Setting live build options
2009-12-13 19:17:45 -01:00
_BREAKPOINTS = " ${ _BREAKPOINTS :- false } "
2009-01-10 13:42:47 -01:00
_COLOR = " ${ _COLOR :- false } "
2009-12-13 19:17:45 -01:00
_DEBUG = " ${ _DEBUG :- false } "
_FORCE = " ${ _FORCE :- false } "
_QUIET = " ${ _QUIET :- false } "
_VERBOSE = " ${ _VERBOSE :- false } "
2007-09-23 08:04:46 +00:00
## config/bootstrap
2007-09-23 08:04:47 +00:00
# Setting architecture value
2010-12-05 12:27:08 -01:00
if [ -z " ${ LB_ARCHITECTURES } " ]
2007-09-23 08:04:46 +00:00
then
if [ -x "/usr/bin/dpkg" ]
then
2010-12-05 12:27:08 -01:00
LB_ARCHITECTURES = " $( dpkg --print-architecture) "
2007-09-23 08:04:46 +00:00
else
2008-08-31 22:46:38 +00:00
case " $( uname -m) " in
sparc| powerpc)
2010-12-05 12:27:08 -01:00
LB_ARCHITECTURES = " $( uname -m) "
2008-08-31 22:46:38 +00:00
; ;
x86_64)
2010-12-05 12:27:08 -01:00
LB_ARCHITECTURES = "amd64"
2008-08-31 22:46:38 +00:00
; ;
*)
2010-12-05 13:24:53 -01:00
if [ -e /lib64 ]
then
LB_ARCHITECTURES = "amd64"
else
LB_ARCHITECTURES = "i386"
fi
Echo_warning " Can't determine architecture, assuming ${ LB_ARCHITECTURES } "
2008-08-31 22:46:38 +00:00
; ;
esac
2007-09-23 08:04:46 +00:00
fi
fi
2007-09-23 08:04:48 +00:00
# Setting mirror to fetch packages from
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:18:27 -01:00
debian)
2012-03-04 19:05:37 -01:00
LB_MIRROR_BOOTSTRAP = " ${ LB_MIRROR_BOOTSTRAP :- http : //ftp.debian.org/debian/ } "
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BOOTSTRAP = " ${ LB_PARENT_MIRROR_BOOTSTRAP :- ${ LB_MIRROR_BOOTSTRAP } } "
2010-12-27 16:12:36 -01:00
; ;
2008-12-08 10:24:11 -01:00
2010-12-27 16:12:36 -01:00
emdebian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BOOTSTRAP = " ${ LB_MIRROR_BOOTSTRAP :- http : //www.emdebian.org/grip/ } "
LB_PARENT_MIRROR_BOOTSTRAP = " ${ LB_PARENT_MIRROR_BOOTSTRAP :- ${ LB_MIRROR_BOOTSTRAP } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2011-01-07 19:18:27 -01:00
progress)
2011-09-14 19:18:15 +00:00
LB_PARENT_MIRROR_BOOTSTRAP = " ${ LB_PARENT_MIRROR_BOOTSTRAP :- http : //ftp.debian.org/debian/ } "
2012-01-18 21:06:21 -01:00
LB_MIRROR_BOOTSTRAP = " ${ LB_MIRROR_BOOTSTRAP :- http : //cdn.archive.progress-linux.org/progress/ } "
2011-01-07 19:18:27 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BOOTSTRAP = " ${ LB_MIRROR_BOOTSTRAP :- http : //archive.ubuntu.com/ubuntu/ } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BOOTSTRAP = " ${ LB_MIRROR_BOOTSTRAP :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2011-02-14 11:48:45 -01:00
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BOOTSTRAP = " ${ LB_PARENT_MIRROR_BOOTSTRAP :- ${ LB_MIRROR_BOOTSTRAP } } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_CHROOT = " ${ LB_PARENT_MIRROR_CHROOT :- ${ LB_PARENT_MIRROR_BOOTSTRAP } } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_CHROOT = " ${ LB_MIRROR_CHROOT :- ${ LB_MIRROR_BOOTSTRAP } } "
2008-02-21 18:52:37 -01:00
2007-09-23 08:04:48 +00:00
# Setting security mirror to fetch packages from
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:18:27 -01:00
debian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_SECURITY = " ${ LB_MIRROR_CHROOT_SECURITY :- http : //security.debian.org/ } "
2012-01-22 20:57:45 -01:00
LB_PARENT_MIRROR_CHROOT_SECURITY = " ${ LB_PARENT_MIRROR_CHROOT_SECURITY :- ${ LB_MIRROR_CHROOT_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
2008-12-08 10:24:11 -01:00
2010-12-27 16:12:36 -01:00
emdebian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_SECURITY = " ${ LB_MIRROR_CHROOT_SECURITY :- none } "
2012-01-22 20:57:45 -01:00
LB_PARENT_MIRROR_CHROOT_SECURITY = " ${ LB_PARENT_MIRROR_CHROOT_SECURITY :- ${ LB_MIRROR_CHROOT_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2011-01-07 19:18:27 -01:00
progress)
2011-09-14 19:18:15 +00:00
LB_PARENT_MIRROR_CHROOT_SECURITY = " ${ LB_PARENT_MIRROR_CHROOT_SECURITY :- http : //security.debian.org/ } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_CHROOT_SECURITY = " ${ LB_MIRROR_CHROOT_SECURITY :- ${ LB_MIRROR_CHROOT } } "
2011-01-07 19:18:27 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_SECURITY = " ${ LB_MIRROR_CHROOT_SECURITY :- http : //security.ubuntu.com/ubuntu/ } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_SECURITY = " ${ LB_MIRROR_CHROOT_SECURITY :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2011-02-14 11:48:45 -01:00
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_CHROOT_SECURITY = " ${ LB_PARENT_MIRROR_CHROOT_SECURITY :- ${ LB_MIRROR_CHROOT_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2010-03-06 15:23:59 -01:00
# Setting volatile mirror to fetch packages from
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2012-01-12 11:19:20 -01:00
debian| progress)
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_CHROOT_VOLATILE = " ${ LB_PARENT_MIRROR_CHROOT_VOLATILE :- ${ LB_PARENT_MIRROR_CHROOT } } "
2011-08-13 07:08:04 +00:00
LB_MIRROR_CHROOT_VOLATILE = " ${ LB_MIRROR_CHROOT_VOLATILE :- ${ LB_MIRROR_CHROOT } } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-11 16:03:29 -01:00
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_VOLATILE = " ${ LB_MIRROR_CHROOT_VOLATILE :- http : //archive.ubuntu.com/ubuntu/ } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-11 16:03:29 -01:00
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_CHROOT_VOLATILE = " ${ LB_MIRROR_CHROOT_VOLATILE :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2011-02-14 11:48:45 -01:00
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_CHROOT_VOLATILE = " ${ LB_PARENT_MIRROR_CHROOT_VOLATILE :- ${ LB_PARENT_MIRROR_CHROOT } } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-06 15:23:59 -01:00
2010-12-27 16:12:36 -01:00
*)
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_CHROOT_VOLATILE = " ${ LB_PARENT_MIRROR_CHROOT_VOLATILE :- none } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_CHROOT_VOLATILE = " ${ LB_MIRROR_CHROOT_VOLATILE :- none } "
2010-12-27 16:12:36 -01:00
; ;
esac
2010-03-06 15:23:59 -01:00
2010-09-16 12:15:30 +00:00
# Setting backports mirror to fetch packages from
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:09:49 -01:00
debian)
2012-02-13 19:01:28 -01:00
LB_MIRROR_CHROOT_BACKPORTS = " ${ LB_MIRROR_CHROOT_BACKPORTS :- http : //backports.debian.org/debian-backports/ } "
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_CHROOT_BACKPORTS = " ${ LB_PARENT_MIRROR_CHROOT_BACKPORTS :- ${ LB_MIRROR_CHROOT_BACKPORTS } } "
2011-02-14 11:48:45 -01:00
; ;
progress)
LB_MIRROR_CHROOT_BACKPORTS = " ${ LB_MIRROR_CHROOT_BACKPORTS :- ${ LB_MIRROR_CHROOT } } "
2010-12-27 16:12:36 -01:00
; ;
2010-09-16 12:15:30 +00:00
2010-12-27 16:12:36 -01:00
*)
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_CHROOT_BACKPORTS = " ${ LB_PARENT_MIRROR_CHROOT_BACKPORTS :- none } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_CHROOT_BACKPORTS = " ${ LB_MIRROR_CHROOT_BACKPORTS :- none } "
2010-12-27 16:12:36 -01:00
; ;
esac
2010-09-16 12:15:30 +00:00
2007-09-23 08:04:48 +00:00
# Setting mirror which ends up in the image
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-02-14 11:48:45 -01:00
debian)
2012-08-14 21:15:25 +00:00
LB_MIRROR_BINARY = " ${ LB_MIRROR_BINARY :- http : //http.debian.net/debian/ } "
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BINARY = " ${ LB_PARENT_MIRROR_BINARY :- ${ LB_MIRROR_BINARY } } "
2011-02-14 11:48:45 -01:00
; ;
progress)
2011-09-14 19:18:15 +00:00
LB_PARENT_MIRROR_BINARY = " ${ LB_PARENT_MIRROR_BINARY :- http : //ftp.debian.org/debian/ } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_BINARY = " ${ LB_MIRROR_BINARY :- ${ LB_MIRROR_CHROOT } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
emdebian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY = " ${ LB_MIRROR_BINARY :- http : //www.emdebian.org/grip/ } "
LB_PARENT_MIRROR_BINARY = " ${ LB_PARENT_MIRROR_BINARY :- ${ LB_MIRROR_BINARY } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY = " ${ LB_MIRROR_BINARY :- http : //archive.ubuntu.com/ubuntu/ } "
2009-04-15 20:07:26 +00:00
; ;
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY = " ${ LB_MIRROR_BINARY :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2011-02-14 11:48:45 -01:00
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BINARY = " ${ LB_PARENT_MIRROR_BINARY :- ${ LB_MIRROR_BINARY } } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:04:48 +00:00
# Setting security mirror which ends up in the image
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:18:27 -01:00
debian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_SECURITY = " ${ LB_MIRROR_BINARY_SECURITY :- http : //security.debian.org/ } "
LB_PARENT_MIRROR_BINARY_SECURITY = " ${ LB_PARENT_MIRROR_BINARY_SECURITY :- ${ LB_MIRROR_BINARY_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
2008-12-08 10:24:11 -01:00
2010-12-27 16:12:36 -01:00
emdebian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_SECURITY = " ${ LB_MIRROR_BINARY_SECURITY :- none } "
LB_PARENT_MIRROR_BINARY_SECURITY = " ${ LB_PARENT_MIRROR_BINARY_SECURITY :- ${ LB_MIRROR_BINARY_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2011-01-07 19:18:27 -01:00
progress)
2011-09-14 19:18:15 +00:00
LB_PARENT_MIRROR_BINARY_SECURITY = " ${ LB_PARENT_MIRROR_BINARY_SECURITY :- http : //security.debian.org/ } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_BINARY_SECURITY = " ${ LB_MIRROR_BINARY_SECURITY :- ${ LB_MIRROR_CHROOT } } "
2011-01-07 19:18:27 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_SECURITY = " ${ LB_MIRROR_BINARY_SECURITY :- http : //security.ubuntu.com/ubuntu/ } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_SECURITY = " ${ LB_MIRROR_BINARY_SECURITY :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2011-02-14 11:48:45 -01:00
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BINARY_SECURITY = " ${ LB_PARENT_MIRROR_BINARY_SECURITY :- ${ LB_MIRROR_BINARY_SECURITY } } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2010-03-06 15:23:59 -01:00
# Setting volatile mirror which ends up in the image
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-02-14 11:48:45 -01:00
debian)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_VOLATILE = " ${ LB_MIRROR_BINARY_VOLATILE :- ${ LB_MIRROR_BINARY } } "
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_BINARY_VOLATILE = " ${ LB_PARENT_MIRROR_BINARY_VOLATILE :- ${ LB_PARENT_MIRROR_BINARY } } "
2011-02-14 11:48:45 -01:00
; ;
progress)
LB_PARENT_MIRROR_BINARY_VOLATILE = " ${ LB_PARENT_MIRROR_BINARY_VOLATILE :- ${ LB_PARENT_MIRROR_BINARY } } "
2011-08-13 07:08:04 +00:00
LB_MIRROR_BINARY_VOLATILE = " ${ LB_MIRROR_BINARY_VOLATILE :- ${ LB_MIRROR_BINARY } } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-11 16:03:29 -01:00
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_VOLATILE = " ${ LB_MIRROR_BINARY_VOLATILE :- http : //archive.ubuntu.com/ubuntu/ } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-11 16:03:29 -01:00
2010-12-27 16:12:36 -01:00
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_VOLATILE = " ${ LB_MIRROR_BINARY_VOLATILE :- http : //ports.ubuntu.com/ubuntu-ports/ } "
2010-12-27 16:12:36 -01:00
; ;
esac
2012-01-12 11:19:20 -01:00
2012-08-14 09:38:05 +00:00
LB_PARENT_MIRROR_BINARY_VOLATILE = " ${ LB_PARENT_MIRROR_BINARY_VOLATILE :- ${ LB_PARENT_MIRROR_BINARY } } "
2010-12-27 16:12:36 -01:00
; ;
2010-03-06 15:23:59 -01:00
2010-12-27 16:12:36 -01:00
*)
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_BINARY_VOLATILE = " ${ LB_PARENT_MIRROR_BINARY_VOLATILE :- none } "
2010-12-27 16:12:36 -01:00
; ;
esac
2010-03-06 15:23:59 -01:00
2010-09-16 12:15:30 +00:00
# Setting backports mirror which ends up in the image
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:09:49 -01:00
debian)
2012-08-14 21:15:25 +00:00
LB_MIRROR_BINARY_BACKPORTS = " ${ LB_MIRROR_BINARY_BACKPORTS :- http : //http.debian.net/debian-backports/ } "
2012-01-12 11:19:20 -01:00
LB_PARENT_MIRROR_BINARY_BACKPORTS = " ${ LB_PARENT_MIRROR_BINARY_BACKPORTS :- ${ LB_MIRROR_BINARY_BACKPORTS } } "
2011-02-14 11:48:45 -01:00
; ;
progress)
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_BACKPORTS = " ${ LB_MIRROR_BINARY_BACKPORTS :- ${ LB_MIRROR_BINARY } } "
2010-12-27 16:12:36 -01:00
; ;
2010-09-16 12:15:30 +00:00
2010-12-27 16:12:36 -01:00
*)
2011-02-14 11:11:26 -01:00
LB_PARENT_MIRROR_BINARY_BACKPORTS = " ${ LB_PARENT_MIRROR_BINARY_BACKPORTS :- none } "
2012-01-12 11:19:20 -01:00
LB_MIRROR_BINARY_BACKPORTS = " ${ LB_MIRROR_BINARY_BACKPORTS :- none } "
2010-12-27 16:12:36 -01:00
; ;
esac
2010-09-16 12:15:30 +00:00
2011-02-14 11:48:45 -01:00
case " ${ LB_MODE } " in
progress)
2011-10-30 06:46:02 -01:00
LB_PARENT_MIRROR_DEBIAN_INSTALLER = " ${ LB_PARENT_MIRROR_DEBIAN_INSTALLER :- ${ LB_MIRROR_CHROOT } } "
2011-02-14 11:48:45 -01:00
LB_MIRROR_DEBIAN_INSTALLER = " ${ LB_MIRROR_DEBIAN_INSTALLER :- ${ LB_MIRROR_CHROOT } } "
; ;
*)
2012-01-12 11:19:20 -01:00
LB_MIRROR_DEBIAN_INSTALLER = " ${ LB_MIRROR_DEBIAN_INSTALLER :- ${ LB_MIRROR_CHROOT } } "
2011-07-21 16:44:22 +00:00
LB_PARENT_MIRROR_DEBIAN_INSTALLER = " ${ LB_PARENT_MIRROR_DEBIAN_INSTALLER :- ${ LB_PARENT_MIRROR_CHROOT } } "
2011-02-14 11:48:45 -01:00
; ;
esac
2010-03-04 11:22:15 -01:00
2009-11-22 12:40:20 -01:00
# Setting archive areas value
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-03-24 18:25:34 -01:00
progress)
2011-12-30 07:41:31 -01:00
LB_ARCHIVE_AREAS = " ${ LB_ARCHIVE_AREAS :- main contrib non-free } "
2011-11-29 11:06:11 -01:00
LB_PARENT_ARCHIVE_AREAS = " ${ LB_PARENT_ARCHIVE_AREAS :- ${ LB_ARCHIVE_AREAS } } "
2011-03-24 18:25:34 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2011-11-29 11:06:11 -01:00
LB_ARCHIVE_AREAS = " ${ LB_ARCHIVE_AREAS :- main restricted } "
LB_PARENT_ARCHIVE_AREAS = " ${ LB_PARENT_ARCHIVE_AREAS :- ${ LB_ARCHIVE_AREAS } } "
2010-12-27 16:12:36 -01:00
; ;
2009-04-17 19:32:48 +00:00
2010-12-27 16:12:36 -01:00
*)
2011-11-29 11:06:11 -01:00
LB_ARCHIVE_AREAS = " ${ LB_ARCHIVE_AREAS :- main } "
LB_PARENT_ARCHIVE_AREAS = " ${ LB_PARENT_ARCHIVE_AREAS :- ${ LB_ARCHIVE_AREAS } } "
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
## config/chroot
2007-09-23 08:05:10 +00:00
# Setting chroot filesystem
2010-09-07 13:11:20 +00:00
LB_CHROOT_FILESYSTEM = " ${ LB_CHROOT_FILESYSTEM :- squashfs } "
2007-09-23 08:05:10 +00:00
2007-10-23 20:56:43 +00:00
# Setting whether to expose root filesystem as read only
2010-09-07 13:11:20 +00:00
LB_EXPOSED_ROOT = " ${ LB_EXPOSED_ROOT :- false } "
2007-10-23 20:56:43 +00:00
2007-09-23 08:05:13 +00:00
# Setting union filesystem
2010-09-07 13:11:20 +00:00
LB_UNION_FILESYSTEM = " ${ LB_UNION_FILESYSTEM :- aufs } "
2007-09-23 08:05:13 +00:00
2011-07-19 09:57:14 +00:00
# Setting distribution hooks
case " ${ LB_MODE } " in
*)
2011-08-04 19:47:46 +00:00
LB_CHROOT_HOOKS = " ${ LB_CHROOT_HOOKS :- update -apt-file-cache \
2011-08-04 19:49:34 +00:00
update-apt-xapian-index \
update-mlocate-database \
2011-10-22 16:06:03 +00:00
remove-dbus-machine-id \
2011-08-23 15:10:38 +00:00
remove-openssh-server-host-keys \
2011-08-23 15:13:45 +00:00
remove-python-py \
remove-udev-persistent-rules} "
2011-07-19 09:57:14 +00:00
; ;
kubuntu)
2011-08-04 19:47:46 +00:00
LB_CHROOT_HOOKS = " ${ LB_CHROOT_HOOKS :- update -apt-file-cache \
2011-08-04 19:49:34 +00:00
update-apt-xapian-index \
update-mlocate-database \
2011-10-22 16:06:03 +00:00
remove-dbus-machine-id \
2011-08-04 19:49:34 +00:00
remove-gnome-icon-cache \
2011-08-23 15:10:38 +00:00
remove-openssh-server-host-keys \
2011-08-23 15:13:45 +00:00
remove-python-py \
remove-udev-persistent-rules} "
2011-07-19 09:57:14 +00:00
; ;
esac
2007-09-23 08:05:10 +00:00
2007-09-23 08:04:48 +00:00
# Setting interactive shell/X11/Xnest
2010-09-07 13:11:20 +00:00
LB_INTERACTIVE = " ${ LB_INTERACTIVE :- false } "
2007-09-23 08:04:48 +00:00
2007-09-23 08:05:10 +00:00
# Setting keyring packages
2010-09-07 13:11:20 +00:00
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2011-02-14 11:48:45 -01:00
LB_KEYRING_PACKAGES = " ${ LB_KEYRING_PACKAGES :- ubuntu -keyring } "
2007-09-23 08:05:17 +00:00
; ;
2008-12-08 10:24:11 -01:00
2011-02-14 11:48:45 -01:00
*)
2010-09-07 13:11:20 +00:00
LB_KEYRING_PACKAGES = " ${ LB_KEYRING_PACKAGES :- debian -archive-keyring } "
2008-12-08 10:24:11 -01:00
; ;
2007-09-23 08:05:17 +00:00
esac
2007-09-23 08:05:10 +00:00
# Setting linux flavour string
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
armel)
2011-09-29 19:04:17 +00:00
case " ${ LB_MODE } " in
ubuntu| kubuntu)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- omap } "
; ;
*)
# armel will have special images: one rootfs image and many additional kernel images.
# therefore we default to all available armel flavours
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- iop32x ixp4xx kirkwood orion5x versatile } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
2010-02-17 12:57:12 -01:00
2012-01-12 09:42:09 -01:00
armhf)
# armhf will have special images: one rootfs image and many additional kernel images.
# therefore we default to all available armel flavours
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- mx5 omap } "
; ;
2010-12-27 16:12:36 -01:00
amd64)
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- generic } "
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- amd64 } "
; ;
esac
; ;
2007-09-23 08:04:46 +00:00
2010-12-27 16:12:36 -01:00
i386)
case " ${ LB_MODE } " in
2011-01-01 22:45:08 -01:00
progress)
2011-06-05 09:14:08 +00:00
case " ${ LB_DISTRIBUTION } " in
artax)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- 686 } "
; ;
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- 686 -pae } "
; ;
esac
2011-01-01 22:45:08 -01:00
; ;
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- generic } "
; ;
2008-09-03 09:02:30 +00:00
2010-12-27 16:12:36 -01:00
*)
case " ${ LIST } " in
stripped| minimal)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- 486 } "
; ;
2007-09-23 08:04:46 +00:00
2010-12-27 16:12:36 -01:00
*)
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
squeeze)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- 486 686 } "
2011-06-05 09:15:17 +00:00
; ;
*)
2012-07-27 21:29:19 +00:00
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- 486 686-pae } "
2011-06-05 09:15:17 +00:00
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
esac
; ;
esac
; ;
2007-09-23 08:04:46 +00:00
2010-12-27 16:12:36 -01:00
ia64)
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
Echo_error " Architecture ${ LB_ARCHITECTURES } not supported in the ${ LB_MODE } mode. "
exit 1
; ;
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- itanium } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
2008-09-03 09:02:30 +00:00
2010-12-27 16:12:36 -01:00
powerpc)
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
Echo_error " Architecture ${ LB_ARCHITECTURES } not supported in the ${ LB_MODE } mode. "
exit 1
; ;
2007-09-23 08:04:46 +00:00
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2011-06-10 13:34:00 +00:00
case " ${ LIST } " in
stripped| minimal)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- powerpc } "
2011-06-11 11:27:35 +00:00
; ;
2011-06-10 13:34:00 +00:00
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- powerpc powerpc64-smp } "
; ;
esac
; ;
2010-12-27 16:12:36 -01:00
*)
2011-01-01 22:45:08 -01:00
case " ${ LIST } " in
stripped| minimal)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- powerpc } "
2011-06-11 11:27:35 +00:00
; ;
2011-01-01 22:45:08 -01:00
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- powerpc powerpc64 } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
esac
; ;
2009-04-15 20:07:26 +00:00
2010-12-27 16:12:36 -01:00
s390)
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
progress| ubuntu| kubuntu)
2011-01-01 22:45:08 -01:00
Echo_error " Architecture ${ LB_ARCHITECTURES } not supported in the ${ LB_MODE } mode. "
2010-12-27 16:12:36 -01:00
exit 1
; ;
2007-09-23 08:04:46 +00:00
2010-12-27 16:12:36 -01:00
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- s390 } "
; ;
esac
; ;
2007-09-23 08:04:46 +00:00
2010-12-27 16:12:36 -01:00
sparc)
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
Echo_error " Architecture ${ LB_ARCHITECTURES } not supported in the ${ LB_MODE } mode. "
exit 1
; ;
*)
LB_LINUX_FLAVOURS = " ${ LB_LINUX_FLAVOURS :- sparc64 } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
*)
Echo_error " Architecture(s) ${ LB_ARCHITECTURES } not yet supported (FIXME) "
exit 1
; ;
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Set linux packages
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
ubuntu| kubuntu)
2010-12-27 16:12:36 -01:00
LB_LINUX_PACKAGES = " ${ LB_LINUX_PACKAGES :- linux } "
; ;
2007-09-23 08:04:49 +00:00
2010-12-27 16:12:36 -01:00
*)
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
squeeze)
2012-04-23 10:35:10 +00:00
LB_LINUX_PACKAGES = " ${ LB_LINUX_PACKAGES :- linux -image-2.6 } "
; ;
*)
LB_LINUX_PACKAGES = " ${ LB_LINUX_PACKAGES :- linux -image } "
; ;
esac
2010-12-27 16:12:36 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
# Setting security updates option
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
jessie| sid)
2011-03-21 18:36:50 -01:00
LB_SECURITY = " ${ LB_SECURITY :- false } "
; ;
*)
LB_SECURITY = " ${ LB_SECURITY :- true } "
; ;
esac
2007-09-23 08:04:46 +00:00
2010-03-06 15:23:59 -01:00
# Setting volatile updates option
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
2012-07-30 00:47:36 +00:00
wheezy| jessie| sid)
2011-03-21 18:36:50 -01:00
LB_VOLATILE = " ${ LB_VOLATILE :- false } "
; ;
*)
LB_VOLATILE = " ${ LB_VOLATILE :- true } "
; ;
esac
2010-03-06 15:23:59 -01:00
2007-09-23 08:05:10 +00:00
## config/binary
2007-11-16 21:01:03 -01:00
# Setting image filesystem
2010-12-05 12:27:08 -01:00
case " ${ LB_ARCHITECTURES } " in
2008-06-15 15:27:35 +00:00
sparc)
2011-08-25 21:47:30 +00:00
LB_BINARY_FILESYSTEM = " ${ LB_BINARY_FILESYSTEM :- ext4 } "
2008-06-15 15:27:35 +00:00
; ;
2009-04-15 20:07:26 +00:00
2008-06-15 15:27:35 +00:00
*)
2010-09-07 13:11:20 +00:00
LB_BINARY_FILESYSTEM = " ${ LB_BINARY_FILESYSTEM :- fat16 } "
2008-06-15 15:27:35 +00:00
; ;
esac
2007-11-16 21:01:03 -01:00
2007-09-23 08:05:10 +00:00
# Setting image type
2010-12-27 16:12:36 -01:00
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
LB_BINARY_IMAGES = " ${ LB_BINARY_IMAGES :- iso -hybrid } "
2010-02-18 15:34:29 -01:00
; ;
*)
2010-09-07 13:11:20 +00:00
LB_BINARY_IMAGES = " ${ LB_BINARY_IMAGES :- iso } "
2010-02-18 15:34:29 -01:00
; ;
esac
2007-09-23 08:05:10 +00:00
# Setting apt indices
2011-01-07 20:14:16 -01:00
case " ${ LB_MODE } " in
progress)
LB_APT_INDICES = " ${ LB_APT_INDICES :- none } "
; ;
*)
2011-08-24 21:16:13 +00:00
LB_APT_INDICES = " ${ LB_APT_INDICES :- true } "
2011-01-07 20:14:16 -01:00
; ;
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Setting bootloader
2010-09-07 13:11:20 +00:00
if [ -z " ${ LB_BOOTLOADER } " ]
2007-09-23 08:05:10 +00:00
then
2010-12-05 12:27:08 -01:00
case " ${ LB_ARCHITECTURES } " in
2009-12-09 19:54:41 -01:00
amd64| i386)
2010-09-07 13:11:20 +00:00
LB_BOOTLOADER = "syslinux"
2007-09-23 08:05:10 +00:00
; ;
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
powerpc)
2010-09-07 13:11:20 +00:00
LB_BOOTLOADER = "yaboot"
2007-09-23 08:05:10 +00:00
; ;
2008-06-15 03:46:51 +00:00
sparc)
2010-09-07 13:11:20 +00:00
LB_BOOTLOADER = "silo"
2008-06-15 03:46:51 +00:00
; ;
2007-09-23 08:05:10 +00:00
esac
fi
2007-11-12 21:00:48 -01:00
# Setting checksums
2012-06-05 15:42:07 +00:00
LB_CHECKSUMS = " ${ LB_CHECKSUMS :- sha256 } "
2007-11-12 21:00:48 -01:00
2011-01-01 22:36:20 -01:00
# Setting compression
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
2011-01-08 11:30:25 -01:00
LB_COMPRESSION = " ${ LB_COMPRESSION :- none } "
2011-01-01 22:45:08 -01:00
; ;
*)
2012-07-27 21:29:19 +00:00
case " ${ LB_PARENT_DISTRIBUTION } " in
2012-07-18 17:45:14 +00:00
squeeze)
LB_COMPRESSION = " ${ LB_COMPRESSION :- gzip } "
; ;
*)
LB_COMPRESSION = " ${ LB_COMPRESSION :- xz } "
; ;
esac
2011-01-01 22:45:08 -01:00
; ;
esac
2011-01-01 22:36:20 -01:00
2012-07-18 17:09:16 +00:00
# Setting zsync
LB_ZSYNC = " ${ LB_ZSYNC :- true } "
2007-09-23 08:05:15 +00:00
# Setting chroot option
2010-09-07 13:11:20 +00:00
LB_BUILD_WITH_CHROOT = " ${ LB_BUILD_WITH_CHROOT :- true } "
2007-09-23 08:05:15 +00:00
2010-10-28 07:51:55 +00:00
LB_BUILD_WITH_TMPFS = " ${ LB_BUILD_WITH_TMPFS :- false } "
2007-09-23 08:05:10 +00:00
# Setting debian-installer option
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
2011-03-21 18:31:51 -01:00
progress)
2011-01-01 22:45:08 -01:00
LB_DEBIAN_INSTALLER = " ${ LB_DEBIAN_INSTALLER :- live } "
; ;
*)
LB_DEBIAN_INSTALLER = " ${ LB_DEBIAN_INSTALLER :- false } "
; ;
esac
2007-09-23 08:04:48 +00:00
2011-02-14 10:29:25 -01:00
LB_DEBIAN_INSTALLER_DISTRIBUTION = " ${ LB_DEBIAN_INSTALLER_DISTRIBUTION :- ${ LB_DISTRIBUTION } } "
2008-08-10 00:38:06 +00:00
2009-09-02 05:39:13 +00:00
# Setting debian-installer-gui
2010-09-07 13:11:20 +00:00
case " ${ LB_MODE } " in
2011-01-07 19:09:49 -01:00
debian| progress)
2010-09-30 05:04:55 +00:00
LB_DEBIAN_INSTALLER_GUI = " ${ LB_DEBIAN_INSTALLER_GUI :- true } "
2010-09-26 10:38:38 +00:00
; ;
2009-09-02 05:39:13 +00:00
*)
2010-09-07 13:11:20 +00:00
LB_DEBIAN_INSTALLER_GUI = " ${ LB_DEBIAN_INSTALLER_GUI :- false } "
2009-09-02 05:39:13 +00:00
; ;
esac
2008-08-12 20:04:25 +00:00
# Setting debian-installer preseed filename
2010-09-07 13:11:20 +00:00
if [ -z " ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } " ]
2008-08-12 20:04:25 +00:00
then
if Find_files config/binary_debian-installer/preseed.cfg
then
2010-09-07 13:11:20 +00:00
LB_DEBIAN_INSTALLER_PRESEEDFILE = "/preseed.cfg"
2008-08-12 20:04:25 +00:00
fi
if Find_files config/binary_debian-installer/*.cfg && [ ! -e config/binary_debian-installer/preseed.cfg ]
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have placed some preseeding files into config/binary_debian-installer but you didn't specify the default preseeding file through LB_DEBIAN_INSTALLER_PRESEEDFILE. This means that debian-installer will not take up a preseeding file by default."
2008-08-12 20:04:25 +00:00
fi
fi
# Setting boot parameters
2012-04-27 18:31:49 +00:00
LB_BOOTAPPEND_FAILSAFE = " ${ LB_BOOTAPPEND_FAILSAFE :- memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal } "
2010-09-07 13:11:20 +00:00
# LB_BOOTAPPEND_LIVE
if [ -n " ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } " ]
2008-08-12 20:04:25 +00:00
then
2010-09-07 13:11:20 +00:00
case " ${ LB_BINARY_IMAGES } " in
2010-02-18 15:34:29 -01:00
iso*)
2010-09-07 13:11:20 +00:00
_LB_BOOTAPPEND_PRESEED = " file=/cdrom/install/ ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
2008-08-12 20:04:25 +00:00
; ;
2011-09-13 07:10:28 +00:00
hdd*)
2011-07-19 08:51:20 +00:00
case " ${ LB_MODE } " in
ubuntu| kubuntu)
if [ " ${ LB_DEBIAN_INSTALLER } " = "live" ]
then
_LB_BOOTAPPEND_PRESEED = " file=/cdrom/install/ ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
else
_LB_BOOTAPPEND_PRESEED = " file=/hd-media/install/ ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
fi
; ;
*)
_LB_BOOTAPPEND_PRESEED = " file=/hd-media/install/ ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
; ;
esac
2008-08-12 20:11:18 +00:00
; ;
2012-07-18 17:11:55 +00:00
netboot)
2010-09-07 13:11:20 +00:00
case " ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } " in
2008-08-12 20:21:40 +00:00
*://*)
2010-09-07 13:11:20 +00:00
_LB_BOOTAPPEND_PRESEED = " file= ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
2008-08-12 20:21:40 +00:00
; ;
*)
2010-09-07 13:11:20 +00:00
_LB_BOOTAPPEND_PRESEED = " file=/ ${ LB_DEBIAN_INSTALLER_PRESEEDFILE } "
2008-08-12 20:21:40 +00:00
; ;
esac
2008-08-12 20:04:25 +00:00
; ;
esac
fi
2010-09-07 13:11:20 +00:00
if [ -n ${ _LB_BOOTAPPEND_PRESEED } ]
2009-11-13 07:27:00 -01:00
then
2010-09-07 13:11:20 +00:00
LB_BOOTAPPEND_INSTALL = " ${ LB_BOOTAPPEND_INSTALL } ${ _LB_BOOTAPPEND_PRESEED } "
2009-11-13 07:27:00 -01:00
fi
2008-08-12 20:04:25 +00:00
2010-09-07 13:11:20 +00:00
LB_BOOTAPPEND_INSTALL = " $( echo ${ LB_BOOTAPPEND_INSTALL } | sed -e 's/[ \t]*$//' ) "
2010-02-17 10:23:34 -01:00
2007-09-23 08:05:10 +00:00
# Setting grub splash
2010-09-07 13:11:20 +00:00
# LB_GRUB_SPLASH
2007-09-23 08:05:10 +00:00
# Setting iso author
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-01-07 19:09:49 -01:00
debian)
2010-12-27 16:12:36 -01:00
LB_ISO_APPLICATION = " ${ LB_ISO_APPLICATION :- Debian Live } "
; ;
2008-12-08 10:24:11 -01:00
2010-12-27 16:12:36 -01:00
emdebian)
LB_ISO_APPLICATION = " ${ LB_ISO_APPLICATION :- Emdebian Live } "
; ;
2009-04-15 20:07:26 +00:00
2011-01-01 22:45:08 -01:00
progress)
LB_ISO_APPLICATION = " ${ LB_ISO_APPLICATION :- Progress Linux } "
; ;
2010-12-27 16:12:36 -01:00
ubuntu)
LB_ISO_APPLICATION = " ${ LB_ISO_APPLICATION :- Ubuntu Live } "
; ;
2011-07-19 08:51:20 +00:00
kubuntu)
LB_ISO_APPLICATION = " ${ LB_ISO_APPLICATION :- Kubuntu Live } "
; ;
2010-12-27 16:12:36 -01:00
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Set iso preparer
2010-09-07 13:11:20 +00:00
LB_ISO_PREPARER = " ${ LB_ISO_PREPARER :- live -build \$ VERSION ; http : //packages.qa.debian.org/live-build } "
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Set iso publisher
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
LB_ISO_PUBLISHER = " ${ LB_ISO_PUBLISHER :- Progress Linux; http : //www.progress-linux.org/; progress-project@lists.progress-linux.org } "
; ;
*)
LB_ISO_PUBLISHER = " ${ LB_ISO_PUBLISHER :- Debian Live project; http : //live.debian.net/; debian-live@lists.debian.org } "
; ;
esac
2007-09-23 08:04:52 +00:00
2011-09-12 07:19:30 +00:00
# Setting hdd options
case " ${ LB_MODE } " in
debian)
LB_HDD_LABEL = " ${ LB_HDD_LABEL :- DEBIAN_LIVE } "
; ;
emdebian)
LB_HDD_LABEL = " ${ LB_HDD_LABEL :- EMDEBIAN_LIVE } "
; ;
progress)
2011-09-13 06:58:30 +00:00
LB_HDD_LABEL = " ${ LB_HDD_LABEL :- PROGRESS_ $( echo ${ LB_DISTRIBUTION } | tr [ a-z] [ A-Z] ) } "
2011-09-12 07:19:30 +00:00
; ;
ubuntu)
LB_HDD_LABEL = " ${ LB_HDD_LABEL :- UBUNTU } "
; ;
kubuntu)
LB_HDD_LABEL = " ${ LB_HDD_LABEL :- KUBUNTU } "
; ;
esac
2011-09-28 09:37:56 +00:00
# Setting hdd size
LB_HDD_SIZE = " ${ LB_HDD_SIZE :- 10000 } "
2007-09-23 08:04:46 +00:00
# Setting iso volume
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
debian)
LB_ISO_VOLUME = " ${ LB_ISO_VOLUME :- Debian ${ LB_DISTRIBUTION } \$ (date +%Y%m%d-%H : %M) } "
; ;
2008-12-08 10:24:11 -01:00
2010-12-27 16:12:36 -01:00
emdebian)
LB_ISO_VOLUME = " ${ LB_ISO_VOLUME :- Emdebian ${ LB_DISTRIBUTION } \$ (date +%Y%m%d-%H : %M) } "
; ;
2009-04-15 20:07:26 +00:00
2011-01-01 22:45:08 -01:00
progress)
2011-01-07 21:25:37 -01:00
LB_ISO_VOLUME = " ${ LB_ISO_VOLUME :- Progress ${ LB_DISTRIBUTION } } "
2011-01-01 22:45:08 -01:00
; ;
2010-12-27 16:12:36 -01:00
ubuntu)
LB_ISO_VOLUME = " ${ LB_ISO_VOLUME :- Ubuntu ${ LB_DISTRIBUTION } \$ (date +%Y%m%d-%H : %M) } "
; ;
2011-07-19 08:51:20 +00:00
kubuntu)
LB_ISO_VOLUME = " ${ LB_ISO_VOLUME :- Ubuntu ${ LB_DISTRIBUTION } \$ (date +%Y%m%d-%H : %M) } "
; ;
2010-12-27 16:12:36 -01:00
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Setting memtest option
2010-09-07 13:11:20 +00:00
LB_MEMTEST = " ${ LB_MEMTEST :- memtest86 + } "
2007-09-23 08:04:46 +00:00
2008-08-14 19:33:56 +00:00
# Setting win32-loader option
2010-12-27 16:12:36 -01:00
case " ${ LB_MODE } " in
2011-07-19 08:51:20 +00:00
progress| ubuntu| kubuntu)
2011-01-07 19:56:33 -01:00
2010-12-27 16:12:36 -01:00
; ;
2008-08-14 19:33:56 +00:00
2010-12-27 16:12:36 -01:00
*)
case " ${ LB_ARCHITECTURES } " in
amd64| i386)
if [ " ${ LB_DEBIAN_INSTALLER } " != "false" ]
then
LB_WIN32_LOADER = " ${ LB_WIN32_LOADER :- true } "
else
LB_WIN32_LOADER = " ${ LB_WIN32_LOADER :- false } "
fi
; ;
*)
LB_WIN32_LOADER = " ${ LB_WIN32_LOADER :- false } "
; ;
esac
; ;
esac
2008-08-14 19:33:56 +00:00
2007-09-23 08:05:14 +00:00
# Setting netboot filesystem
2010-09-07 13:11:20 +00:00
LB_NET_ROOT_FILESYSTEM = " ${ LB_NET_ROOT_FILESYSTEM :- nfs } "
2007-09-23 08:05:14 +00:00
2007-09-23 08:04:46 +00:00
# Setting netboot server path
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
LB_NET_ROOT_PATH = " ${ LB_NET_ROOT_PATH :- /srv/progress-linux } "
; ;
*)
LB_NET_ROOT_PATH = " ${ LB_NET_ROOT_PATH :- /srv/ ${ LB_MODE } -live } "
; ;
esac
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Setting netboot server address
2010-09-07 13:11:20 +00:00
LB_NET_ROOT_SERVER = " ${ LB_NET_ROOT_SERVER :- 192 .168.1.1 } "
2007-10-30 17:17:16 -01:00
# Setting net cow filesystem
2010-09-07 13:11:20 +00:00
LB_NET_COW_FILESYSTEM = " ${ LB_NET_COW_FILESYSTEM :- nfs } "
2007-09-23 08:05:10 +00:00
2008-02-26 17:57:41 -01:00
# Setting net tarball
2011-01-01 22:36:20 -01:00
LB_NET_TARBALL = " ${ LB_NET_TARBALL :- true } "
2008-02-26 17:57:41 -01:00
2010-11-02 09:19:42 -01:00
# Setting syslinux theme package
2011-01-01 22:45:08 -01:00
case " ${ LB_MODE } " in
progress)
LB_SYSLINUX_THEME = " ${ LB_SYSLINUX_THEME :- progress -standard } "
; ;
2011-09-30 10:07:33 +00:00
ubuntu)
LB_SYSLINUX_THEME = " ${ LB_SYSLINUX_THEME :- ubuntu -oneiric } "
; ;
2011-01-01 22:45:08 -01:00
*)
2012-01-22 18:52:33 -01:00
LB_SYSLINUX_THEME = " ${ LB_SYSLINUX_THEME :- live -build } "
2011-01-01 22:45:08 -01:00
; ;
esac
2007-09-19 00:42:09 +00:00
2012-04-26 17:52:15 +00:00
# Setting firmware option
2012-06-03 06:24:31 +00:00
case " ${ LB_MODE } " in
ubuntu)
LB_FIRMWARE_CHROOT = " ${ LB_FIRMWARE_CHROOT :- false } "
LB_FIRMWARE_BINARY = " ${ LB_FIRMWARE_BINARY :- false } "
; ;
*)
LB_FIRMWARE_CHROOT = " ${ LB_FIRMWARE_CHROOT :- true } "
LB_FIRMWARE_BINARY = " ${ LB_FIRMWARE_BINARY :- true } "
; ;
esac
2012-04-26 17:52:15 +00:00
2011-06-08 10:30:29 +00:00
# Setting swap file
LB_SWAP_FILE_SIZE = " ${ LB_SWAP_FILE_SIZE :- 512 } "
2007-09-23 08:05:10 +00:00
## config/source
2007-09-23 08:04:46 +00:00
# Setting source option
2010-09-07 13:11:20 +00:00
LB_SOURCE = " ${ LB_SOURCE :- false } "
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:10 +00:00
# Setting image type
2010-09-07 13:11:20 +00:00
LB_SOURCE_IMAGES = " ${ LB_SOURCE_IMAGES :- tar } "
2007-11-10 16:39:49 -01:00
# Setting fakeroot/fakechroot
2010-09-07 13:11:20 +00:00
LB_USE_FAKEROOT = " ${ LB_USE_FAKEROOT :- false } "
2007-09-23 08:04:46 +00:00
}
2007-11-11 12:14:25 -01:00
Check_defaults ( )
{
2010-09-07 13:11:20 +00:00
if [ " ${ LB_CONFIG_VERSION } " ]
2009-10-30 10:29:05 -01:00
then
# We're only checking when we're actually running the checks
# that's why the check for emptyness of the version;
2010-09-07 13:11:20 +00:00
# however, as live-build always declares LB_CONFIG_VERSION
2009-10-30 10:29:05 -01:00
# internally, this is safe assumption (no cases where it's unset,
# except when bootstrapping the functions/defaults etc.).
2010-09-07 13:11:20 +00:00
CURRENT_CONFIG_VERSION = " $( echo ${ LB_CONFIG_VERSION } | awk -F. '{ print $1 }' ) "
2009-10-30 10:29:05 -01:00
2010-09-26 14:14:06 +00:00
if [ ${ CURRENT_CONFIG_VERSION } -ge 4 ]
2009-10-30 10:29:05 -01:00
then
2010-09-02 11:22:22 +00:00
Echo_error " This config tree is too new for this version of live-build ( ${ VERSION } ). "
Echo_error "Aborting build, please get a new version of live-build."
2009-10-30 10:29:05 -01:00
2009-11-16 06:28:06 -01:00
exit 1
2010-09-26 14:14:06 +00:00
elif [ ${ CURRENT_CONFIG_VERSION } -eq 2 ]
2009-11-16 06:28:06 -01:00
then
2010-09-02 11:22:22 +00:00
Echo_error " This config tree is too old for this version of live-build ( ${ VERSION } ). "
2009-11-16 06:28:06 -01:00
Echo_error "Aborting build, please repopulate the config tree."
2009-10-30 10:29:05 -01:00
exit 1
elif [ ${ CURRENT_CONFIG_VERSION } -lt 1 ]
then
Echo_warning "This config tree does not specify a format version or has an unknown version number."
2009-11-01 09:43:32 -01:00
Echo_warning "Continuing build, but it could lead to errors or different results. Please repopulate the config tree."
2009-10-30 10:29:05 -01:00
fi
fi
2010-09-07 13:11:20 +00:00
if [ " ${ LB_DEBIAN_INSTALLER } " != "false" ]
2008-08-07 19:06:39 +00:00
then
2009-12-13 19:17:45 -01:00
# d-i true, no caching
2010-09-07 13:11:20 +00:00
if ! echo ${ LB_CACHE_STAGES } | grep -qs "bootstrap\b" || [ " ${ LB_CACHE } " != "true" ] || [ " ${ LB_CACHE_PACKAGES } " != "true" ]
2008-08-07 19:06:39 +00:00
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have selected values of LB_CACHE, LB_CACHE_PACKAGES, LB_CACHE_STAGES and LB_DEBIAN_INSTALLER which will result in 'bootstrap' packages not being cached. This configuration is potentially unsafe as the bootstrap packages are re-used when integrating the Debian Installer."
2008-08-07 19:06:39 +00:00
fi
fi
2008-09-07 14:41:36 +00:00
2010-09-07 13:11:20 +00:00
if [ " ${ LB_BOOTLOADER } " = "syslinux" ]
2008-09-07 14:41:36 +00:00
then
2009-01-14 18:26:34 -01:00
# syslinux + fat
2010-09-07 13:11:20 +00:00
case " ${ LB_BINARY_FILESYSTEM } " in
2012-07-18 20:27:30 +00:00
fat*| ntfs)
2008-09-07 14:41:36 +00:00
; ;
*)
2012-07-18 20:27:30 +00:00
Echo_warning "You have selected values of LB_BOOTLOADER and LB_BINARY_FILESYSTEM which are incompatible - syslinux only supports FAT and NTFS filesystems."
2008-09-07 14:41:36 +00:00
; ;
esac
fi
2009-01-14 18:30:21 -01:00
2010-09-07 13:11:20 +00:00
case " ${ LB_BINARY_IMAGES } " in
2011-09-13 07:10:28 +00:00
hdd*)
# grub or yaboot + hdd
2010-09-07 13:11:20 +00:00
case " ${ LB_BOOTLOADER } " in
2010-02-18 15:12:59 -01:00
grub| yaboot)
2010-09-02 11:22:22 +00:00
Echo_error "You have selected a combination of bootloader and image type that is currently not supported by live-build. Please use either another bootloader or a different image type."
2010-02-18 15:12:59 -01:00
exit 1
; ;
esac
; ;
esac
2009-02-18 17:21:49 -01:00
2011-09-22 19:02:32 +00:00
if [ " $( echo \" ${ LB_ISO_APPLICATION } \" | wc -c) " -gt 128 ]
2009-02-18 17:21:49 -01:00
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have specified a value of LB_ISO_APPLICATION that is too long; the maximum length is 128 characters."
2009-02-18 17:21:49 -01:00
fi
2011-09-22 19:02:32 +00:00
if [ " $( echo \" ${ LB_ISO_PREPARER } \" | wc -c) " -gt 128 ]
2009-02-18 17:21:49 -01:00
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have specified a value of LB_ISO_PREPARER that is too long; the maximum length is 128 characters."
2009-02-18 17:21:49 -01:00
fi
2011-09-22 19:02:32 +00:00
if [ " $( echo \" ${ LB_ISO_PUBLISHER } \" | wc -c) " -gt 128 ]
2009-02-18 17:21:49 -01:00
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have specified a value of LB_ISO_PUBLISHER that is too long; the maximum length is 128 characters."
2009-02-18 17:21:49 -01:00
fi
2011-09-22 19:02:32 +00:00
if [ " $( eval " echo \" ${ LB_ISO_VOLUME } \" " | wc -c) " -gt 32 ]
2009-02-18 17:21:49 -01:00
then
2010-09-07 13:11:20 +00:00
Echo_warning "You have specified a value of LB_ISO_VOLUME that is too long; the maximum length is 32 characters."
2009-02-18 17:21:49 -01:00
fi
2009-05-09 21:36:30 +00:00
2011-09-30 22:24:08 +00:00
# Architectures to use foreign bootstrap for
LB_BOOTSTRAP_QEMU_ARCHITECTURES = " ${ LB_BOOTSTRAP_QEMU_ARCHITECTURES :- } "
# Packages to exclude for the foreign/ports bootstrapping
2012-08-27 12:39:14 +00:00
LB_BOOTSTRAP_QEMU_EXCLUDE = " ${ LB_BOOTSTRAP_QEMU_EXCLUDE :- } "
2011-09-30 22:24:08 +00:00
# Ports using foreign bootstrap need a working qemu-*-system. This is the location it
LB_BOOTSTRAP_QEMU_STATIC = " ${ LB_BOOTSTRAP_QEMU_STATIC :- } "
2007-11-11 12:14:25 -01:00
}