Bug 14795 - Ругань при установке grub-0.97-alt3
Summary: Ругань при установке grub-0.97-alt3
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Sir Raorn
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 19:22 MSK by Evgenii Terechkov
Modified: 2008-08-08 20:13 MSD (History)
3 users (show)

See Also:


Attachments
workaround for 'line 7 - to many arguments...' error (118.46 KB, patch)
2008-04-09 21:30 MSD, Mike
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2008-03-06 19:22:15 MSK
20: grub                    
##########################################################################################
[ 95%]
/usr/sbin/detectloader: hdb: grub
/root/tmp/rpm-tmp.66887: line 7: [: too many arguments
Please install GRUB manually.

Typo в script-let-е:

elif [ -s /etc/sysconfig/grub -a grep -q quit /etc/sysconfig/grub ]; then
Comment 1 Mike 2008-04-09 21:30:31 MSD
Created attachment 2557 [details]
workaround for 'line 7 - to many arguments...' error

заменил  elif [ -s /etc/sysconfig/grub -a grep -q quit /etc/sysconfig/grub ]
на elif [ -s /etc/sysconfig/grub -a grep -q quit /etc/sysconfig/grub
2>/dev/null 1>/dev/null ]
Comment 2 Sir Raorn 2008-04-10 01:22:35 MSD
Надо

elif [ -s /etc/sysconfig/grub ] && grep -q quit /etc/sysconfig/grub
Comment 3 Sir Raorn 2008-04-18 19:57:13 MSD
Fixed in -alt4
Comment 4 Evgenii Terechkov 2008-08-08 20:13:11 MSD
Чёта забыл закрыть. Исправляюсь.