~ubuntu-branches/ubuntu/wily/debootstrap/wily

« back to all changes in this revision

Viewing changes to scripts/ubuntu/warty.buildd

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-07-23 16:45:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090723164500-jep034mv3cq78qwy
On Linux, clear out /etc/mtab on exit if it's not a symlink. Should fix
problems Wouter Verhelst and Martin Michlmayr are seeing with
initramfs-tools MODULES=dep, although it probably isn't a perfect
solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
mirror_style release
3
3
download_style apt
4
4
 
 
5
LIBC=libc6
 
6
if [ "$ARCH" = "alpha" ] || [ "$ARCH" = "ia64" ]; then
 
7
  LIBC="libc6.1"
 
8
fi
 
9
 
5
10
work_out_debs () {
6
11
 
7
12
    required="base-files base-passwd bash bsdutils build-essential coreutils debianutils diff dpkg dselect e2fslibs e2fsprogs fakeroot findutils gcc-3.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcap1 libcomerr2 libdb1-compat libdb3 libgcc1 libncurses5 libpam-modules libpam-runtime libpam0g libss2 libstdc++5 libuuid1 login lsb-base mawk mount ncurses-base ncurses-bin perl-base sed slang1a-utf8 sysv-rc sysvinit tar util-linux zlib1g"
15
20
        echo "$3" | tr ' ' '\n' | sed "s/^$1$/$2/" | tr '\n' ' '
16
21
    }
17
22
 
18
 
    LIBC6=libc6
19
 
 
20
23
    case $ARCH in
21
24
        "amd64")
22
25
            ;;
29
32
        "alpha")
30
33
            required="$(subst_package "libc6" "libc6.1" "$required")"
31
34
            base="$(subst_package "libc6-dev" "libc6.1-dev" "$base")"
32
 
            LIBC6="libc6.1"
33
35
            ;;
34
36
        "ia64")
35
37
            required="$(subst_package "libc6" "libc6.1" "$required")"
36
38
            base="$(subst_package "libc6-dev" "libc6.1-dev" "$base")"
37
 
            LIBC6="libc6.1"
38
39
            ;;
39
40
        *)
40
41
            # who knows?
115
116
    fi
116
117
 
117
118
    p; progress $baseprog $bases INSTCORE "Installing core packages" #4
118
 
    x_core_install $LIBC6
 
119
    x_core_install $LIBC
119
120
 
120
121
    p; progress $baseprog $bases INSTCORE "Installing core packages" #5
121
122
    x_core_install perl-base
127
128
    info UNPACKREQ "Unpacking required packages..."
128
129
 
129
130
    p; progress $baseprog $bases INSTCORE "Installing core packages" #8
130
 
    smallyes '' | repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages.  This will be attempted up to five times." "" dpkg --force-depends --unpack $(debfor $required)
 
131
    smallyes '' | repeatn 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages.  This will be attempted up to five times." "" dpkg --force-depends --unpack $(debfor $required)
131
132
    p 10; progress $baseprog $bases INSTCORE "Installing core packages" #18
132
133
 
133
134
    info CONFREQ "Configuring required packages..."
149
150
    info INSTCORE "Installing base packages..."
150
151
 
151
152
    p; progress $baseprog $bases INSTCORE "Installing core packages" #30
152
 
    smallyes '' | repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages.  This will be re-attempted up to five times." "" dpkg --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base)
 
153
    smallyes '' | repeatn 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages.  This will be re-attempted up to five times." "" dpkg --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base)
153
154
 
154
 
    smallyes '' | repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages.  This will be attempted 5 times." "" dpkg  --force-confold --skip-same-version  --configure -a
 
155
    smallyes '' | repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages.  This will be attempted 5 times." "" dpkg  --force-confold --skip-same-version  --configure -a
155
156
 
156
157
    p 9; progress $baseprog $bases INSTCORE "Installing core packages" #39
157
158