[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Running base-config from within first stage installer



I just sat down to test if it is easy to run base-config before the
machine is booted from HD, in other words running from within
debian-installer.  It works just fine.  I created the following
prebaseconfig.d script as 92base-config.  It must be numbered before
95umount and after 92prepare-base-config.  It must also run after
15cdrom-detect when installing from CD, to be able to mount the CD
within /target/.

  #!/bin/sh

  unset DEBIAN_HAS_FRONTEND # Set by debconf
  unset DEBCONF_REDIR       # Set by debconf
  unset DEBIAN_FRONTEND     # Just to be sure
  unset DEBCONF_FRONTEND    # Probably not used any more [pere 2003-01-18]

  console=/dev/console
  chroot /target /usr/sbin/termwrap /usr/sbin/base-config < $console > $console

Should this be the default behaviour in d-i, or only an option?

The current prebaseconfig.d scripts when I install from CD is:

  15cdrom-detect
  50config-target-network
  60reportbug-template
  65languagechooser
  80save-install-log
  85skolelinux-config
  90prepare-base-config
  95umount
  99reboot

Is the ordering OK?  Should there be more parts?



Reply to: