~ubuntu-branches/ubuntu/karmic/debootstrap/karmic

« back to all changes in this revision

Viewing changes to scripts/ubuntu/gutsy

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-10-04 21:23:07 UTC
  • Revision ID: james.westby@ubuntu.com-20091004212307-tplbo598j6jpdlog
Tags: 1.0.20
* For recent Ubuntu versions, move $TARGET/sbin/initctl aside in the same
  way we do start-stop-daemon, so that attempts to control Upstart jobs
  won't inadvertently affect jobs in the host system.
* Rename EXAMPLE section in debootstrap(8) to EXAMPLES (closes: #548458).

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
165
165
    chmod 755 "$TARGET/sbin/start-stop-daemon"
166
166
 
 
167
    if [ -x "$TARGET/sbin/initctl" ]; then
 
168
      mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
 
169
      echo \
 
170
"#!/bin/sh
 
171
echo
 
172
echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
 
173
      chmod 755 "$TARGET/sbin/initctl"
 
174
    fi
 
175
 
167
176
    setup_dselect_method apt
168
177
 
169
178
    smallyes '' | 
201
210
      dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
202
211
      dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
203
212
 
 
213
    if [ -x "$TARGET/sbin/initctl.REAL" ]; then
 
214
      mv "$TARGET/sbin/initctl.REAL" "$TARGET/sbin/initctl"
 
215
    fi
204
216
    mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
205
217
 
206
218
    progress $bases $bases CONFBASE "Configuring base system"