~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Installer/linux/run-inst.sh

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-03-31 23:25:01 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20130331232501-l72jhvixkeyyz6xc
Tags: 4.2.10-dfsg-0ubuntu1
* Start the virtualbox-guest-x11 init script earlier.
  The vboxvideo module needs to be loaded before X starts.
* Change runlevels of virtualbox-guest-x11 init script on upgrade.
* Fix build failure with the Debian wheezy kernel which backports the drm
  subsystem from Linux 3.4. (Closes: #703358)
* Drop build-dependency on bcc as it's not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
             #       with callback mod_mymod_show_options?)
224
224
 
225
225
            --with-*)
226
 
                MODULE_CUR=$(expr "$ARG" : '--with-\(.*\)')
 
226
                MODULE_CUR=`expr "$ARG" : '--with-\(.*\)'`
227
227
                # Check if corresponding module in installer/module-$1 exists.
228
228
                # Note: Module names may not contain spaces or other funny things.
229
229
                if [ ! -f "./installer/module-${MODULE_CUR}" ]; then
234
234
                . "./installer/module-${MODULE_CUR}"
235
235
                mod_${MODULE_CUR}_init
236
236
                if test $? -ne 0; then
237
 
                    echo 1>&2 "Module '${CUR_MODULE}' failed to initialize"
 
237
                    echo 1>&2 "Module '${MODULE_CUR}' failed to initialize"
238
238
                    if ! test "$FORCE_UPGRADE" = "force"; then
239
239
                        return 1
240
240
                    fi
300
300
INSTALLATION_MODULES_DIR="$INSTALLATION_DIR/installer/"
301
301
 
302
302
# install and load installer modules
303
 
info "Copying additional installer modules ..."
304
 
mkdir -p -m 755 "$INSTALLATION_MODULES_DIR"
305
 
for CUR_FILE in installer/*; do
306
 
    install -p -m 755 "$CUR_FILE" "$INSTALLATION_MODULES_DIR"
307
 
    if [ $? -ne 0 ]; then
308
 
        info "Error: Failed to copy installer module \"$CUR_FILE\""
309
 
        if ! test "$FORCE_UPGRADE" = "force"; then
310
 
            exit 1
311
 
        fi        
312
 
    fi
313
 
done
 
303
if [ -d installer ]; then
 
304
  info "Copying additional installer modules ..."
 
305
  mkdir -p -m 755 "$INSTALLATION_MODULES_DIR"
 
306
  for CUR_FILE in `ls installer/*`; do
 
307
      install -p -m 755 "$CUR_FILE" "$INSTALLATION_MODULES_DIR"
 
308
      if [ $? -ne 0 ]; then
 
309
          info "Error: Failed to copy installer module \"$CUR_FILE\""
 
310
          if ! test "$FORCE_UPGRADE" = "force"; then
 
311
              exit 1
 
312
          fi        
 
313
      fi
 
314
  done
 
315
fi
314
316
 
315
317
# install the new version
316
318
mkdir -p -m 755 "$CONFIG_DIR"
340
342
link_into_fs "share" "/usr/share"
341
343
link_into_fs "src" "/usr/src"
342
344
 
343
 
info "Installing additional modules ..."
344
 
for CUR_MODULE in $(find "$INSTALLATION_MODULES_DIR")
345
 
    do
346
 
        echo "$CUR_MODULE" >> "$CONFIG_DIR/$CONFIG_FILES"
347
 
    done
 
345
if [ -d "$INSTALLATION_MODULES_DIR" ]; then
 
346
  info "Installing additional modules ..."
 
347
  for CUR_MODULE in `find "$INSTALLATION_MODULES_DIR" 2>/dev/null`
 
348
      do
 
349
          echo "$CUR_MODULE" >> "$CONFIG_DIR/$CONFIG_FILES"
 
350
      done
 
351
fi
348
352
 
349
353
for CUR_MODULE in ${INSTALLATION_MODULES_LIST}
350
354
do
380
384
 
381
385
# Give the modules the chance to write their stuff
382
386
# to the installation config as well.
383
 
info "Saving modules configuration ..."
384
 
for CUR_MODULE in ${INSTALLATION_MODULES_LIST}
385
 
do
386
 
    echo "$(mod_${CUR_MODULE}_config_save)" >> "$CONFIG_DIR/$CONFIG"
387
 
done
 
387
if [ -n "${INSTALLATION_MODULES_LIST}" ]; then
 
388
  info "Saving modules configuration ..."
 
389
  for CUR_MODULE in ${INSTALLATION_MODULES_LIST}
 
390
  do
 
391
    echo "`mod_${CUR_MODULE}_config_save`" >> "$CONFIG_DIR/$CONFIG"
 
392
  done
 
393
fi
388
394
 
389
395
# Install, set up and start init scripts
390
396
for i in "$INSTALLATION_DIR/init/"*; do
439
445
# Important: This needs to be done before loading the configuration
440
446
#            value below to not override values which are set to a default
441
447
#            value in the modules itself.
442
 
for CUR_MODULE in \$(find "$INSTALLATION_MODULES_DIR" -name "module-*")
 
448
for CUR_MODULE in `find "$INSTALLATION_MODULES_DIR" -name "module-*" 2>/dev/null`
443
449
    do
444
450
        . "\$CUR_MODULE"
445
451
    done