~ubuntu-branches/ubuntu/intrepid/debian-installer-utils/intrepid

« back to all changes in this revision

Viewing changes to chroot-setup.sh

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2007-12-03 12:41:36 UTC
  • Revision ID: james.westby@ubuntu.com-20071203124136-j46i391ycjl5v3gr
Tags: 1.50ubuntu1
* Resynchronise with Debian. Remaining changes:
  - user-params: Don't propagate ks=*, vga=*, or break=* to installed
    system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
1
# Setup for using apt to install packages in /target.
3
2
 
4
3
mountpoints () {
11
10
           [ ! -d /target/proc ]; then
12
11
                return 1
13
12
        fi
14
 
        case $(uname -r | cut -d . -f 1,2) in
15
 
            2.6)
16
 
                if [ ! -d /target/sys ] ; then
17
 
                        return 1
18
 
                fi
19
 
                ;;
20
 
        esac
 
13
        if [ ! -d /target/sys ] ; then
 
14
                return 1
 
15
        fi
21
16
 
22
17
        if [ -e /var/run/chroot-setup.lock ]; then
23
18
                cat >&2 <<EOF
59
54
        fi
60
55
 
61
56
        # For installing >=2.6.14 kernels we also need sysfs mounted
62
 
        # Only mount it if not mounted already and we're running 2.6
63
 
        case $(uname -r | cut -d . -f 1,2) in
64
 
            2.6)
65
 
                if [ ! -d /target/sys/devices ] ; then
66
 
                        mount -t sysfs sysfs /target/sys
67
 
                fi
68
 
                ;;
69
 
        esac
 
57
        # Only mount it if not mounted already
 
58
        if [ ! -d /target/sys/devices ] ; then
 
59
                mount -t sysfs sysfs /target/sys
 
60
        fi
70
61
 
71
62
        # Try to enable proxy when using HTTP.
72
63
        # What about using ftp_proxy for FTP sources?