File: emdebian.gtk

package info (click to toggle)
emdebian-tools 1.4.3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,112 kB
  • ctags: 274
  • sloc: perl: 6,297; xml: 4,828; sh: 1,902; php: 406; ansic: 189; makefile: 15
file content (79 lines) | stat: -rw-r--r-- 2,602 bytes parent folder | download
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
#  emdebian secondstage support (busybox, dpkg, apt + gtk version)
#
#  Copyright (C) 2007-2008  Neil Williams <codehelp@debian.org>
#
#  This package is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

mirror_style release
download_style apt

work_out_debs () {
	required="busybox dpkg libstdc++6 libgcc1 libc6 cdebconf
	libdebian-installer4 zlib1g libnewt0.52 libslang2 mount"

	base="apt gpgv libncurses5 libreadline5 readline-common
	debconf-shell debianutils makedev base-passwd whiptail
	gnupg udev base-files debian-archive-keyring libgtk2.0-0
	fontconfig-config ttf-bitstream-vera xfonts-base"
}

first_stage_install () {
	PRESERVE_BUILDPLACE="yes"
	. /usr/lib/emdebian-tools/empbuilderlib
	extract $required
	make_dpkg_dirs
	prepare_proc
	prepare_var
	info INSTCORE " -> Preparing basic defaults for $BUILDPLACE/etc"
	basic_etc_fstab
	basic_group_setup
	basic_passwd_setup
	shell_update_rcd
	set_approx_time
	set_cdebconf_default
	provide_empty_install_info
	provide_var_lib_x11
	info INSTCORE " -> Setting up dpkg in $BUILDPLACE"
	x_feign_install dpkg
	info INSTCORE " -> Unpacking packages in $BUILDPLACE"
	unpack_debootstrap
	info INSTCORE " -> Adapting configuration for Emdebian"
	disable_apt_recommends
	busybox_inittab
	busybox_rcS
	setup_devices
	info INSTCORE " -> First stage install complete in $BUILDPLACE"
}

second_stage_install () {
	if [ -f /datestring ]; then
		TIME=`cat /datestring`
		echo "Setting approximate time of $TIME"
		date -s $TIME
	fi
	info INSTCORE "Running ldconfig..."
	in_target /sbin/ldconfig
	in_target depmod
	info INSTCORE "Setting cdebconf environment"
	export DEBCONF_USE_CDEBCONF=true
	DEBIAN_FRONTEND=noninteractive
	DEBCONF_NONINTERACTIVE_SEEN=true
	export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
	# bug: See #451130
	in_target /usr/lib/cdebconf/debconf-loadtemplate /usr/share/debconf/demo /usr/share/debconf/demo.templates
	info INSTCORE "Configuring in $BUILDPLACE"
	in_target dpkg --configure -a
	info BASESUCCESS "Emdebian base system installed successfully."
}