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

« back to all changes in this revision

Viewing changes to scripts/debian/woody

  • 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 debconf debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname libcap1 libc6 libdb2 libdb3 libncurses5 libnewt0 libpam-modules libpam-runtime libpam0g libperl5.6 libpopt0 libreadline4 libstdc++2.10-glibc2.2 login makedev mawk modutils mount ncurses-base ncurses-bin passwd perl-base procps sed shellutils slang1 sysvinit tar textutils util-linux whiptail"
11
16
        echo "$2" | tr ' ' '\n' | grep -v "^$1$" | tr '\n' ' '
12
17
    }
13
18
 
14
 
    LIBC6=libc6
15
19
    IPFWTOOL=iptables
16
20
 
17
21
    case $ARCH in
18
22
        "alpha")
19
23
            required="$(without_package "libc6" "$required") libc6.1"
20
24
            base="$base setserial aboot pciutils"
21
 
            LIBC6="libc6.1"
22
25
            IPFWTOOL="ipchains"
23
26
            ;;
24
27
        "arm")
33
36
        "ia64")
34
37
            required="$(without_package "libc6" "$required") libc6.1 gcc-2.96-base"
35
38
            base="$base elilo efibootmgr dosfstools libparted1.4 parted"
36
 
            LIBC6="libc6.1"
37
39
            ;;
38
40
        "m68k")
39
41
            base="$base atari-bootstrap atari-fdisk amiga-fdisk eject mac-fdisk pmac-fdisk-cross setserial vmelilo"
146
148
    fi
147
149
 
148
150
    p; progress $baseprog $bases INSTBASE "Installing base system" #4
149
 
    x_core_install $LIBC6
 
151
    x_core_install $LIBC
150
152
 
151
153
    p; progress $baseprog $bases INSTBASE "Installing base system" #5
152
154
    x_core_install perl-base
159
161
    info UNPACKREQ "Unpacking required packages..."
160
162
 
161
163
    p; progress $baseprog $bases INSTBASE "Installing base system" #8
162
 
    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)
 
164
    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)
163
165
    p 10; progress $baseprog $bases INSTBASE "Installing base system"  #18
164
166
 
165
167
    info CONFREQ "Configuring required packages..."
185
187
    info INSTBASE "Installing base packages..."
186
188
 
187
189
    p; progress $baseprog $bases INSTBASE "Installing base system" #30
188
 
    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)
 
190
    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)
189
191
 
190
192
    rm -f "$TARGET/usr/sbin/sendmail"
191
193
    ln -sf /bin/true "$TARGET/usr/sbin/sendmail"
192
194
 
193
 
    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
 
195
    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
194
196
 
195
197
    rm -f "$TARGET/usr/sbin/sendmail"
196
198
    ln -sf exim "$TARGET/usr/sbin/sendmail"