installer doesn't report preseed/late_command error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
preseed (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
alt installer, preseed file, preseed/
(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/
Sep 1 19:38:18 debconf: <-- 0 cd /tmp;apt-get install wget;wget http://
e_command.sh; chmod u+x late_command.sh; ./late_command.sh
Sep 1 19:38:18 preseed: running preseed command preseed/
pt-get install wget;wget http://
./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
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.