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

Revision 4931, 2.8 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        debconf-shell libdebian-installer4 zlib1g libnewt0.52
25        libslang2 base-passwd"
26
27        base="apt gpgv libncurses5 libreadline5 readline-common
28        debianutils makedev whiptail iptables initscripts
29        gnupg udev base-files debian-archive-keyring libgtk2.0-0
30        libxfixes3 fontconfig-config ttf-bitstream-vera gpe
31        libsoup2.2-8 dbus xinit libice6 langupdate
32        libsm6 galculator dhcp3-client util-linux
33        module-init-tools sysvinit-utils xauth xserver-xorg-video-fbdev
34        xserver-xorg-input-tslib xfonts-base hicolor-icon-theme"
35}
36
37first_stage_install () {
38        PRESERVE_BUILDPLACE="yes"
39        . /usr/share/emdebian-tools/emrootfslib
40        extract $required
41        make_dpkg_dirs
42        prepare_proc
43        prepare_var
44        info INSTCORE " -> Preparing basic defaults for $BUILDPLACE/etc"
45        basic_etc_fstab
46        basic_group_setup
47        basic_passwd_setup
48        basic_shadow_setup
49        basic_etc_profile
50        shell_update_rcd
51        set_approx_time
52        set_cdebconf_default
53        provide_empty_install_info
54        provide_var_lib_x11
55        info INSTCORE " -> Setting up dpkg in $BUILDPLACE"
56        x_feign_install dpkg
57        info INSTCORE " -> Unpacking packages in $BUILDPLACE"
58        unpack_debootstrap
59        info INSTCORE " -> Adapting configuration for Emdebian"
60        disable_apt_recommends
61        busybox_inittab
62        busybox_rcS
63        sample_xorg_conf
64        setup_devices
65        info INSTCORE " -> First stage install complete in $BUILDPLACE"
66}
67
68second_stage_install () {
69        if [ -f /datestring ]; then
70                TIME=`cat /datestring`
71                echo "Setting approximate time of $TIME"
72                date -s $TIME
73        fi
74        info INSTCORE "Running ldconfig..."
75        in_target /sbin/ldconfig
76        in_target depmod
77        info INSTCORE "Setting cdebconf environment"
78        export DEBCONF_USE_CDEBCONF=true
79        DEBIAN_FRONTEND=noninteractive
80        DEBCONF_NONINTERACTIVE_SEEN=true
81        export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
82        # bug: See #451130
83        in_target /usr/lib/cdebconf/debconf-loadtemplate /usr/share/debconf/demo /usr/share/debconf/demo.templates
84        info INSTCORE "Configuring in $BUILDPLACE"
85        in_target dpkg --configure -a
86        info BASESUCCESS "Emdebian base system installed successfully."
87}
Note: See TracBrowser for help on using the browser.