fai-setup fails because of a file conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fai (Ubuntu) |
Fix Released
|
High
|
Reinhard Tartler |
Bug Description
Here is the error message when running fai-setup:
Configuration file `/etc/dhcp3/
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** dhclient-script (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing fai-nfsroot (--configure):
EOF on stdin at conffile prompt
Errors were encountered while processing:
fai-nfsroot
E: Sub-process /usr/bin/dpkg returned an error code (1)
The problem seems that deboostrap provide this config file and fai-nfsroot want to install another version of this file. Since fai-setup is runned in non-interactive mode we can't answer the question and then it fails.
Changed in fai: | |
status: | Unconfirmed → Confirmed |
I read /usr/sbin/ make-fai- nfsroot script to see what's going on. I see that packages are installed by the following command:
$ROOTCMD apt-get -y --fix-missing install $packages </dev/null
So there is the -y option that should avoid that kind of problem... Tried with --force-yes and it doesn't works neither. I removed the </dev/null and know fai-setup stops and ask me if I want to overwrite the config file, I simply say "Y" and it works.
I don't understand what's the problem...