Your message dated Mon, 16 Jan 2006 23:17:04 -0800 with message-id <[EMAIL PROTECTED]> and subject line Bug#347232: fixed in dash 0.5.3-2 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 8 Jan 2006 18:15:15 +0000 >From [EMAIL PROTECTED] Sun Jan 08 10:15:15 2006 Return-path: <[EMAIL PROTECTED]> Received: from lust.fud.no ([213.145.167.25]) by spohr.debian.org with esmtp (Exim 4.50) id 1Evf4T-0002ft-Hd for [EMAIL PROTECTED]; Sun, 08 Jan 2006 10:15:15 -0800 Received: from pride.fud.no ([213.145.167.26]) by lust.fud.no with esmtp (Exim 4.50) id 1Evf4Q-0000ru-RH; Sun, 08 Jan 2006 19:15:11 +0100 Received: from localhost ([127.0.0.1]) by pride.fud.no with esmtp (Exim 4.60) (envelope-from <[EMAIL PROTECTED]>) id 1Evf4R-0005H2-0j; Sun, 08 Jan 2006 19:15:11 +0100 Subject: update-grub fails, probably due to a bashism From: Tore Anderson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Content-Type: multipart/mixed; boundary="=-uEYqdrFDqT8BbiyidpBF" Date: Sun, 08 Jan 2006 19:15:10 +0100 Message-Id: <[EMAIL PROTECTED]> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 --=-uEYqdrFDqT8BbiyidpBF Content-Type: text/plain Content-Transfer-Encoding: 7bit Package: grub Version: 0.97-2 Severity: important When I run update-grub on my machine, I get: [EMAIL PROTECTED] :) sudo /bin/sh /sbin/update-grub Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst [EMAIL PROTECTED] :( Using bash works, though: [EMAIL PROTECTED] :) sudo /bin/bash /sbin/update-grub Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.15-xen Found kernel: /boot/vmlinuz-2.6.15-2-k7 Found kernel: /boot/vmlinuz-2.6.15-1-k7 Found kernel: /boot/vmlinuz-2.6.15-test1-k7 Updating /boot/grub/menu.lst ... done [EMAIL PROTECTED] :) I've attached the output from these commands when run with "-x". Kind regards -- Tore Anderson --=-uEYqdrFDqT8BbiyidpBF Content-Disposition: attachment; filename=update-grub.bash Content-Type: text/plain; name=update-grub.bash; charset=UTF-8 Content-Transfer-Encoding: 7bit + set -e + grub_dirs='/boot/grub /boot/boot/grub' ++ find_grub_dir ++ echo -n 'Searching for GRUB installation directory ... ' Searching for GRUB installation directory ... ++ for d in '$grub_dirs' ++ '[' -d /boot/grub ']' ++ grub_dir=/boot/grub ++ break ++ '[' -z /boot/grub ']' ++ echo 'found: /boot/grub' found: /boot/grub ++ echo /boot/grub + grub_dir=/boot/grub + menu_file=/boot/grub/menu.lst ++ find_root_device +++ find_device / +++ mount_point=/ +++ device= +++ '[' -f /etc/fstab ']' +++ read DEV MNT FOO ++++ echo '#' ++++ grep -q '^#' +++ continue +++ read DEV MNT FOO ++++ echo '#' ++++ grep -q '^#' +++ continue +++ read DEV MNT FOO ++++ grep -q '^#' ++++ echo '#' +++ continue +++ read DEV MNT FOO ++++ echo /dev/hda5 ++++ grep -q '^#' +++ '[' / = / ']' +++ device=/dev/hda5 +++ read DEV MNT FOO ++++ echo /dev/fd0 ++++ grep -q '^#' +++ '[' /floppy = / ']' +++ read DEV MNT FOO ++++ echo /dev/hdc ++++ grep -q '^#' +++ '[' /cdrom = / ']' +++ read DEV MNT FOO ++++ echo proc ++++ grep -q '^#' +++ '[' /proc = / ']' +++ read DEV MNT FOO ++++ echo /dev/pride/swap ++++ grep -q '^#' +++ '[' none = / ']' +++ read DEV MNT FOO ++++ echo /dev/pride/usr ++++ grep -q '^#' +++ '[' /usr = / ']' +++ read DEV MNT FOO ++++ echo /dev/pride/home ++++ grep -q '^#' +++ '[' /home = / ']' +++ read DEV MNT FOO ++++ echo lust:/fud ++++ grep -q '^#' +++ '[' /fud = / ']' +++ read DEV MNT FOO ++++ echo /dev/sda ++++ grep -q '^#' +++ '[' /empz = / ']' +++ read DEV MNT FOO +++ '[' -n /dev/hda5 ']' +++ case "$device" in ++++ readlink -f /dev/hda5 +++ device=/dev/hda5 +++ echo /dev/hda5 ++ device=/dev/hda5 ++ '[' -z /dev/hda5 ']' ++ echo /dev/hda5 + root_device=/dev/hda5 ++ convert_kernel26 /dev/hda5 ++ echo /dev/hda5 ++ sed 's%^\(/dev/[^/]*\)/\(.*\)%\1!\2%' + root_device_2_6=/dev/hda5 ++ find_device /boot ++ mount_point=/boot ++ device= ++ '[' -f /etc/fstab ']' ++ read DEV MNT FOO +++ echo '#' +++ grep -q '^#' ++ continue ++ read DEV MNT FOO +++ echo '#' +++ grep -q '^#' ++ continue ++ read DEV MNT FOO +++ echo '#' +++ grep -q '^#' ++ continue ++ read DEV MNT FOO +++ echo /dev/hda5 +++ grep -q '^#' ++ '[' / = /boot ']' ++ read DEV MNT FOO +++ echo /dev/fd0 +++ grep -q '^#' ++ '[' /floppy = /boot ']' ++ read DEV MNT FOO +++ echo /dev/hdc +++ grep -q '^#' ++ '[' /cdrom = /boot ']' ++ read DEV MNT FOO +++ echo proc +++ grep -q '^#' ++ '[' /proc = /boot ']' ++ read DEV MNT FOO +++ echo /dev/pride/swap +++ grep -q '^#' ++ '[' none = /boot ']' ++ read DEV MNT FOO +++ echo /dev/pride/usr +++ grep -q '^#' ++ '[' /usr = /boot ']' ++ read DEV MNT FOO +++ echo /dev/pride/home +++ grep -q '^#' ++ '[' /home = /boot ']' ++ read DEV MNT FOO +++ echo lust:/fud +++ grep -q '^#' ++ '[' /fud = /boot ']' ++ read DEV MNT FOO +++ echo /dev/sda +++ grep -q '^#' ++ '[' /empz = /boot ']' ++ read DEV MNT FOO ++ '[' -n '' ']' ++ echo + boot_device= + device_map=/boot/grub/device.map + kopt='root=/dev/hda5 ro' + title='Debian GNU/Linux' + test -f /boot/grub/device.map + grub_root_device='(hd0,0)' + alternative=true + lockalternative=false + defoptions= + altoptions='(recovery mode) single' + howmany=all + memtest86=true + command_line_arguments= + test -f /etc/default/grub ++ tempfile + newtemplate=/tmp/fileDqw8Ii + cat + LC_COLLATE=C + start='### BEGIN AUTOMAGIC KERNELS LIST' + end='### END DEBIAN AUTOMAGIC KERNELS LIST' + startopt='## ## Start Default Options ##' + endopt='## ## End Default Options ##' + echo -n 'Testing for an existing GRUB menu.list file ... ' Testing for an existing GRUB menu.list file ... + '[' -f /boot/grub/menu.lst ']' + menu=/boot/grub/menu.lst + rm -f /tmp/fileDqw8Ii + unset newtemplate + echo 'found: /boot/grub/menu.lst' found: /boot/grub/menu.lst + cp -f /boot/grub/menu.lst /boot/grub/menu.lst~ ++ GetMenuOpt kopt 'root=/dev/hda5 ro' ++ opt=kopt ++ value='root=/dev/hda5 ro' +++ ExtractMenuOpt kopt +++ opt=kopt +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# kopt=/ { s/^# kopt=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp='root=/dev/hda5 ro quiet' ++ '[' -z 'root=/dev/hda5 ro quiet' ']' ++ value='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + kopt='root=/dev/hda5 ro quiet' ++ GetMenuOpt kopt '' ++ opt=kopt ++ value= +++ ExtractMenuOpt kopt +++ opt=kopt +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# kopt=/ { s/^# kopt=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp='root=/dev/hda5 ro quiet' ++ '[' -z 'root=/dev/hda5 ro quiet' ']' ++ value='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + test -z 'root=/dev/hda5 ro quiet' ++ ExtractMenuOpts '\(kopt_[a-zA-Z0-9_]\+\)' ++ opt='\(kopt_[a-zA-Z0-9_]\+\)' ++ GetMenuOpts '\(kopt_[a-zA-Z0-9_]\+\)' ++ opt='\(kopt_[a-zA-Z0-9_]\+\)' ++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# \(kopt_[a-zA-Z0-9_]\+\)=/ { p } } }' /boot/grub/menu.lst ++ sed 's/^# \(kopt_[a-zA-Z0-9_]\+\)=\(.*\)$/\1="\2"/' + eval ++ GetMenuOpts '\(kopt_[a-zA-Z0-9_]\+\)' ++ opt='\(kopt_[a-zA-Z0-9_]\+\)' ++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# \(kopt_[a-zA-Z0-9_]\+\)=/ { p } } }' /boot/grub/menu.lst + CustomKopts= ++ GetMenuOpt groot '(hd0,0)' ++ opt=groot ++ value='(hd0,0)' +++ ExtractMenuOpt groot +++ opt=groot +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# groot=/ { s/^# groot=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp='(hd0,4)' ++ '[' -z '(hd0,4)' ']' ++ value='(hd0,4)' ++ echo '(hd0,4)' + grub_root_device='(hd0,4)' ++ GetMenuOpt recovery true ++ opt=recovery ++ value=true +++ ExtractMenuOpt recovery +++ opt=recovery +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# recovery=/ { s/^# recovery=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp= ++ '[' -z '' ']' ++ echo true + alternative=true ++ GetMenuOpt alternative true ++ opt=alternative ++ value=true +++ ExtractMenuOpt alternative +++ opt=alternative +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# alternative=/ { s/^# alternative=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp=true ++ '[' -z true ']' ++ value=true ++ echo true + alternative=true ++ GetMenuOpt lockalternative false ++ opt=lockalternative ++ value=false +++ ExtractMenuOpt lockalternative +++ opt=lockalternative +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# lockalternative=/ { s/^# lockalternative=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp=false ++ '[' -z false ']' ++ value=false ++ echo false + lockalternative=false ++ GetMenuOpt defoptions '' ++ opt=defoptions ++ value= +++ ExtractMenuOpt defoptions +++ opt=defoptions +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# defoptions=/ { s/^# defoptions=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp= ++ '[' -z '' ']' ++ echo + defoptions= ++ GetMenuOpt howmany all ++ opt=howmany ++ value=all +++ ExtractMenuOpt howmany +++ opt=howmany +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# howmany=/ { s/^# howmany=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp=all ++ '[' -z all ']' ++ value=all ++ echo all + howmany=all ++ GetMenuOpt memtest86 true ++ opt=memtest86 ++ value=true +++ ExtractMenuOpt memtest86 +++ opt=memtest86 +++ sed -ne '/^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# memtest86=/ { s/^# memtest86=\(.*\)$/\1/ p } } }' /boot/grub/menu.lst ++ tmp=true ++ '[' -z true ']' ++ value=true ++ echo true + memtest86=true ++ tempfile + buffer=/tmp/fileU3ujTn + echo '###' BEGIN AUTOMAGIC KERNELS LIST + echo '## lines between the AUTOMAGIC KERNELS LIST markers will be modified' + echo '## by the debian update-grub script except for the default options below' + echo + echo '## DO NOT UNCOMMENT THEM, Just edit them to your needs' + echo + echo '## ## Start Default Options ##' + echo '## default kernel options' + echo '## default kernel options for automagic boot options' + echo '## If you want special options for specific kernels use kopt_x_y_z' + echo '## where x.y.z is kernel version. Minor versions can be omitted.' + echo '## e.g. kopt=root=/dev/hda1 ro' + echo '## kopt_2_6_8=root=/dev/hdc1 ro' + echo '## kopt_2_6_8_2_686=root=/dev/hdc2 ro' + echo '# kopt=root=/dev/hda5 ro quiet' + '[' -n '' ']' + '[' -n '' ']' + echo + echo '## default grub root device' + echo '## e.g. groot=(hd0,0)' + echo '# groot=(hd0,4)' + echo + echo '## should update-grub create alternative automagic boot options' + echo '## e.g. alternative=true' + echo '## alternative=false' + echo '# alternative=true' + echo + echo '## should update-grub lock alternative automagic boot options' + echo '## e.g. lockalternative=true' + echo '## lockalternative=false' + echo '# lockalternative=false' + echo + echo '## additional options to use with the default boot option, but not with the' + echo '## alternatives' + echo '## e.g. defoptions=vga=791 resume=/dev/hda5' + echo '# defoptions=' + echo + echo '## altoption boot targets option' + echo '## multiple altoptions lines are allowed' + echo '## e.g. altoptions=(extra menu suffix) extra boot options' + echo '## altoptions=(recovery mode) single' + grep -q '^# altoptions' /boot/grub/menu.lst + grep '^# altoptions' /boot/grub/menu.lst + echo + echo '## controls how many kernels should be put into the menu.lst' + echo '## only counts the first occurence of a kernel, not the' + echo '## alternative kernel options' + echo '## e.g. howmany=all' + echo '## howmany=7' + echo '# howmany=all' + echo + echo '## should update-grub create memtest86 boot option' + echo '## e.g. memtest86=true' + echo '## memtest86=false' + echo '# memtest86=true' + echo + echo '## ## End Default Options ##' + echo + echo -n 'Searching for splash image ... ' Searching for splash image ... ++ grep '^splashimage=' /boot/grub/menu.lst ++ true + current_splash= + splashimage_path='splashimage=(hd0,4)/boot/grub/splash.xpm.gz' + '[' -f /boot/grub/splash.xpm.gz ']' + '[' -f /boot/grub/splash.xpm.gz ']' + '[' '' '!=' '' ']' + echo 'none found, skipping ...' none found, skipping ... + sortedKernels= ++ /bin/ls -1vr /boot ++ grep -v 'dpkg-*' ++ grep '^vmlinuz-' + for kern in '$(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-")' + kern=/boot/vmlinuz-2.6.15-xen + newerKernels= + '[' /boot/vmlinuz-2.6.15-xen '!=' '' ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen' + sortedKernels=' /boot/vmlinuz-2.6.15-xen' + for kern in '$(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-")' + kern=/boot/vmlinuz-2.6.15-test1-k7 + newerKernels= + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-test1-k7 /boot/vmlinuz-2.6.15-xen +++ echo /boot/vmlinuz-2.6.15-test1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 test1 k7' +++ echo /boot/vmlinuz-2.6.15-xen +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 xen' +++ echo /boot/vmlinuz 2 6 15 test1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 -60 1 786 ' +++ echo /boot/vmlinuz 2 6 15 xen +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 99' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 -60 1 786 ' = '' ']' ++ set -- 99 2 6 15 -60 1 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 -60 1 786' ++ '[' '99 2 6 15 99' = '' ']' ++ set -- 99 2 6 15 99 ++ v2comp=99 ++ shift ++ v2='2 6 15 99' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 -60 1 786' = '' ']' ++ set -- 2 6 15 -60 1 786 ++ v1comp=2 ++ shift ++ v1='6 15 -60 1 786' ++ '[' '2 6 15 99' = '' ']' ++ set -- 2 6 15 99 ++ v2comp=2 ++ shift ++ v2='6 15 99' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 -60 1 786' = '' ']' ++ set -- 6 15 -60 1 786 ++ v1comp=6 ++ shift ++ v1='15 -60 1 786' ++ '[' '6 15 99' = '' ']' ++ set -- 6 15 99 ++ v2comp=6 ++ shift ++ v2='15 99' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 -60 1 786' = '' ']' ++ set -- 15 -60 1 786 ++ v1comp=15 ++ shift ++ v1='-60 1 786' ++ '[' '15 99' = '' ']' ++ set -- 15 99 ++ v2comp=15 ++ shift ++ v2=99 ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '-60 1 786' = '' ']' ++ set -- -60 1 786 ++ v1comp=-60 ++ shift ++ v1='1 786' ++ '[' 99 = '' ']' ++ set -- 99 ++ v2comp=99 ++ shift ++ v2= ++ '[' -60 -gt 99 ']' ++ '[' -60 -lt 99 ']' ++ result=-1 ++ '[' -1 -eq 0 ']' ++ echo -1 + res=-1 + '[' /boot/vmlinuz-2.6.15-test1-k7 '!=' '' ']' + '[' -1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen' + '[' /boot/vmlinuz-2.6.15-test1-k7 '!=' '' ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-test1-k7' + sortedKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-test1-k7' + for kern in '$(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-")' + kern=/boot/vmlinuz-2.6.15-2-k7 + newerKernels= + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-xen +++ echo /boot/vmlinuz-2.6.15-2-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 2 k7' +++ echo /boot/vmlinuz-2.6.15-xen +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 xen' +++ echo /boot/vmlinuz 2 6 15 2 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 2 786 ' +++ echo /boot/vmlinuz 2 6 15 xen +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 99' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 2 786 ' = '' ']' ++ set -- 99 2 6 15 2 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 2 786' ++ '[' '99 2 6 15 99' = '' ']' ++ set -- 99 2 6 15 99 ++ v2comp=99 ++ shift ++ v2='2 6 15 99' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 2 786' = '' ']' ++ set -- 2 6 15 2 786 ++ v1comp=2 ++ shift ++ v1='6 15 2 786' ++ '[' '2 6 15 99' = '' ']' ++ set -- 2 6 15 99 ++ v2comp=2 ++ shift ++ v2='6 15 99' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 2 786' = '' ']' ++ set -- 6 15 2 786 ++ v1comp=6 ++ shift ++ v1='15 2 786' ++ '[' '6 15 99' = '' ']' ++ set -- 6 15 99 ++ v2comp=6 ++ shift ++ v2='15 99' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 2 786' = '' ']' ++ set -- 15 2 786 ++ v1comp=15 ++ shift ++ v1='2 786' ++ '[' '15 99' = '' ']' ++ set -- 15 99 ++ v2comp=15 ++ shift ++ v2=99 ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 786' = '' ']' ++ set -- 2 786 ++ v1comp=2 ++ shift ++ v1=786 ++ '[' 99 = '' ']' ++ set -- 99 ++ v2comp=99 ++ shift ++ v2= ++ '[' 2 -gt 99 ']' ++ '[' 2 -lt 99 ']' ++ result=-1 ++ '[' -1 -eq 0 ']' ++ echo -1 + res=-1 + '[' /boot/vmlinuz-2.6.15-2-k7 '!=' '' ']' + '[' -1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen' + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-test1-k7 +++ echo /boot/vmlinuz-2.6.15-2-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 2 k7' +++ echo /boot/vmlinuz-2.6.15-test1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 test1 k7' +++ echo /boot/vmlinuz 2 6 15 2 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 2 786 ' +++ echo /boot/vmlinuz 2 6 15 test1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 -60 1 786 ' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 2 786 ' = '' ']' ++ set -- 99 2 6 15 2 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 2 786' ++ '[' '99 2 6 15 -60 1 786 ' = '' ']' ++ set -- 99 2 6 15 -60 1 786 ++ v2comp=99 ++ shift ++ v2='2 6 15 -60 1 786' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 2 786' = '' ']' ++ set -- 2 6 15 2 786 ++ v1comp=2 ++ shift ++ v1='6 15 2 786' ++ '[' '2 6 15 -60 1 786' = '' ']' ++ set -- 2 6 15 -60 1 786 ++ v2comp=2 ++ shift ++ v2='6 15 -60 1 786' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 2 786' = '' ']' ++ set -- 6 15 2 786 ++ v1comp=6 ++ shift ++ v1='15 2 786' ++ '[' '6 15 -60 1 786' = '' ']' ++ set -- 6 15 -60 1 786 ++ v2comp=6 ++ shift ++ v2='15 -60 1 786' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 2 786' = '' ']' ++ set -- 15 2 786 ++ v1comp=15 ++ shift ++ v1='2 786' ++ '[' '15 -60 1 786' = '' ']' ++ set -- 15 -60 1 786 ++ v2comp=15 ++ shift ++ v2='-60 1 786' ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 786' = '' ']' ++ set -- 2 786 ++ v1comp=2 ++ shift ++ v1=786 ++ '[' '-60 1 786' = '' ']' ++ set -- -60 1 786 ++ v2comp=-60 ++ shift ++ v2='1 786' ++ '[' 2 -gt -60 ']' ++ result=1 ++ '[' 1 -eq 0 ']' ++ echo 1 + res=1 + '[' /boot/vmlinuz-2.6.15-2-k7 '!=' '' ']' + '[' 1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-test1-k7' + kern= + '[' '' '!=' '' ']' + sortedKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-test1-k7' + for kern in '$(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-")' + kern=/boot/vmlinuz-2.6.15-1-k7 + newerKernels= + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-1-k7 /boot/vmlinuz-2.6.15-xen +++ echo /boot/vmlinuz-2.6.15-1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 1 k7' +++ echo /boot/vmlinuz-2.6.15-xen +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 xen' +++ echo /boot/vmlinuz 2 6 15 1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 1 786 ' +++ echo /boot/vmlinuz 2 6 15 xen +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 99' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 1 786 ' = '' ']' ++ set -- 99 2 6 15 1 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 1 786' ++ '[' '99 2 6 15 99' = '' ']' ++ set -- 99 2 6 15 99 ++ v2comp=99 ++ shift ++ v2='2 6 15 99' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 1 786' = '' ']' ++ set -- 2 6 15 1 786 ++ v1comp=2 ++ shift ++ v1='6 15 1 786' ++ '[' '2 6 15 99' = '' ']' ++ set -- 2 6 15 99 ++ v2comp=2 ++ shift ++ v2='6 15 99' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 1 786' = '' ']' ++ set -- 6 15 1 786 ++ v1comp=6 ++ shift ++ v1='15 1 786' ++ '[' '6 15 99' = '' ']' ++ set -- 6 15 99 ++ v2comp=6 ++ shift ++ v2='15 99' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 1 786' = '' ']' ++ set -- 15 1 786 ++ v1comp=15 ++ shift ++ v1='1 786' ++ '[' '15 99' = '' ']' ++ set -- 15 99 ++ v2comp=15 ++ shift ++ v2=99 ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '1 786' = '' ']' ++ set -- 1 786 ++ v1comp=1 ++ shift ++ v1=786 ++ '[' 99 = '' ']' ++ set -- 99 ++ v2comp=99 ++ shift ++ v2= ++ '[' 1 -gt 99 ']' ++ '[' 1 -lt 99 ']' ++ result=-1 ++ '[' -1 -eq 0 ']' ++ echo -1 + res=-1 + '[' /boot/vmlinuz-2.6.15-1-k7 '!=' '' ']' + '[' -1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen' + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-1-k7 /boot/vmlinuz-2.6.15-2-k7 +++ echo /boot/vmlinuz-2.6.15-1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 1 k7' +++ echo /boot/vmlinuz-2.6.15-2-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 2 k7' +++ echo /boot/vmlinuz 2 6 15 1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 1 786 ' +++ echo /boot/vmlinuz 2 6 15 2 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 2 786 ' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 1 786 ' = '' ']' ++ set -- 99 2 6 15 1 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 1 786' ++ '[' '99 2 6 15 2 786 ' = '' ']' ++ set -- 99 2 6 15 2 786 ++ v2comp=99 ++ shift ++ v2='2 6 15 2 786' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 1 786' = '' ']' ++ set -- 2 6 15 1 786 ++ v1comp=2 ++ shift ++ v1='6 15 1 786' ++ '[' '2 6 15 2 786' = '' ']' ++ set -- 2 6 15 2 786 ++ v2comp=2 ++ shift ++ v2='6 15 2 786' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 1 786' = '' ']' ++ set -- 6 15 1 786 ++ v1comp=6 ++ shift ++ v1='15 1 786' ++ '[' '6 15 2 786' = '' ']' ++ set -- 6 15 2 786 ++ v2comp=6 ++ shift ++ v2='15 2 786' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 1 786' = '' ']' ++ set -- 15 1 786 ++ v1comp=15 ++ shift ++ v1='1 786' ++ '[' '15 2 786' = '' ']' ++ set -- 15 2 786 ++ v2comp=15 ++ shift ++ v2='2 786' ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '1 786' = '' ']' ++ set -- 1 786 ++ v1comp=1 ++ shift ++ v1=786 ++ '[' '2 786' = '' ']' ++ set -- 2 786 ++ v2comp=2 ++ shift ++ v2=786 ++ '[' 1 -gt 2 ']' ++ '[' 1 -lt 2 ']' ++ result=-1 ++ '[' -1 -eq 0 ']' ++ echo -1 + res=-1 + '[' /boot/vmlinuz-2.6.15-1-k7 '!=' '' ']' + '[' -1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-2-k7' + for i in '$sortedKernels' ++ CompareVersions /boot/vmlinuz-2.6.15-1-k7 /boot/vmlinuz-2.6.15-test1-k7 +++ echo /boot/vmlinuz-2.6.15-1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v1='/boot/vmlinuz 2 6 15 1 k7' +++ echo /boot/vmlinuz-2.6.15-test1-k7 +++ sed -e 's![-\.]\+! !g' -e 's![\.\-]!!g' ++ v2='/boot/vmlinuz 2 6 15 test1 k7' +++ echo /boot/vmlinuz 2 6 15 1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v1='99 2 6 15 1 786 ' +++ echo /boot/vmlinuz 2 6 15 test1 k7 +++ sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]\+!99!g' ++ v2='99 2 6 15 -60 1 786 ' ++ result=0 ++ v1finished=0 ++ v2finished=0 ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '99 2 6 15 1 786 ' = '' ']' ++ set -- 99 2 6 15 1 786 ++ v1comp=99 ++ shift ++ v1='2 6 15 1 786' ++ '[' '99 2 6 15 -60 1 786 ' = '' ']' ++ set -- 99 2 6 15 -60 1 786 ++ v2comp=99 ++ shift ++ v2='2 6 15 -60 1 786' ++ '[' 99 -gt 99 ']' ++ '[' 99 -lt 99 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '2 6 15 1 786' = '' ']' ++ set -- 2 6 15 1 786 ++ v1comp=2 ++ shift ++ v1='6 15 1 786' ++ '[' '2 6 15 -60 1 786' = '' ']' ++ set -- 2 6 15 -60 1 786 ++ v2comp=2 ++ shift ++ v2='6 15 -60 1 786' ++ '[' 2 -gt 2 ']' ++ '[' 2 -lt 2 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '6 15 1 786' = '' ']' ++ set -- 6 15 1 786 ++ v1comp=6 ++ shift ++ v1='15 1 786' ++ '[' '6 15 -60 1 786' = '' ']' ++ set -- 6 15 -60 1 786 ++ v2comp=6 ++ shift ++ v2='15 -60 1 786' ++ '[' 6 -gt 6 ']' ++ '[' 6 -lt 6 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '15 1 786' = '' ']' ++ set -- 15 1 786 ++ v1comp=15 ++ shift ++ v1='1 786' ++ '[' '15 -60 1 786' = '' ']' ++ set -- 15 -60 1 786 ++ v2comp=15 ++ shift ++ v2='-60 1 786' ++ '[' 15 -gt 15 ']' ++ '[' 15 -lt 15 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' 0 -eq 0 ']' ++ '[' '1 786' = '' ']' ++ set -- 1 786 ++ v1comp=1 ++ shift ++ v1=786 ++ '[' '-60 1 786' = '' ']' ++ set -- -60 1 786 ++ v2comp=-60 ++ shift ++ v2='1 786' ++ '[' 1 -gt -60 ']' ++ result=1 ++ '[' 1 -eq 0 ']' ++ echo 1 + res=1 + '[' /boot/vmlinuz-2.6.15-1-k7 '!=' '' ']' + '[' 1 -gt 0 ']' + newerKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-1-k7 /boot/vmlinuz-2.6.15-test1-k7' + kern= + '[' '' '!=' '' ']' + sortedKernels=' /boot/vmlinuz-2.6.15-xen /boot/vmlinuz-2.6.15-2-k7 /boot/vmlinuz-2.6.15-1-k7 /boot/vmlinuz-2.6.15-test1-k7' + test -f /boot/vmlinuz.old + test -f /boot/vmlinuz + kernel_dir=/boot + '[' -n '' ']' + counter=0 + for kern in '$sortedKernels' + counter=1 + test '!' xall = xall ++ basename /boot/vmlinuz-2.6.15-xen + kernelName=vmlinuz-2.6.15-xen ++ echo vmlinuz-2.6.15-xen ++ sed -e s/vmlinuz// + kernelVersion=-2.6.15-xen ++ FindInitrdName /boot -2.6.15-xen +++ echo /boot +++ sed -e 's#/*$##' ++ directory=/boot ++ version=-2.6.15-xen ++ initrdName= ++ names='initrd initrd.img initrd-lvm' ++ compressed=gz ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd-2.6.15-xen ']' ++ for c in '$compressed' ++ '[' -f /boot/initrd-2.6.15-xen.gz ']' ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd.img-2.6.15-xen ']' ++ initrdName=initrd.img-2.6.15-xen ++ break ++ echo initrd.img-2.6.15-xen + initrdName=initrd.img-2.6.15-xen + initrd= + kernel=/boot/vmlinuz-2.6.15-xen + '[' -n initrd.img-2.6.15-xen ']' + initrd=/boot/initrd.img-2.6.15-xen + echo 'Found kernel: /boot/vmlinuz-2.6.15-xen' Found kernel: /boot/vmlinuz-2.6.15-xen + '[' vmlinuz-2.6.15-xen = vmlinuz ']' + '[' vmlinuz-2.6.15-xen = vmlinuz.old ']' ++ echo -2.6.15-xen ++ sed -e 's/^-//' + kernelVersion=2.6.15-xen ++ get_kernel_opt 2.6.15-xen ++ kernel_version=2.6.15-xen +++ echo 2.6.15-xen +++ sed 's/^[^0-9]*//' ++ version=2.6.15-xen +++ echo 2.6.15-xen +++ sed 's/[-\+\.]/_/g' ++ version=2_6_15_xen ++ '[' -n 2_6_15_xen ']' ++ '[' -n 2_6_15_xen ']' +++ eval 'echo ${kopt_2_6_15_xen}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_xen +++ sed 's/_\?[^_]*$//' ++ version=2_6_15 ++ '[' -n 2_6_15 ']' +++ eval 'echo ${kopt_2_6_15}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15 +++ sed 's/_\?[^_]*$//' ++ version=2_6 ++ '[' -n 2_6 ']' +++ eval 'echo ${kopt_2_6}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6 +++ sed 's/_\?[^_]*$//' ++ version=2 ++ '[' -n 2 ']' +++ eval 'echo ${kopt_2}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2 +++ sed 's/_\?[^_]*$//' ++ version= ++ '[' -n '' ']' ++ '[' -z '' ']' ++ currentOpt='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + currentOpt='root=/dev/hda5 ro quiet' + write_kernel_entry 2.6.15-xen '' '' '(hd0,4)' /boot/vmlinuz-2.6.15-xen 'root=/dev/hda5 ro quiet ' '' /boot/initrd.img-2.6.15-xen true + kernel_version=2.6.15-xen + recovery_desc= + lock_alternative= + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-xen + kernel_options='root=/dev/hda5 ro quiet ' + recovery_suffix= + initrd=/boot/initrd.img-2.6.15-xen + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-xen' + '[' -n '' ']' + echo + test x = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-xen root=/dev/hda5 ro quiet ' + '[' -n '' ']' + echo + '[' -n /boot/initrd.img-2.6.15-xen ']' + echo 'initrd /boot/initrd.img-2.6.15-xen' + test xtrue = xtrue + echo savedefault + echo boot + echo + test '!' xtrue = xfalse + sed -ne 's/# altoptions=\(.*\)/\1/p' /tmp/fileU3ujTn + read line ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p' + descr='(recovery mode)' ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p' + suffix=single + write_kernel_entry 2.6.15-xen '(recovery mode)' false '(hd0,4)' /boot/vmlinuz-2.6.15-xen 'root=/dev/hda5 ro quiet' single /boot/initrd.img-2.6.15-xen true + kernel_version=2.6.15-xen + recovery_desc='(recovery mode)' + lock_alternative=false + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-xen + kernel_options='root=/dev/hda5 ro quiet' + recovery_suffix=single + initrd=/boot/initrd.img-2.6.15-xen + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-xen' + '[' -n '(recovery mode)' ']' + echo -n ' (recovery mode)' + echo + test xfalse = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-xen root=/dev/hda5 ro quiet' + '[' -n '(recovery mode)' ']' + echo -n ' single' + echo + '[' -n /boot/initrd.img-2.6.15-xen ']' + echo 'initrd /boot/initrd.img-2.6.15-xen' + test xtrue = xtrue + echo savedefault + echo boot + echo + read line + for kern in '$sortedKernels' + counter=2 + test '!' xall = xall ++ basename /boot/vmlinuz-2.6.15-2-k7 + kernelName=vmlinuz-2.6.15-2-k7 ++ echo vmlinuz-2.6.15-2-k7 ++ sed -e s/vmlinuz// + kernelVersion=-2.6.15-2-k7 ++ FindInitrdName /boot -2.6.15-2-k7 +++ sed -e 's#/*$##' ++ directory=/boot ++ version=-2.6.15-2-k7 ++ initrdName= ++ names='initrd initrd.img initrd-lvm' ++ compressed=gz ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd-2.6.15-2-k7 ']' ++ for c in '$compressed' ++ '[' -f /boot/initrd-2.6.15-2-k7.gz ']' ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd.img-2.6.15-2-k7 ']' ++ initrdName=initrd.img-2.6.15-2-k7 ++ break ++ echo initrd.img-2.6.15-2-k7 + initrdName=initrd.img-2.6.15-2-k7 + initrd= + kernel=/boot/vmlinuz-2.6.15-2-k7 + '[' -n initrd.img-2.6.15-2-k7 ']' + initrd=/boot/initrd.img-2.6.15-2-k7 + echo 'Found kernel: /boot/vmlinuz-2.6.15-2-k7' Found kernel: /boot/vmlinuz-2.6.15-2-k7 + '[' vmlinuz-2.6.15-2-k7 = vmlinuz ']' + '[' vmlinuz-2.6.15-2-k7 = vmlinuz.old ']' ++ echo -2.6.15-2-k7 ++ sed -e 's/^-//' + kernelVersion=2.6.15-2-k7 ++ get_kernel_opt 2.6.15-2-k7 ++ kernel_version=2.6.15-2-k7 +++ echo 2.6.15-2-k7 +++ sed 's/^[^0-9]*//' ++ version=2.6.15-2-k7 +++ echo 2.6.15-2-k7 +++ sed 's/[-\+\.]/_/g' ++ version=2_6_15_2_k7 ++ '[' -n 2_6_15_2_k7 ']' ++ '[' -n 2_6_15_2_k7 ']' +++ eval 'echo ${kopt_2_6_15_2_k7}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_2_k7 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15_2 ++ '[' -n 2_6_15_2 ']' +++ eval 'echo ${kopt_2_6_15_2}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_2 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15 ++ '[' -n 2_6_15 ']' +++ eval 'echo ${kopt_2_6_15}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15 +++ sed 's/_\?[^_]*$//' ++ version=2_6 ++ '[' -n 2_6 ']' +++ eval 'echo ${kopt_2_6}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6 +++ sed 's/_\?[^_]*$//' ++ version=2 ++ '[' -n 2 ']' +++ eval 'echo ${kopt_2}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2 +++ sed 's/_\?[^_]*$//' ++ version= ++ '[' -n '' ']' ++ '[' -z '' ']' ++ currentOpt='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + currentOpt='root=/dev/hda5 ro quiet' + write_kernel_entry 2.6.15-2-k7 '' '' '(hd0,4)' /boot/vmlinuz-2.6.15-2-k7 'root=/dev/hda5 ro quiet ' '' /boot/initrd.img-2.6.15-2-k7 true + kernel_version=2.6.15-2-k7 + recovery_desc= + lock_alternative= + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-2-k7 + kernel_options='root=/dev/hda5 ro quiet ' + recovery_suffix= + initrd=/boot/initrd.img-2.6.15-2-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-2-k7' + '[' -n '' ']' + echo + test x = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-2-k7 root=/dev/hda5 ro quiet ' + '[' -n '' ']' + echo + '[' -n /boot/initrd.img-2.6.15-2-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-2-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + test '!' xtrue = xfalse + sed -ne 's/# altoptions=\(.*\)/\1/p' /tmp/fileU3ujTn + read line ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p' + descr='(recovery mode)' ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p' + suffix=single + write_kernel_entry 2.6.15-2-k7 '(recovery mode)' false '(hd0,4)' /boot/vmlinuz-2.6.15-2-k7 'root=/dev/hda5 ro quiet' single /boot/initrd.img-2.6.15-2-k7 true + kernel_version=2.6.15-2-k7 + recovery_desc='(recovery mode)' + lock_alternative=false + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-2-k7 + kernel_options='root=/dev/hda5 ro quiet' + recovery_suffix=single + initrd=/boot/initrd.img-2.6.15-2-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-2-k7' + '[' -n '(recovery mode)' ']' + echo -n ' (recovery mode)' + echo + test xfalse = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-2-k7 root=/dev/hda5 ro quiet' + '[' -n '(recovery mode)' ']' + echo -n ' single' + echo + '[' -n /boot/initrd.img-2.6.15-2-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-2-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + read line + for kern in '$sortedKernels' + counter=3 + test '!' xall = xall ++ basename /boot/vmlinuz-2.6.15-1-k7 + kernelName=vmlinuz-2.6.15-1-k7 ++ echo vmlinuz-2.6.15-1-k7 ++ sed -e s/vmlinuz// + kernelVersion=-2.6.15-1-k7 ++ FindInitrdName /boot -2.6.15-1-k7 +++ echo /boot +++ sed -e 's#/*$##' ++ directory=/boot ++ version=-2.6.15-1-k7 ++ initrdName= ++ names='initrd initrd.img initrd-lvm' ++ compressed=gz ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd-2.6.15-1-k7 ']' ++ for c in '$compressed' ++ '[' -f /boot/initrd-2.6.15-1-k7.gz ']' ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd.img-2.6.15-1-k7 ']' ++ initrdName=initrd.img-2.6.15-1-k7 ++ break ++ echo initrd.img-2.6.15-1-k7 + initrdName=initrd.img-2.6.15-1-k7 + initrd= + kernel=/boot/vmlinuz-2.6.15-1-k7 + '[' -n initrd.img-2.6.15-1-k7 ']' + initrd=/boot/initrd.img-2.6.15-1-k7 + echo 'Found kernel: /boot/vmlinuz-2.6.15-1-k7' Found kernel: /boot/vmlinuz-2.6.15-1-k7 + '[' vmlinuz-2.6.15-1-k7 = vmlinuz ']' + '[' vmlinuz-2.6.15-1-k7 = vmlinuz.old ']' ++ echo -2.6.15-1-k7 ++ sed -e 's/^-//' + kernelVersion=2.6.15-1-k7 ++ get_kernel_opt 2.6.15-1-k7 ++ kernel_version=2.6.15-1-k7 +++ echo 2.6.15-1-k7 +++ sed 's/^[^0-9]*//' ++ version=2.6.15-1-k7 +++ echo 2.6.15-1-k7 +++ sed 's/[-\+\.]/_/g' ++ version=2_6_15_1_k7 ++ '[' -n 2_6_15_1_k7 ']' ++ '[' -n 2_6_15_1_k7 ']' +++ eval 'echo ${kopt_2_6_15_1_k7}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_1_k7 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15_1 ++ '[' -n 2_6_15_1 ']' +++ eval 'echo ${kopt_2_6_15_1}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_1 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15 ++ '[' -n 2_6_15 ']' +++ eval 'echo ${kopt_2_6_15}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15 +++ sed 's/_\?[^_]*$//' ++ version=2_6 ++ '[' -n 2_6 ']' +++ eval 'echo ${kopt_2_6}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6 +++ sed 's/_\?[^_]*$//' ++ version=2 ++ '[' -n 2 ']' +++ eval 'echo ${kopt_2}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ sed 's/_\?[^_]*$//' +++ echo 2 ++ version= ++ '[' -n '' ']' ++ '[' -z '' ']' ++ currentOpt='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + currentOpt='root=/dev/hda5 ro quiet' + write_kernel_entry 2.6.15-1-k7 '' '' '(hd0,4)' /boot/vmlinuz-2.6.15-1-k7 'root=/dev/hda5 ro quiet ' '' /boot/initrd.img-2.6.15-1-k7 true + kernel_version=2.6.15-1-k7 + recovery_desc= + lock_alternative= + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-1-k7 + kernel_options='root=/dev/hda5 ro quiet ' + recovery_suffix= + initrd=/boot/initrd.img-2.6.15-1-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-1-k7' + '[' -n '' ']' + echo + test x = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-1-k7 root=/dev/hda5 ro quiet ' + '[' -n '' ']' + echo + '[' -n /boot/initrd.img-2.6.15-1-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-1-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + test '!' xtrue = xfalse + sed -ne 's/# altoptions=\(.*\)/\1/p' /tmp/fileU3ujTn + read line ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p' + descr='(recovery mode)' ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p' + suffix=single + write_kernel_entry 2.6.15-1-k7 '(recovery mode)' false '(hd0,4)' /boot/vmlinuz-2.6.15-1-k7 'root=/dev/hda5 ro quiet' single /boot/initrd.img-2.6.15-1-k7 true + kernel_version=2.6.15-1-k7 + recovery_desc='(recovery mode)' + lock_alternative=false + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-1-k7 + kernel_options='root=/dev/hda5 ro quiet' + recovery_suffix=single + initrd=/boot/initrd.img-2.6.15-1-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-1-k7' + '[' -n '(recovery mode)' ']' + echo -n ' (recovery mode)' + echo + test xfalse = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-1-k7 root=/dev/hda5 ro quiet' + '[' -n '(recovery mode)' ']' + echo -n ' single' + echo + '[' -n /boot/initrd.img-2.6.15-1-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-1-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + read line + for kern in '$sortedKernels' + counter=4 + test '!' xall = xall ++ basename /boot/vmlinuz-2.6.15-test1-k7 + kernelName=vmlinuz-2.6.15-test1-k7 ++ echo vmlinuz-2.6.15-test1-k7 ++ sed -e s/vmlinuz// + kernelVersion=-2.6.15-test1-k7 ++ FindInitrdName /boot -2.6.15-test1-k7 +++ echo /boot +++ sed -e 's#/*$##' ++ directory=/boot ++ version=-2.6.15-test1-k7 ++ initrdName= ++ names='initrd initrd.img initrd-lvm' ++ compressed=gz ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd-2.6.15-test1-k7 ']' ++ for c in '$compressed' ++ '[' -f /boot/initrd-2.6.15-test1-k7.gz ']' ++ for n in '$names' ++ '[' -z '' ']' ++ '[' -f /boot/initrd.img-2.6.15-test1-k7 ']' ++ initrdName=initrd.img-2.6.15-test1-k7 ++ break ++ echo initrd.img-2.6.15-test1-k7 + initrdName=initrd.img-2.6.15-test1-k7 + initrd= + kernel=/boot/vmlinuz-2.6.15-test1-k7 + '[' -n initrd.img-2.6.15-test1-k7 ']' + initrd=/boot/initrd.img-2.6.15-test1-k7 + echo 'Found kernel: /boot/vmlinuz-2.6.15-test1-k7' Found kernel: /boot/vmlinuz-2.6.15-test1-k7 + '[' vmlinuz-2.6.15-test1-k7 = vmlinuz ']' + '[' vmlinuz-2.6.15-test1-k7 = vmlinuz.old ']' ++ echo -2.6.15-test1-k7 ++ sed -e 's/^-//' + kernelVersion=2.6.15-test1-k7 ++ get_kernel_opt 2.6.15-test1-k7 ++ kernel_version=2.6.15-test1-k7 +++ sed 's/^[^0-9]*//' +++ echo 2.6.15-test1-k7 ++ version=2.6.15-test1-k7 +++ echo 2.6.15-test1-k7 +++ sed 's/[-\+\.]/_/g' ++ version=2_6_15_test1_k7 ++ '[' -n 2_6_15_test1_k7 ']' ++ '[' -n 2_6_15_test1_k7 ']' +++ eval 'echo ${kopt_2_6_15_test1_k7}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_test1_k7 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15_test1 ++ '[' -n 2_6_15_test1 ']' +++ eval 'echo ${kopt_2_6_15_test1}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15_test1 +++ sed 's/_\?[^_]*$//' ++ version=2_6_15 ++ '[' -n 2_6_15 ']' +++ eval 'echo ${kopt_2_6_15}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6_15 +++ sed 's/_\?[^_]*$//' ++ version=2_6 ++ '[' -n 2_6 ']' +++ eval 'echo ${kopt_2_6}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2_6 +++ sed 's/_\?[^_]*$//' ++ version=2 ++ '[' -n 2 ']' +++ eval 'echo ${kopt_2}' ++++ echo ++ currentOpt= ++ '[' -n '' ']' +++ echo 2 +++ sed 's/_\?[^_]*$//' ++ version= ++ '[' -n '' ']' ++ '[' -z '' ']' ++ currentOpt='root=/dev/hda5 ro quiet' ++ echo root=/dev/hda5 ro quiet + currentOpt='root=/dev/hda5 ro quiet' + write_kernel_entry 2.6.15-test1-k7 '' '' '(hd0,4)' /boot/vmlinuz-2.6.15-test1-k7 'root=/dev/hda5 ro quiet ' '' /boot/initrd.img-2.6.15-test1-k7 true + kernel_version=2.6.15-test1-k7 + recovery_desc= + lock_alternative= + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-test1-k7 + kernel_options='root=/dev/hda5 ro quiet ' + recovery_suffix= + initrd=/boot/initrd.img-2.6.15-test1-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-test1-k7' + '[' -n '' ']' + echo + test x = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-test1-k7 root=/dev/hda5 ro quiet ' + '[' -n '' ']' + echo + '[' -n /boot/initrd.img-2.6.15-test1-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-test1-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + test '!' xtrue = xfalse + sed -ne 's/# altoptions=\(.*\)/\1/p' /tmp/fileU3ujTn + read line ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p' + descr='(recovery mode)' ++ echo '(recovery' 'mode)' single ++ sed -ne 's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p' + suffix=single + write_kernel_entry 2.6.15-test1-k7 '(recovery mode)' false '(hd0,4)' /boot/vmlinuz-2.6.15-test1-k7 'root=/dev/hda5 ro quiet' single /boot/initrd.img-2.6.15-test1-k7 true + kernel_version=2.6.15-test1-k7 + recovery_desc='(recovery mode)' + lock_alternative=false + grub_root_device='(hd0,4)' + kernel=/boot/vmlinuz-2.6.15-test1-k7 + kernel_options='root=/dev/hda5 ro quiet' + recovery_suffix=single + initrd=/boot/initrd.img-2.6.15-test1-k7 + savedefault=true + echo -n 'title Debian GNU/Linux, kernel 2.6.15-test1-k7' + '[' -n '(recovery mode)' ']' + echo -n ' (recovery mode)' + echo + test xfalse = xtrue + echo 'root (hd0,4)' + echo -n 'kernel /boot/vmlinuz-2.6.15-test1-k7 root=/dev/hda5 ro quiet' + '[' -n '(recovery mode)' ']' + echo -n ' single' + echo + '[' -n /boot/initrd.img-2.6.15-test1-k7 ']' + echo 'initrd /boot/initrd.img-2.6.15-test1-k7' + test xtrue = xtrue + echo savedefault + echo boot + echo + read line + memtest86names='memtest86 memtest86+' + test '!' xtrue = xfalse + for name in '$memtest86names' + test -f /boot/memtest86.bin + for name in '$memtest86names' + test -f /boot/memtest86+.bin + echo '###' END DEBIAN AUTOMAGIC KERNELS LIST + echo -n 'Updating /boot/grub/menu.lst ... ' Updating /boot/grub/menu.lst ... + grep -q '^### BEGIN AUTOMAGIC KERNELS LIST' /boot/grub/menu.lst + umask 077 + sed -e '/^### BEGIN AUTOMAGIC KERNELS LIST/,/^### END DEBIAN AUTOMAGIC KERNELS LIST/{ /^### BEGIN AUTOMAGIC KERNELS LIST/r /tmp/fileU3ujTn d } ' /boot/grub/menu.lst + cat /boot/grub/menu.lst.new + rm -f /tmp/fileU3ujTn /boot/grub/menu.lst.new + echo done done + echo --=-uEYqdrFDqT8BbiyidpBF Content-Disposition: attachment; filename=update-grub.sh Content-Type: application/x-shellscript; name=update-grub.sh Content-Transfer-Encoding: 7bit + set -e + grub_dirs=/boot/grub /boot/boot/grub + find_grub_dir + echo -n Searching for GRUB installation directory ... Searching for GRUB installation directory ... + [ -d /boot/grub ] + grub_dir=/boot/grub + break + [ -z /boot/grub ] + echo found: /boot/grub found: /boot/grub + echo /boot/grub + grub_dir=/boot/grub + menu_file=/boot/grub/menu.lst + find_root_device + find_device / + mount_point=/ + device= + [ -f /etc/fstab ] + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo /dev/hda5 + grep -q ^# + + [ / = / ] + device=/dev/hda5 + read DEV MNT FOO + echo /dev/fd0 + grep -q ^# + + [ /floppy = / ] + read DEV MNT FOO + echo /dev/hdc + grep -q ^# + + [ /cdrom = / ] + read DEV MNT FOO + echo proc + grep -q ^# + + [ /proc = / ] + read DEV MNT FOO + echo /dev/pride/swap + grep -q ^# + + [ none = / ] + read DEV MNT FOO + echo /dev/pride/usr + grep -q ^# + + [ /usr = / ] + read DEV MNT FOO + echo /dev/pride/home + grep -q ^# + + [ /home = / ] + read DEV MNT FOO + echo lust:/fud + grep -q ^# + + [ /fud = / ] + read DEV MNT FOO + echo /dev/sda + grep -q ^# + + [ /empz = / ] + read DEV MNT FOO + [ -n /dev/hda5 ] + readlink -f /dev/hda5 + device=/dev/hda5 + echo /dev/hda5 + device=/dev/hda5 + [ -z /dev/hda5 ] + echo /dev/hda5 + root_device=/dev/hda5 + convert_kernel26 /dev/hda5 + echo /dev/hda5 + sed s%^\(/dev/[^/]*\)/\(.*\)%\1!\2% + root_device_2_6=/dev/hda5 + find_device /boot + mount_point=/boot + device= + [ -f /etc/fstab ] + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo # + grep -q ^# + + continue + read DEV MNT FOO + echo /dev/hda5 + grep -q ^# + + [ / = /boot ] + read DEV MNT FOO + echo /dev/fd0 + grep -q ^# + + [ /floppy = /boot ] + read DEV MNT FOO + echo /dev/hdc + grep -q ^# + + [ /cdrom = /boot ] + read DEV MNT FOO + echo proc + grep -q ^# + + [ /proc = /boot ] + read DEV MNT FOO + echo /dev/pride/swap + grep -q ^# + + [ none = /boot ] + read DEV MNT FOO + echo /dev/pride/usr + grep -q ^# + + [ /usr = /boot ] + read DEV MNT FOO + echo /dev/pride/home + grep -q ^# + + [ /home = /boot ] + read DEV MNT FOO + echo lust:/fud + grep -q ^# + + [ /fud = /boot ] + read DEV MNT FOO + echo /dev/sda + grep -q ^# + + [ /empz = /boot ] + read DEV MNT FOO + [ -n ] + echo + boot_device= + device_map=/boot/grub/device.map + kopt=root=/dev/hda5 ro + title=Debian GNU/Linux + test -f /boot/grub/device.map + grub_root_device=(hd0,0) + alternative=true + lockalternative=false + defoptions= + altoptions=(recovery mode) single + howmany=all + memtest86=true + command_line_arguments= + test -f /etc/default/grub + tempfile + newtemplate=/tmp/fileQG60CF + cat + LC_COLLATE=C + start=### BEGIN AUTOMAGIC KERNELS LIST + end=### END DEBIAN AUTOMAGIC KERNELS LIST + startopt=## ## Start Default Options ## + endopt=## ## End Default Options ## + echo -n Testing for an existing GRUB menu.list file ... Testing for an existing GRUB menu.list file ... + [ -f /boot/grub/menu.lst ] + menu=/boot/grub/menu.lst + rm -f /tmp/fileQG60CF + unset newtemplate + echo found: /boot/grub/menu.lst found: /boot/grub/menu.lst + cp -f /boot/grub/menu.lst /boot/grub/menu.lst~ + GetMenuOpt kopt root=/dev/hda5 ro + opt=kopt + value=root=/dev/hda5 ro + ExtractMenuOpt kopt + opt=kopt + sed -ne /^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# kopt=/ { s/^# kopt=\(.*\)$/\1/ p } } } /boot/grub/menu.lst + tmp=root=/dev/hda5 ro quiet + [ -z root=/dev/hda5 ro quiet ] + value=root=/dev/hda5 ro quiet + echo root=/dev/hda5 ro quiet + kopt=root=/dev/hda5 ro quiet + GetMenuOpt kopt + opt=kopt + value= + ExtractMenuOpt kopt + opt=kopt + sed -ne /^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# kopt=/ { s/^# kopt=\(.*\)$/\1/ p } } } /boot/grub/menu.lst + tmp=root=/dev/hda5 ro quiet + [ -z root=/dev/hda5 ro quiet ] + value=root=/dev/hda5 ro quiet + echo root=/dev/hda5 ro quiet + test -z root=/dev/hda5 ro quiet + ExtractMenuOpts \(kopt_[a-zA-Z0-9_]\+\) + opt=\(kopt_[a-zA-Z0-9_]\+\) + GetMenuOpts \(kopt_[a-zA-Z0-9_]\+\) + opt=\(kopt_[a-zA-Z0-9_]\+\) + sed -ne /^### BEGIN AUTOMAGIC KERNELS LIST$/,/^### END DEBIAN AUTOMAGIC KERNELS LIST$/ { /^## ## Start Default Options ##$/,/^## ## End Default Options ##$/ { /^# \(kopt_[a-zA-Z0-9_]\+\)=/ { p } } } /boot/grub/menu.lst + sed s/^# \(kopt_[a-zA-Z0-9_]\+\)=\(.*\)$/\1="\2"/ + eval --=-uEYqdrFDqT8BbiyidpBF-- --------------------------------------- Received: (at 347232-close) by bugs.debian.org; 17 Jan 2006 07:20:29 +0000 >From [EMAIL PROTECTED] Mon Jan 16 23:20:29 2006 Return-path: <[EMAIL PROTECTED]> Received: from katie by spohr.debian.org with local (Exim 4.50) id 1Eyl5U-0000au-1X; Mon, 16 Jan 2006 23:17:04 -0800 From: Gerrit Pape <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] X-Katie: $Revision: 1.65 $ Subject: Bug#347232: fixed in dash 0.5.3-2 Message-Id: <[EMAIL PROTECTED]> Sender: Archive Administrator <[EMAIL PROTECTED]> Date: Mon, 16 Jan 2006 23:17:04 -0800 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 Source: dash Source-Version: 0.5.3-2 We believe that the bug you reported is fixed in the latest version of dash, which is due to be installed in the Debian FTP archive: ash_0.5.3-2_all.deb to pool/main/d/dash/ash_0.5.3-2_all.deb dash_0.5.3-2.diff.gz to pool/main/d/dash/dash_0.5.3-2.diff.gz dash_0.5.3-2.dsc to pool/main/d/dash/dash_0.5.3-2.dsc A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Gerrit Pape <[EMAIL PROTECTED]> (supplier of updated dash package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Tue, 17 Jan 2006 05:37:48 +0000 Source: dash Binary: dash-udeb ash dash Architecture: all source Version: 0.5.3-2 Distribution: unstable Urgency: low Maintainer: Gerrit Pape <[EMAIL PROTECTED]> Changed-By: Gerrit Pape <[EMAIL PROTECTED]> Description: ash - Compatibility package for the Debian Almquist Shell dash - The Debian Almquist Shell dash-udeb - The Debian Almquist Shell for boot floppies (udeb) Closes: 347232 Changes: dash (0.5.3-2) unstable; urgency=low . * debian/diff/eval-exit-status.diff: new; patch from upstream; fix exit status of eval with null arguments (closes: #347232). * debian/rules: new target patch: apply diffs from debian/diff/, reverse-apply in target clean:. Files: eccf549f31a17f6edb415fc3116e7827 639 shells optional dash_0.5.3-2.dsc ae9d0d539b9dbc4ae9f5c1d606456e7d 22017 shells optional dash_0.5.3-2.diff.gz 954855acda799bb8f49edb2b48d33650 16564 shells optional ash_0.5.3-2_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDzI2VGJoyQbxwpv8RAqGkAJ44hd17wB6p3wLCvUilEytUbhKkTACeNib7 yxIjvN5Rz7m5D0KI2wRi660= =gzP8 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]