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

Bug#576243: linux-base postinst exits when no /etc/fstab in Debian live



On Fri, 2010-04-02 at 09:13 +0800, Steven Shiau wrote:
> Package: linux-base
> Version: 2.6.33-1~experimental.2
> Severity: important
> Tags: sid
> 
> *** Please type your report below this line ***
> When creating a Debian live system with live-helper, there is no file 
> /etc/fstab for such a live system. However, the "$fstab->close();" in 
> "/var/lib/dpkg/info/linux-base.postinst" will just exit in this case.
> Please fix it. Thanks.

Thanks for pointing out this bug.  The fundamental issue is that we
shouldn't be attempting to do any conversion during a fresh installation
(whether that is done through debootstrap, debian-installer or
live-helper).

Because linux-base is a new package, we cannot simply check that this is
a fresh installation of linux-base.  Instead, I've added a check that
(1) /etc/fstab exists and (2) one or more linux-image packages are
already installed.  I believe this will do the right thing.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: