Thursday, January 24, 2013

openSUSE: Where are the installation logs?

Today we tried to install openSUSE 12.3 beta1. The installation process hung when it attempted to install the grub2 package.

The installer program in openSUSE is YaST2, which is the same program as the YaST2 control center that is used on running systems for various administration tasks.

When an installation goes as planned, there is of course no reason to look for logs. But what if the installation hangs and you want to file a bug report?

On the machine where the installation hangs, hit CTRL-ALT-F1 to get to the first text console. That's where we found the immediate error message that was presumably written to STDERR. In our case, it said:
Perl-Bootloader: 2013-01-24 15:01:23 <3> yast-8395.1 Core::RunCommand.1642: 
Error: Command '/usr/sbin/grub2-set-default '0' >/var/log/Yast2/y2log_bootloader 
2>&1' failed with code 32512 and output: sh: /usr/sbin/grub2-set-default: No such 
file or directory
(This is of course just an example.)

The installation logs themselves are in /var/log/YaST2 and have names starting with y2log. In our case there were two files of interest:

No comments:

Post a Comment