grub-installer calls udevinfo -n without required argument

Bug #30772 reported by Mantas Kriaučiūnas
8
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

starting /usr/share/grub-installer/grub-installer /target/
couses 4 error messages from udevinfo command:
udevinfo: option requires an argument -- n
Usage: udevinfo [-anpqrVh]
  -q TYPE query database for the specified value:
             'name' name of device node
             'symlink' pointing to node
             'path' sysfs device path
             'env' the device related imported environment
             'all' all values

  -p PATH sysfs device path used for query or chain
  -n NAME node/symlink name used for query

  -r prepend to query result or print udev_root
  -a print all SYSFS_attributes along the device chain
  -e export the content of the udev database
  -V print udev version
  -h print this help text

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Can you please give me the contents of the file /proc/mounts ?

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :
Download full text (3.3 KiB)

Tollef Fog Heen wrote:
> Can you please give me the contents of the file /proc/mounts ?

Yes, of course. Btw, there is also another bug if parameter to grub-installer shell script ends with slash (if I run grub-installer /target/), I think this problem in function update_mtab() from /usr/share/grub-installer/functions.sh
Should I report another bug about this ?

Now I'm pasting terminal output when I run grub-installer /target and then cat /proc/mounts :

root@baltix-linux:~# /usr/share/grub-installer/grub-installer /target
udevinfo: option requires an argument -- n
Usage: udevinfo [-anpqrVh]
  -q TYPE query database for the specified value:
             'name' name of device node
             'symlink' pointing to node
             'path' sysfs device path
             'env' the device related imported environment
             'all' all values

  -p PATH sysfs device path used for query or chain
  -n NAME node/symlink name used for query

  -r print udev root
  -a print all SYSFS_attributes along the device chain
  -d print the relationship of devpath and the node name for all
           devices available in the database
  -V print udev version
  -h print this help text

udevinfo: option requires an argument -- n
Usage: udevinfo [-anpqrVh]
  -q TYPE query database for the specified value:
             'name' name of device node
             'symlink' pointing to node
             'path' sysfs device path
             'env' the device related imported environment
             'all' all values

  -p PATH sysfs device path used for query or chain
  -n NAME node/symlink name used for query

  -r print udev root
  -a print all SYSFS_attributes along the device chain
  -d print the relationship of devpath and the node name for all
           devices available in the database
  -V print udev version
  -h print this help text

Reading package lists... Done
Building dependency tree... Done
grub is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://security.ubuntu.com breezy-security/main Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.ubuntu.com breezy-security/restricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
mount: proc already mounted
root@baltix-linux:~# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/hdb5 /cdrom ntfs ro,noatime,nodiratime,uid=0,gid=0,fmask=0177,dmask=077,nls=cp437,errors=continue,mft_zone_multiplier=1 0 0
/dev/mapper/casper-snapshot / ext2 rw,noatime 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/mapper/casper-snapshot /dev/.static/dev ext2 rw,noatime 0 0
none /dev tmpfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /lib/modules/2.6.12-9-386/volatile tmpfs rw 0 0
tmp...

Read more...

Matt Zimmerman (mdz)
Changed in grub-installer:
assignee: nobody → tfheen
Tollef Fog Heen (tfheen)
Changed in grub-installer:
assignee: tfheen → nobody
Colin Watson (cjwatson)
Changed in grub-installer:
assignee: nobody → kamion
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub-installer - 1.32ubuntu2

---------------
grub-installer (1.32ubuntu2) intrepid; urgency=low

  [ Colin Watson ]
  * Add another guard against calling 'udevadm info' with an empty device
    name (LP: #30772).

  [ Dustin Kirkland ]
  * grub-installer: add support for writing an MBR on each disk in an
    mdadm-managed RAID providing /boot (LP: #33649)

 -- Colin Watson <email address hidden> Thu, 07 Aug 2008 19:02:15 +0100

Changed in grub-installer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.