Bug 545288

Summary: installation of grub rpm cannot find vol_id
Product: [openSUSE] openSUSE 11.2 Reporter: Arvin Schnell <aschnell>
Component: BootloaderAssignee: Torsten Duwe <duwe>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jengelh, lmuelle, michel.munnix
Version: Milestone 8   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Arvin Schnell 2009-10-08 10:12:34 UTC
Created attachment 321613 [details]
y2log

Installation of Milestone 8: During installation of grub rpm this
error occurs (see y2log):

/var/tmp/rpm-tmp.97ffJM: line 25: vol_id: command not found
Comment 1 michel munnix 2009-10-31 09:57:38 UTC
same error in RC2 :
line 25 of post-install scriptlet is:
eval `PATH="$PATH":/lib/udev vol_id $bootpart`


# should anything go wrong the system will remain bootable :
[ -e /boot/grub/stage2 ] && mv /boot/grub/stage2{,.old}
# copy especially stage2 over, because it will be modified in-place !
cp -p /usr/lib/grub/*stage1*   /boot/grub 2>/dev/null || true
cp -p /usr/lib/grub/*/*stage1* /boot/grub 2>/dev/null || true

    ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/grub.info.gz)
    NUM_ARGS=${#ALL_ARGS[@]}
    if test -x sbin/install-info ; then
        if test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
            sbin/install-info "${ALL_ARGS[@]}"
        fi
    fi ;
    ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/multiboot.info.gz)
    NUM_ARGS=${#ALL_ARGS[@]}
    if test -x sbin/install-info ; then
        if test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
            sbin/install-info "${ALL_ARGS[@]}"
        fi
    fi ;#special hack for #46843
dd if=/usr/lib/grub/stage2 of=/boot/grub/stage2 bs=256k
sync
# sync may take much longer on XFS (Bug#223773)
bootpart=`df /boot/. | perl -ane '$F[0] =~ m,/dev/[^\s]*, && print $F[0]'`
eval `PATH="$PATH":/lib/udev vol_id $bootpart`
if [ "X$ID_FS_TYPE" = "X" -o "t_$ID_FS_TYPE" = "t_xfs" ]; then
        sync; sleep 5; sync; sleep 5; sync
fi
# command sequence to update-install stage1/stage2.
# leave everything else alone !
[ -e /etc/grub.conf ] && /usr/sbin/grub --batch < /etc/grub.conf >/dev/null 2>&1
exit 0
Comment 2 Lars Müller 2009-12-05 21:51:51 UTC
While upgrading a 11.1 i586 system via zypper dup I got:

Retrieving: grub-0.97-162.2.i586.rpm [done (0 B/s)]
Installing: grub-0.97-162.2 [done]
Additional rpm output:
0+1 records in
0+1 records out
114518 bytes (115 kB) copied, 0.0331318 s, 3.5 MB/s
/var/tmp/rpm-tmp.73MIAK: line 25: vol_id: command not found
Comment 3 Lars Müller 2009-12-09 13:14:56 UTC
And the same applies to openSUSE Factory as of today.

Paket grub-0.97-164.6.x86_64 wird abgerufen (762/1307), 332,0 KiB (1,4 MiB entpackt)
Abruf: grub-0.97-164.6.x86_64.rpm [fertig (0 B/s)]
Installation von: grub-0.97-164.6 [fertig]
Zusätzliche rpm-Ausgabe:
0+1 records in
0+1 records out
103270 bytes (103 kB) copied, 0.000313238 s, 330 MB/s
/var/tmp/rpm-tmp.0NsNaB: line 25: vol_id: command not found