On Mon, Jun 20, 2005 at 01:34:32AM +0200, Holger Levsen wrote:
> task_prepareapt is (IMO) unneccessarily run during softupdates. 

it is necassairy, if you are (ab-)using softupdates for dist-upgrades. But I
agree the current implementation in FAI not ideal, but my proposed changes
were not accepted into FAI ;(

> This is bad, as it overwrites (and corrupts) /etc/hosts, /etc/resolv.conf is 
> "only" overwritten.
> 
> fcopy could really allow more control here.

you're right, that's why I hooked task_prepareapt in the following way:

$FAI/hooks/prepareapt.DEFAULT

#!/bin/bash
# $Id: prepareapt.DEFAULT,v 1.1 2005/05/03 14:16:51 glaweh Exp $
# 
# HG: use fcopy for apt preparation
fcopy -i etc/{hosts,hostname,resolv.conf}
fcopy -ri etc/apt
fcopy -ri etc/dpkg
skiptask prepareapt


-- 
c u
henning


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to