blob: 4a29040b7b43c71e76536210f99a1ce477448497 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
set -e
# Including common functions
. "${LH_BASE:-/usr/share/live/build}"/scripts/build.sh
# Setting static variables
DESCRIPTION="$(Echo 'build binary images')"
HELP=""
USAGE="${PROGRAM} [--force]"
Arguments "${@}"
# Reading configuration files
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
# Setup cleanup function
Setup_cleanup
# Preparing root filesystem
lh binary_chroot ${*}
if [ "${LH_BUILD_WITH_CHROOT}" = "true" ]
then
# Configuring chroot
lh chroot_devpts install ${*}
lh chroot_proc install ${*}
lh chroot_selinuxfs install ${*}
lh chroot_sysfs install ${*}
lh chroot_hosts install ${*}
lh chroot_resolv install ${*}
lh chroot_hostname install ${*}
lh chroot_sysv-rc install ${*}
lh chroot_upstart install ${*}
lh chroot_apt install-binary ${*}
lh chroot_sources install ${*}
fi
# Building root filesystem
lh binary_rootfs ${*}
lh binary_manifest ${*}
lh binary_encryption ${*}
# Prepare images
lh binary_local-packageslists ${*}
lh binary_linux-image ${*}
lh binary_debian-installer ${*}
lh binary_memtest ${*}
lh binary_grub ${*}
lh binary_grub2 ${*}
lh binary_syslinux ${*}
lh binary_yaboot ${*}
lh binary_silo ${*}
lh binary_disk ${*}
lh binary_win32-loader ${*}
lh binary_includes ${*}
lh binary_local-includes ${*}
lh binary_local-hooks ${*}
lh binary_checksums ${*}
if [ "${LH_BUILD_WITH_CHROOT}" != "true" ]
then
lh chroot_devpts install ${*}
lh chroot_proc install ${*}
lh chroot_selinuxfs install ${*}
lh chroot_sysfs install ${*}
fi
# Building images
lh binary_iso ${*}
lh binary_net ${*}
lh binary_tar ${*}
lh binary_usb ${*}
lh binary_virtual-hdd ${*}
if [ "${LH_BUILD_WITH_CHROOT}" = "true" ]
then
# Deconfiguring chroot
rm -f .stage/chroot_sources
lh chroot_hostname remove ${*}
lh chroot_resolv remove ${*}
lh chroot_hosts remove ${*}
fi
lh chroot_apt remove ${*}
lh chroot_sysv-rc remove ${*}
lh chroot_sysfs remove ${*}
lh chroot_upstart remove ${*}
lh chroot_selinuxfs remove ${*}
lh chroot_proc remove ${*}
lh chroot_devpts remove ${*}
|