[softupdate] force-confnew on specific package.

Michael Tautschnig mt at debian.org
Sat Apr 3 10:26:19 CEST 2010


> On 03/22/2010 01:51 PM, Michael Tautschnig wrote:
> >[...]
> >
> >>>As you only want this for a single package and only once, I'd suggest you create
> >>>a hook instsoft.FOO (for a proper class FOO) that does
> >>>
> >>>- create 90mypackage with the above contents
> >>>- apt-get install theonepackage
> >>>- rm 90mypackage
> >>
> >>Hmm. Ok. So by using apt-get in the hook-script I also have to
> >>remove the package from the PACKAGE_CONFIG-entry? Right?
> >
> >This should not be necessary, no. Having the package in the package_config/X
> >just becomes a no-op as it is installed already.
> 
> Ok. But I should have mentionend that the same class is used to
> install a new machine with this package.
> Don't I have to add some logic to disable the "apt-get install" when
> detecting FAI_ACTION=install?
> 

Well, it shouldn't matter too much as confnew and confold should not make a
difference. If it does, you can easily wrap this in an

if [ $FAI_ACTION != "install" ] ; then
  blablabla
fi

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100403/7a5210de/attachment.bin 


More information about the linux-fai mailing list