root/current/host/trunk/emdebian-tools/trunk/pbuilder/emdebian.gtk

Revision 4931, 2.6 kB (checked in by codehelp, 4 months ago)

* embootstrap fails if /bin/sh is not symlinked to /bin/bash (Closes:

#498495)

* pbuilder/emdebian.coreutils pbuilder/emdebian.crossd

pbuilder/emdebian.gpe pbuilder/emdebian.gtk pbuilder/empbuilderlib
pbuilder/emrootfslib: migrate POSIX functions out of empbuilderlib
and into a new shell library, emrootfslib, that is checked for
bashisms each build. Migrate deboostrap suite scripts into
/usr/share. Add experimental pbuilder/emdebian.coreutils.

Line 
1#  emdebian secondstage support (busybox, dpkg, apt + gtk version)
2#
3#  Copyright (C) 2007-2008  Neil Williams <codehelp@debian.org>
4#
5#  This package is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU General Public License as published by
7#  the Free Software Foundation; either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU General Public License for more details.
14#
15#  You should have received a copy of the GNU General Public License
16#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17#
18
19mirror_style release
20download_style apt
21
22work_out_debs () {
23        required="busybox dpkg libstdc++6 libgcc1 libc6 cdebconf
24        libdebian-installer4 zlib1g libnewt0.52 libslang2"
25
26        base="apt gpgv libncurses5 libreadline5 readline-common
27        debconf-shell debianutils makedev base-passwd whiptail
28        gnupg udev base-files debian-archive-keyring libgtk2.0-0
29        fontconfig-config ttf-bitstream-vera xfonts-base"
30}
31
32first_stage_install () {
33        PRESERVE_BUILDPLACE="yes"
34        . /usr/share/emdebian-tools/emrootfslib
35        extract $required
36        make_dpkg_dirs
37        prepare_proc
38        prepare_var
39        info INSTCORE " -> Preparing basic defaults for $BUILDPLACE/etc"
40        basic_etc_fstab
41        basic_group_setup
42        basic_passwd_setup
43        basic_etc_profile
44        shell_update_rcd
45        set_approx_time
46        set_cdebconf_default
47        provide_empty_install_info
48        provide_var_lib_x11
49        info INSTCORE " -> Setting up dpkg in $BUILDPLACE"
50        x_feign_install dpkg
51        info INSTCORE " -> Unpacking packages in $BUILDPLACE"
52        unpack_debootstrap
53        info INSTCORE " -> Adapting configuration for Emdebian"
54        disable_apt_recommends
55        busybox_inittab
56        busybox_rcS
57        sample_xorg_conf
58        setup_devices
59        info INSTCORE " -> First stage install complete in $BUILDPLACE"
60}
61
62second_stage_install () {
63        if [ -f /datestring ]; then
64                TIME=`cat /datestring`
65                echo "Setting approximate time of $TIME"
66                date -s $TIME
67        fi
68        info INSTCORE "Running ldconfig..."
69        in_target /sbin/ldconfig
70        in_target depmod
71        info INSTCORE "Setting cdebconf environment"
72        export DEBCONF_USE_CDEBCONF=true
73        DEBIAN_FRONTEND=noninteractive
74        DEBCONF_NONINTERACTIVE_SEEN=true
75        export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
76        # bug: See #451130
77        in_target /usr/lib/cdebconf/debconf-loadtemplate /usr/share/debconf/demo /usr/share/debconf/demo.templates
78        info INSTCORE "Configuring in $BUILDPLACE"
79        in_target dpkg --configure -a
80        info BASESUCCESS "Emdebian base system installed successfully."
81}
Note: See TracBrowser for help on using the browser.