Public bug reported:

Binary package hint: grub

When running /sbin/update-grub, it errors out when /sbin is not in the PATH 
properly:
PATH=/usr/bin:/bin:/usr/local/bin sudo /sbin/update-grub                        
                                                         
Searching for GRUB installation directory ... found: /boot/grub                 
/usr/sbin/update-grub: line 86: findfs: command not found                       
Cannot determine root device.  Assuming /dev/hda1                               
This error is probably caused by an invalid /etc/fstab                          
/usr/sbin/update-grub: line 86: findfs: command not found                       
Searching for default file ... found: /boot/grub/default                        
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst       
Searching for splash image ... none found, skipping ...                         
Found kernel: /boot/vmlinuz-2.6.28-13-generic                                   
Found kernel: /boot/memtest86+.bin                                              
Replacing config file /var/run/grub/menu.lst with new version                   
Updating /boot/grub/menu.lst ... done   

Adding in /sbin to the PATH it works fine:
PATH=/usr/bin:/bin:/usr/local/bin:/sbin sudo /sbin/update-grub                  
                                                 
Searching for GRUB installation directory ... found: /boot/grub                 
Searching for default file ... found: /boot/grub/default                        
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst       
Searching for splash image ... none found, skipping ...                         
Found kernel: /vmlinuz-2.6.28-13-generic                                        
Found kernel: /memtest86+.bin                                                   
Replacing config file /var/run/grub/menu.lst with new version                   
Updating /boot/grub/menu.lst ... done     

Happens on both intrepid and jaunty:

lsb_release -rd
Description:    Ubuntu 8.10
Release:        8.10

apt-cache policy grub
grub:
  Installed: 0.97-29ubuntu53
  Candidate: 0.97-29ubuntu53
  Version table:
 *** 0.97-29ubuntu53 0
        500 http://ubuntu-repo.qualcomm.com jaunty/main Packages
        100 /var/lib/dpkg/status

lsb_release -rd
Description:    Ubuntu 9.04
Release:        9.04

apt-cache policy grub
grub:
  Installed: 0.97-29ubuntu45
  Candidate: 0.97-29ubuntu45
  Version table:
 *** 0.97-29ubuntu45 0
        500 http://ubuntu-repo.qualcomm.com intrepid/main Packages
        500 http://ubuntu-repo.qualcomm.com intrepid-updates/main Packages
        500 http://ubuntu-repo.qualcomm.com intrepid-security/main Packages
        100 /var/lib/dpkg/status

** Affects: grub (Ubuntu)
     Importance: Undecided
         Status: New

-- 
update-grub errors out on findfs
https://bugs.launchpad.net/bugs/397548
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to