[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





Ben Hutchings wrote:
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.

Got it. Thanks.
Look forward to the next release.

Steven.

--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A




Reply to: