source: live-build/trunk/fuentes/scripts/build/lb_binary @ 900

Last change on this file since 900 was 900, checked in by kbut, 3 years ago

add original source

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1#!/bin/sh
2
3## live-build(7) - System Build Scripts
4## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
5##
6## This program 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.
9
10
11set -e
12
13# Including common functions
14( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || . /usr/lib/live/build.sh
15
16
17# Automatically populating config tree
18if [ -x auto/config ] && [ ! -e .build/config ]
19then
20        Echo_message "Automatically populating config tree."
21        lb config
22fi
23
24# Setting static variables
25DESCRIPTION="$(Echo 'build binary images')"
26HELP=""
27USAGE="${PROGRAM} [--force]"
28
29Arguments "${@}"
30
31# Reading configuration files
32Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
33Set_defaults
34
35# Setup cleanup function
36Setup_cleanup
37
38# Preparing root filesystem
39lb binary_chroot ${*}
40
41if [ "${LB_BUILD_WITH_CHROOT}" = "true" ]
42then
43        # Configuring chroot
44        lb chroot_devpts install ${*}
45        lb chroot_proc install ${*}
46        lb chroot_selinuxfs install ${*}
47        lb chroot_sysfs install ${*}
48        lb chroot_hosts install ${*}
49        lb chroot_resolv install ${*}
50        lb chroot_hostname install ${*}
51        lb chroot_sysv-rc install ${*}
52        lb chroot_upstart install ${*}
53        lb chroot_apt install-binary ${*}
54        lb chroot_archives chroot install ${*}
55fi
56
57# Building root filesystem
58lb binary_rootfs ${*}
59lb binary_manifest ${*}
60
61# Prepare images
62lb binary_package-lists ${*}
63lb binary_linux-image ${*}
64lb binary_debian-installer ${*}
65lb binary_memtest ${*}
66lb binary_grub ${*}
67lb binary_grub2 ${*}
68lb binary_syslinux ${*}
69lb binary_yaboot ${*}
70lb binary_silo ${*}
71lb binary_disk ${*}
72lb binary_win32-loader ${*}
73lb binary_includes ${*}
74lb binary_hooks ${*}
75lb binary_checksums ${*}
76
77if [ "${LB_BUILD_WITH_CHROOT}" != "true" ]
78then
79        lb chroot_devpts install ${*}
80        lb chroot_proc install ${*}
81        lb chroot_selinuxfs install ${*}
82        lb chroot_sysfs install ${*}
83fi
84
85# Building images
86lb binary_iso ${*}
87lb binary_netboot ${*}
88lb binary_tar ${*}
89lb binary_hdd ${*}
90lb binary_virtual-hdd ${*}
91
92lb binary_zsync ${*}
93
94if [ "${LB_BUILD_WITH_CHROOT}" = "true" ]
95then
96        # Deconfiguring chroot
97        rm -f .build/chroot_archives
98        lb chroot_apt remove ${*}
99        lb chroot_hostname remove ${*}
100        lb chroot_resolv remove ${*}
101        lb chroot_hosts remove ${*}
102        lb chroot_upstart remove ${*}
103        lb chroot_sysv-rc remove ${*}
104        lb chroot_dpkg remove ${*}
105        lb chroot_debianchroot remove ${*}
106fi
107
108lb chroot_sysfs remove ${*}
109lb chroot_selinuxfs remove ${*}
110lb chroot_proc remove ${*}
111lb chroot_devpts remove ${*}
Note: See TracBrowser for help on using the repository browser.