[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#376008: initramfs-tools: conffile prompt



On Mon, Jul 03, 2006 at 09:56:38PM +0200, maximilian attems wrote:
> On Mon, Jul 03, 2006 at 03:37:04PM -0400, Justin Pryzby wrote:
> > found 376008 0.66
> > reopen 376008
> > thanks
> > 
> > This isn't fixed yet, and (I suspect) is the cause of a conffile
> > prompt during this upgrade.
> > 
> > preinst:
> > sed -i -e "s/RESUME=.*/#RESUME=/" /etc/initramfs-tools/initramfs.conf
> 
> this code is gone
>  
> > postinst:
> >                         sed -i \
> >                           -e 's/mkinitrd/mkinitramfs/g' \
> >                           -e '/^ide-generic/d' \
> >                           -e '/^ide-disk/d' \
> >                           -e '/^ext2/d' \
> >                           -e '/^ext3/d' \
> >                           /etc/initramfs-tools/modules
> 
> this is _first_ time install, we migrate the settings from mkinitrd.
> not a modification of an conffile as we weren't installed previously.
> 
> > ../status: /etc/initramfs-tools/initramfs.conf d69c47df9b52f41ce38ce59a788b9cdc
> > initramfs-tools.list:/etc/initramfs-tools/initramfs.conf
> > initramfs-tools.conffiles:/etc/initramfs-tools/initramfs.conf
> > 
> > ../status: /etc/initramfs-tools/modules 93a8919fa71d3e00419b98f4b102f4d0
> > initramfs-tools.list:/etc/initramfs-tools/modules
> > initramfs-tools.conffiles:/etc/initramfs-tools/modules
> 
> would you please check the version against this bug was closed!
> upload said fixed in 0.67.
Oops, you're right.  I didn't realize this was todays upload, so
installed from unstable and assumed the version was latest.

I think the migration from mkinitrd should happen in preinst, not in
postinst.  In preinst it isn't a conffile, and this is where typical
conffile migration (move,remove,etc) strategies exist.  In postinst,
it *is* a conffile, and must not be modified.  At the very least it
should be protected with an

f=/etc/initramfs-tools/modules
if [ ! -e "$f" ] && [ ! -L "$f" ]; then



Reply to: