installer doesn't report preseed/late_command error

Bug #263776 reported by Carl Karsten
2
Affects Status Importance Assigned to Milestone
preseed (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

alt installer, preseed file, preseed/late_command uses apt-get, which errors with sh: apt-get: not found. Installer should pause and throw an error to the user. instead it just loggs the error in syslog and continues.

(I remember a time when wget was not in the installers environment, and apparently apt-get was, because that fixed it.)

Sep 1 19:38:18 debconf: --> GET preseed/late_command
Sep 1 19:38:18 debconf: <-- 0 cd /tmp;apt-get install wget;wget http://shaz/lat
e_command.sh; chmod u+x late_command.sh; ./late_command.sh
Sep 1 19:38:18 preseed: running preseed command preseed/late_command: cd /tmp;a
pt-get install wget;wget http://shaz/late_command.sh; chmod u+x late_command.sh;
 ./late_command.sh
Sep 1 19:38:18 log-output: sh: apt-get: not found
Sep 1 19:38:18 log-output: Connecting to shaz (192.168.1.7:80)
Sep 1 19:38:18 log-output: ^Mlate_command.sh 0% |
        | 0 --:--:-- ETA
Sep 1 19:38:18 log-output: ^Mlate_command.sh 100% |***********************
********| 1674 --:--:-- ETA
Sep 1 19:38:18 log-output: +
Sep 1 19:38:18 log-output: TARGET=/target

Revision history for this message
Carl Karsten (carlfk) wrote :
Revision history for this message
Carl Karsten (carlfk) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Your shell command is written such that it continues on errors. d-i just executes the whole thing and looks at the final exit status, which in this case is zero.

In order to behave as you requested, put "set -e;" at the start of your command.

Changed in debian-installer:
status: New → Invalid
Revision history for this message
Colin Watson (cjwatson) wrote :

By the way, I am absolutely certain that apt-get has never been in the installer environment. I think you must be confused; perhaps you were running a command in some different context.

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.