Your message dated Sat, 12 Mar 2011 07:33:51 +0000
with message-id <1299915231.4146.117.camel@localhost>
and subject line Re: Assumes /etc/fstab exists (it doesn't in cdebootstrap).
has caused the Debian Bug report #595364,
regarding Assumes /etc/fstab exists (it doesn't in cdebootstrap).
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
595364: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595364
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: linux-base
Version: 2.6.34-1~experimental.2
Severity: minor
I had cdebootstrap generate a squeeze chroot, and installed a kernel
into it. When I then ran "dpkg-reconfigure -a -plow" in the chroot,
this package borked the dpkg-reconfigure run because /etc/fstab
doesn't exist.
+ chroot cdebootstrap-amd64 dpkg-reconfigure -a -plow
[...]
ifupdown.postinst: Warning: No 'iface lo' definition found in
/etc/network/interfaces
ifupdown.postinst: Warning: No 'auto lo' statement found in
/etc/network/interfaces
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
df: Warning: cannot read table of mounted file systems: No such file or
directory
warning: can't open /etc/mtab: No such file or directory
egrep: /etc/fstab: No such file or directory
egrep: /etc/fstab: No such file or directory
No such file or directory at /var/lib/dpkg/info/linux-base.postinst line
1207, <STDIN> line 1.
This is an unusual case and I can work around it by creating an empty
fstab before running dpkg-reconfigure, but you might want to consider
adding a test for /etc/fstab's existence.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-base depends on:
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii libapt-pkg-perl 0.1.24+b1 Perl interface to libapt-pkg
ii libuuid-perl 0.02-4 Perl extension for using UUID inte
ii udev 161-1 /dev/ and hotplug management daemo
ii util-linux 2.17.2-3.1 Miscellaneous system utilities
linux-base recommends no packages.
linux-base suggests no packages.
-- debconf information excluded
--- End Message ---
--- Begin Message ---
On Fri, 2010-09-03 at 23:34 +1000, Trent W. Buck wrote:
> Package: linux-base
> Version: 2.6.34-1~experimental.2
> Severity: minor
>
> I had cdebootstrap generate a squeeze chroot, and installed a kernel
> into it. When I then ran "dpkg-reconfigure -a -plow" in the chroot,
> this package borked the dpkg-reconfigure run because /etc/fstab
> doesn't exist.
>
> + chroot cdebootstrap-amd64 dpkg-reconfigure -a -plow
> [...]
> ifupdown.postinst: Warning: No 'iface lo' definition found in
> /etc/network/interfaces
> ifupdown.postinst: Warning: No 'auto lo' statement found in
> /etc/network/interfaces
> update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
> df: Warning: cannot read table of mounted file systems: No such file or
> directory
> warning: can't open /etc/mtab: No such file or directory
> egrep: /etc/fstab: No such file or directory
> egrep: /etc/fstab: No such file or directory
The above error messages are generated by initramfs-tools, not
linux-base.
> No such file or directory at /var/lib/dpkg/info/linux-base.postinst line
> 1207, <STDIN> line 1.
>
> This is an unusual case and I can work around it by creating an empty
> fstab before running dpkg-reconfigure, but you might want to consider
> adding a test for /etc/fstab's existence.
There is such a test, and has been for some time.
Further, there is no filesystem call at line 1207 of the linux-base
postinst script, in the version you reported this on. (It does
approximately correspond to the line in some earlier versions where
configuration files that need to be converted are opened. But
configuration files aren't added to the list if they don't exist, so I
don't understand how this could occur unless one of those files was
deleted while you ran the postinst script.)
Ben.
> -- System Information:
> Debian Release: squeeze/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
> Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages linux-base depends on:
> ii debconf [debconf-2.0] 1.5.35 Debian configuration management
> sy
> ii libapt-pkg-perl 0.1.24+b1 Perl interface to libapt-pkg
> ii libuuid-perl 0.02-4 Perl extension for using UUID
> inte
> ii udev 161-1 /dev/ and hotplug management
> daemo
> ii util-linux 2.17.2-3.1 Miscellaneous system utilities
>
> linux-base recommends no packages.
>
> linux-base suggests no packages.
>
> -- debconf information excluded
>
>
>
--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
signature.asc
Description: This is a digitally signed message part
--- End Message ---