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

« back to all changes in this revision

Viewing changes to scripts/debian/woody.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:
1
1
mirror_style release
2
2
download_style apt
3
3
 
 
4
LIBC=libc6
 
5
if [ "$ARCH" = "alpha" ] || [ "$ARCH" = "ia64" ]; then
 
6
  LIBC="libc6.1"
 
7
fi
 
8
 
4
9
work_out_debs () {
5
10
 
6
11
    required="base-files base-passwd bash bsdutils debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname libc6 libcap1 libdb3 libgdbmg1 libncurses5 libpam-modules libpam-runtime libpam0g libperl5.6 libstdc++2.10-glibc2.2 login mawk mount ncurses-base ncurses-bin perl-base sed shellutils slang1 sysvinit tar textutils util-linux"
11
16
        echo "$2" | tr ' ' '\n' | grep -v "^$1$" | tr '\n' ' '
12
17
    }
13
18
 
14
 
    LIBC6=libc6
15
 
 
16
19
    case $ARCH in
17
20
        "alpha")
18
21
            required="$(without_package "libc6" "$required") libc6.1"
19
22
            base="$(without_package "libc6-dev" "$base") libc6.1-dev"
20
 
            LIBC6="libc6.1"
21
23
            ;;
22
24
        "arm")
23
25
            ;;
29
31
            base="$(without_package "gcc-2.95" "$base") gcc-2.96"
30
32
            base="$(without_package "g++-2.95" "$base") g++-2.96"
31
33
            base="$(without_package "libc6-dev" "$base") libc6.1-dev elilo efibootmgr dosfstools libparted1.4 parted"
32
 
            LIBC6="libc6.1"
33
34
            ;;
34
35
        "m68k")
35
36
            ;;
122
123
    fi
123
124
 
124
125
    p; progress $baseprog $bases INSTBASE "Installing base system" #4
125
 
    x_core_install $LIBC6
 
126
    x_core_install $LIBC
126
127
 
127
128
    p; progress $baseprog $bases INSTBASE "Installing base system" #5
128
129
    x_core_install perl-base
134
135
    info UNPACKREQ "Unpacking required packages..."
135
136
 
136
137
    p; progress $baseprog $bases INSTBASE "Installing base system" #8
137
 
    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)
 
138
    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)
138
139
    p 10; progress $baseprog $bases INSTBASE "Installing base system" #18
139
140
 
140
141
    info CONFREQ "Configuring required packages..."
155
156
    info INSTBASE "Installing base packages..."
156
157
 
157
158
    p; progress $baseprog $bases INSTBASE "Installing base system" #30
158
 
    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)
 
159
    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)
159
160
 
160
 
    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
 
161
    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
161
162
 
162
163
    p 9; progress $baseprog $bases INSTBASE "Installing base system" #39
163
164