preseed/run supposed to be executed at late_command

Bug #447890 reported by Stanly
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: debian-installer

Description: Ubuntu 9.04
Release: 9.04

debian-installer:
  Installed: (none)
  Candidate: 20081029ubuntu34
  Version table:
     20081029ubuntu34 0
        500 http://us.archive.ubuntu.com jaunty/main Packages

According to http://d-i.alioth.debian.org/manual/en.i386/install.en.txt "d-i preseed/run" should be executed at the same time as "d-i preseed/late_command". But it is being executed at the beginning for installation even before partitioning happened. I want to use preseed/run to download a script witch would append my ssh pub key to root's authorized_keys. See attached preseed and script.

ProblemType: Bug
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 9.04
Package: debian-installer None [modified: /var/lib/dpkg/info/debian-installer.list]
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: debian-installer
Uname: Linux 2.6.28-15-generic i686
UnreportableReason: This is not a genuine Ubuntu package

Tags: i386
Revision history for this message
Stanly (stanly-decvar) wrote :
Revision history for this message
Stanly (stanly-decvar) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debian-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Audun Gangsto (audun-m) wrote :

I'd like to dispute this bug, since the link to the documentation does not actually say that the preseed/run command should be run at the same time as late_command (anymore? this is an old bug)

At the present writing time, the documentation goes on about how the preseed/run command can be used to run a script to modify preseed parameters and to redo the network configuration.

This makes sense to do as early in the installer as possible, for example to redo network configuration, perform strange and unusual partitioning and other useful and less useful things to have maximum freedom when installing ubuntu.

I recommend using the preseed/late_command instead, for example like this:

d-i preseed/late_command string chroot /target sh -c "/usr/bin/wget -O /tmp/late_script http://preseedserver/late_script && /bin/sh -x /tmp/late_script"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.