** Description changed:

  Binary package hint: debianutils
  
- happens because the word proc appears twice here:
+ discovered error:
+ =================
+ 
+ | [EMAIL PROTECTED]:/usr/src/linux-2.6.16.30# make install
+ | sh [...]install.sh [...]/bzImage System.map "/boot"
+ | /usr/sbin/mkboot: line 20: [: proc: unary operator expected
+ | ...
  
  
- notebook:[Exit 1 (SIGHUP)]/usr/sbin# mount
- /dev/sda5 on / type ext3 (rw,errors=remount-ro)
- proc on /proc type proc (rw)
- /sys on /sys type sysfs (rw)
- varrun on /var/run type tmpfs (rw)
- varlock on /var/lock type tmpfs (rw)
- procbususb on /proc/bus/usb type usbfs (rw)
- udev on /dev type tmpfs (rw)
- devpts on /dev/pts type devpts (rw,gid=5,mode=620)
- devshm on /dev/shm type tmpfs (rw)
- lrm on /lib/modules/2.6.15-22-686/volatile type tmpfs (rw)
- /dev/sda2 on /XP type ntfs (ro)
- server:/ on /server type nfs 
(rw,nosuid,nodev,soft,rsize=8192,wsize=8192,retry=1,posix,addr=10.13.1.99,user=wr)
+ the affected lines in '/usr/sbin/mkboot':
+ =========================================
+ 
+ ,-----[/usr/sbin/mkboot]
+ | 19: # root partition
+ | 20: if [ $(mount | grep -o "^proc") ] && [ -e /proc/cmdline ]; then
+ | 21:         rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2)
+ | 22: else
+ | 23:         which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1)
+ | 24: fi
+ `-----
+ 
+ 
+ details:
+ ========
+ 
+ from line 20:
+ | [EMAIL PROTECTED]: mount | grep -o "^proc"
+ | proc on /proc type proc (rw)
+ | procbususb on /proc/bus/usb type usbfs (rw)
+ 
+ If 'mount' prints more lines starting with the string "proc" the test
+ in '/usr/sbin/mkboot' fails. By appending a single space to the filter
+ string the right output line gets checked.
+ 
+ 
+ patch:
+ ======
+ 
+ #- cut here 
-------------------------------------------------------------------
+ --- /usr/sbin/mkboot    2005-12-12 13:50:32.000000000 +0100
+ +++ /tmp/mkboot 2006-11-05 13:11:12.000000000 +0100
+ @@ -17,7 +17,7 @@
+  fi
+  
+  # root partition
+ -if [ $(mount | grep -o "^proc") ] && [ -e /proc/cmdline ]; then
+ +if [ $(mount | grep -o "^proc ") ] && [ -e /proc/cmdline ]; then
+         rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2)
+  else
+         which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1)
+ #- cut here 
-------------------------------------------------------------------

** Description changed:

  Binary package hint: debianutils
  
  discovered error:
  =================
  
  | [EMAIL PROTECTED]:/usr/src/linux-2.6.16.30# make install
  | sh [...]install.sh [...]/bzImage System.map "/boot"
  | /usr/sbin/mkboot: line 20: [: proc: unary operator expected
  | ...
  
  
  the affected lines in '/usr/sbin/mkboot':
  =========================================
  
  ,-----[/usr/sbin/mkboot]
  | 19: # root partition
  | 20: if [ $(mount | grep -o "^proc") ] && [ -e /proc/cmdline ]; then
- | 21:         rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2)
+ | 21:    rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2)
  | 22: else
- | 23:         which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1)
+ | 23:    which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1)
  | 24: fi
  `-----
  
  
  details:
  ========
  
  from line 20:
  | [EMAIL PROTECTED]: mount | grep -o "^proc"
  | proc on /proc type proc (rw)
  | procbususb on /proc/bus/usb type usbfs (rw)
  
  If 'mount' prints more lines starting with the string "proc" the test
  in '/usr/sbin/mkboot' fails. By appending a single space to the filter
  string the right output line gets checked.
  
  
  patch:
  ======
  
- #- cut here 
-------------------------------------------------------------------
  --- /usr/sbin/mkboot    2005-12-12 13:50:32.000000000 +0100
  +++ /tmp/mkboot 2006-11-05 13:11:12.000000000 +0100
  @@ -17,7 +17,7 @@
   fi
   
   # root partition
  -if [ $(mount | grep -o "^proc") ] && [ -e /proc/cmdline ]; then
  +if [ $(mount | grep -o "^proc ") ] && [ -e /proc/cmdline ]; then
          rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2)
   else
          which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1)
- #- cut here 
-------------------------------------------------------------------

-- 
mkboot: line 20: [: proc: unary operator expected
https://launchpad.net/bugs/45388

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

Reply via email to