Bug#698203: Not a directory at /var/lib/dpkg/info/linux-base.postinst line 1177. (extlinux)

2013-01-21 Thread Trent W. Buck
Ben Hutchings wrote:
 I'll change it to treat ENOTDIR as non-fatal (same as ENOENT).

Thanks, that sounds appropriate to me.

  4875  open(/boot/extlinux/options.cfg, O_RDONLY) = -1 ENOTDIR (Not a 
  directory)

FTR, this was happening because /boot/extlinux existed -- it was the
installer program that on a normal install would be /usr/sbin/extlinux.
The same error would arise if the sysadmin did something like

echo Don't forget this system isn't using grub!  /boot/extlinux

I worked around it on my own system by simply mv extlinux extlinux.exe.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#698203: Not a directory at /var/lib/dpkg/info/linux-base.postinst line 1177. (extlinux)

2013-01-15 Thread Ben Hutchings
On Tue, 2013-01-15 at 17:20 +1100, Trent W. Buck wrote:
 Package: linux-base
 Version: 3.5
 Severity: minor
 
 I did the following:
 
   - basic squeeze install, choose no bootloader,
   - manually do an extlinux install in /boot (extlinux package is NOT 
 installed)
   - set link_in_boot=yes in kernel-img.conf
 
 Those are about the only things I did.  Then I tried to upgrade from
 squeeze to wheezy and got
 
 Not a directory at /var/lib/dpkg/info/linux-base.postinst line 1177.
 
 ...without further helpful output.  That line is part of a generic
 function, so I straced dpkg --configure -a and found
 
 4875  open(/boot/extlinux/options.cfg, O_RDONLY) = -1 ENOTDIR (Not a 
 directory)
 
 I have not investigated further but I guess this is because linux-base
 is finding /boot/ldlinux.sys and assuming it was configured in the way
 update-extlinux does it.
[...]

It's looking for configuration files that might mention block device
names, in case they need to be updated.  Naturally this is based on the
Debian package layout.

I'll change it to treat ENOTDIR as non-fatal (same as ENOENT).

Ben.

-- 
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.


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


Bug#698203: Not a directory at /var/lib/dpkg/info/linux-base.postinst line 1177. (extlinux)

2013-01-14 Thread Trent W. Buck
Package: linux-base
Version: 3.5
Severity: minor

I did the following:

  - basic squeeze install, choose no bootloader,
  - manually do an extlinux install in /boot (extlinux package is NOT installed)
  - set link_in_boot=yes in kernel-img.conf

Those are about the only things I did.  Then I tried to upgrade from
squeeze to wheezy and got

Not a directory at /var/lib/dpkg/info/linux-base.postinst line 1177.

...without further helpful output.  That line is part of a generic
function, so I straced dpkg --configure -a and found

4875  open(/boot/extlinux/options.cfg, O_RDONLY) = -1 ENOTDIR (Not a 
directory)

I have not investigated further but I guess this is because linux-base
is finding /boot/ldlinux.sys and assuming it was configured in the way
update-extlinux does it.

FWIW even when I do install extlinux via apt, I typically have a
static /boot/syslinux.cfg and I disable update-extlinux so it doesn't
run.

If you aren't interested in supporting odd extlinux setups, that's OK
with me, but I would appreciate a less obscure error message.

Here is what my system looks like:

root@debian:~# cat /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = yes

root@debian:~# find /boot -ls
3440654 drwxr-xr-x   2 root root 4096 Jan 15 17:06 /boot
344067  108 -rw-r--r--   1 root root   106172 Sep 24 00:08 
/boot/config-2.6.32-5-amd64
344068 1632 -rw-r--r--   1 root root  1666397 Sep 24 00:08 
/boot/System.map-2.6.32-5-amd64
3440690 lrwxrwxrwx   1 root root   22 Jan 15 15:45 
/boot/vmlinuz - vmlinuz-2.6.32-5-amd64
3440710 lrwxrwxrwx   1 root root   25 Jan 15 15:45 
/boot/initrd.img - initrd.img-2.6.32-5-amd64
344072   60 -rwxr-xr-x   1 root root55176 Jan 15 15:45 
/boot/extlinux
344066 2372 -rw-r--r--   1 root root  2423968 Sep 23 23:59 
/boot/vmlinuz-2.6.32-5-amd64
344080 8700 -rw-r--r--   1 root root  8891560 Jan 15 17:06 
/boot/initrd.img-2.6.32-5-amd64
344073   60 -rw-r--r--   1 root root56164 Jan 15 15:46 
/boot/menu.c32
344074   32 -r--r--r--   1 root root32256 Jan 15 15:46 
/boot/ldlinux.sys
3440764 -rw-r--r--   1 root root  457 Jan 15 15:54 
/boot/syslinux.cfg
344070 2060 -rw-r--r--   1 root root  2101443 Dec 20 01:19 
/boot/System.map-3.2.0-4-amd64
3440754 -rw-r--r--   1 root root  445 Jan 15 15:54 
/boot/syslinux.cfg~
344078  132 -rw-r--r--   1 root root   128903 Dec 20 01:19 
/boot/config-3.2.0-4-amd64
344079 2768 -rw-r--r--   1 root root  2829472 Dec 20 01:16 
/boot/vmlinuz-3.2.0-4-amd64

root@debian:~# cat /proc/partitions
major minor  #blocks  name

   808388608 sda

root@debian:~# cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=508624k,nr_inodes=127156,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 
0 0
/dev/disk/by-label/root / ext2 rw,relatime,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/disk/by-label/root /run ext2 rw,relatime,errors=remount-ro 0 0
/dev/disk/by-label/root /run/lock ext2 rw,relatime,errors=remount-ro 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,relatime 0 0


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org