~kobe24-lixiang/ubiquity-ubuntukylin/trunk

« back to all changes in this revision

Viewing changes to d-i/source/base-installer/waypoints.h

  • Committer: kobe
  • Date: 2014-08-22 06:37:21 UTC
  • Revision ID: xiangli@ubuntukylin.com-20140822063721-p145o500i2y7o48h
first version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * debootstrap waypoints for run-debootstrap. See the README for docs.
 
3
 */
 
4
struct waypoint {
 
5
        int startpercent;
 
6
        int endpercent;
 
7
        char *progress_id;
 
8
};
 
9
static struct waypoint waypoints[] = {
 
10
        { 0,    0,      "START" },      /* dummy entry, required */
 
11
        { 0,    1,      "DOWNREL" },    /* downloading release files; very quick */
 
12
        { 1,    5,      "DOWNPKGS" },   /* downloading packages files; time varies
 
13
                                           by bandwidth (and size); low granularity */
 
14
        { 5,    10,     "SIZEDEBS" },   /* getting packages sizes; high granularity */
 
15
        { 10,   25,     "DOWNDEBS" },   /* downloading packages; run time varies by
 
16
                                           bandwidth; high granularity */
 
17
        { 25,   45,     "EXTRACTPKGS" },/* extracting the core packages */
 
18
 
 
19
        /* old debootstrap with poor granularity */
 
20
        { 45,   100,    "INSTBASE" },   /* installing the base system */
 
21
 
 
22
        /* new debootstrap with better granularity */
 
23
        { 45,   50,     "INSTCORE" },   /* installing packages needed for dpkg to
 
24
                                           work */
 
25
        { 50,   60,     "UNPACKREQ" },  /* unpacking required packages */
 
26
        { 60,   70,     "CONFREQ" },    /* configuring required packages */
 
27
        { 70,   85,     "UNPACKBASE" }, /* unpacking the rest of the base system */
 
28
        { 85,   100,    "CONFBASE" },   /* configuring the rest of the base system */
 
29
 
 
30
        { 100,  0,      NULL },         /* last entry, required */
 
31
};