[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: update-grub error



Andreas Pakulat schrieb:

On 20.08.06 18:45:04, Harald Gutmann wrote:
Andreas Pakulat schrieb:
On 20.08.06 18:08:40, Harald Gutmann wrote:
Ja was steht denn bei dir in der Datei in Zeile 1038? Hier:

			kernelVersion=`readlink -f "/boot/$kernelName"`



1035:        fi
1036:        if [ "$kernelName" = "vmlinuz.old" ]; then
1037:               if [ -L "/boot/$kernelName" ]; then
1038:                        kernelVersion=`readlink -f "/boot/$kernelName"`
1039: kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
1040:                       kernelVersion="$kernelVersion Previous"
1041:                else
1042:                        kernelVersion="Previous"
1043:                fi
1044:        fi

Hmm, Ok. Das Skript ist nicht kapput. Sehr komisch, Fuege mal an den
Anfang des Skripts ein set -x. Dann fuehre update-grub haendisch aus und
du siehst was genau an der Stelle versucht wird auszufuehren.

Gibts bei dir noch ein /boot/vmlinuz.old? Zeigt der Link noch auf ein
existierendes Image? Wenn nicht mal entfernen.
hier der output des scripts mit set -x am beginn:

winnie:/home/z421# update-grub
+ set -e
++ uname -s
++ tr '[A-Z]' '[a-z]'
+ host_os=linux
+ 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
++++ echo '#'
++++ grep -q '^#'
+++ continue
+++ read DEV MNT FOO
++++ echo proc
++++ grep -q '^#'
+++ '[' /proc = / ']'
+++ read DEV MNT FOO
++++ echo /dev/hda6
++++ grep -q '^#'
+++ '[' / = / ']'
+++ device=/dev/hda6
+++ read DEV MNT FOO
++++ echo /dev/hda2
++++ grep -q '^#'
+++ '[' none = / ']'
+++ read DEV MNT FOO
++++ echo /dev/hdc
++++ grep -q '^#'
+++ '[' /mnt/cdrom = / ']'
+++ read DEV MNT FOO
++++ echo /dev/hdd
++++ grep -q '^#'
+++ '[' /mnt/dvd = / ']'
+++ read DEV MNT FOO
++++ echo /dev/fd0
++++ grep -q '^#'
+++ '[' /mnt/floppy = / ']'
+++ read DEV MNT FOO
++++ echo /dev/hdb1
++++ grep -q '^#'
+++ '[' /mnt/daten = / ']'
+++ read DEV MNT FOO
++++ echo https://mediacenter.gmx.net
++++ grep -q '^#'
+++ '[' /home/z421/gmxfs = / ']'
+++ read DEV MNT FOO
+++ '[' -n /dev/hda6 ']'
+++ case "$device" in
++++ readlink -f /dev/hda6
+++ device=/dev/hda6
+++ echo /dev/hda6
++ device=/dev/hda6
++ '[' -z /dev/hda6 ']'
++ echo /dev/hda6
+ root_device=/dev/hda6
++ convert_kernel26 /dev/hda6
++ case "$1" in
++ echo /dev/hda6
+ root_device_2_6=/dev/hda6
++ 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 proc
+++ grep -q '^#'
++ '[' /proc = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/hda6
+++ grep -q '^#'
++ '[' / = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/hda2
+++ grep -q '^#'
++ '[' none = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/hdc
+++ grep -q '^#'
++ '[' /mnt/cdrom = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/hdd
+++ grep -q '^#'
++ '[' /mnt/dvd = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/fd0
+++ grep -q '^#'
++ '[' /mnt/floppy = /boot ']'
++ read DEV MNT FOO
+++ echo /dev/hdb1
+++ grep -q '^#'
++ '[' /mnt/daten = /boot ']'
++ read DEV MNT FOO
+++ echo https://mediacenter.gmx.net
+++ grep -q '^#'
++ '[' /home/z421/gmxfs = /boot ']'
++ read DEV MNT FOO
++ '[' -n '' ']'
++ echo
+ boot_device=
+ device_map=/boot/grub/device.map
+ kopt='root=/dev/hda6 ro'
/sbin/update-grub: line 1039: unexpected EOF while looking for matching ``'


vmlinuz.old hat existiert, aber ein löschen davon brachte auch keinen erfolg.


mfg harald



Reply to: