安装 rhel 过程中遇到的 “an unhandled exception”

使用图形界面人肉测试安装台 rhel,在执行到安装 grub 的步骤中,出现了如下图所示的 "An unhandled exception has occured"

使用 scp "Save" 了 log 之后,点击 "Exit" 就转到了下面这个图片

$ cat abrt.log
executable:     /mnt/runtime/usr/bin/python
hashmarkername: anaconda
kernel:         2.6.32-220.el6.x86_64
product:        Red Hat Enterprise Linux
reason:         YumBaseError: Error: rpmdb open failed
time:           Fri 01 Feb 2013 06:19:12 PM CST
version:        6.2

anaconda-tb-Zz_jzR: Text file, 503386 bytes

description:
:The following was filed automatically by anaconda:
:anaconda 13.21.149 exception report
:Traceback (most recent call first):
:  File "/usr/lib/python2.6/site-packages/yum/config.py", line 1022, in _getsysver
:    raise Errors.YumBaseError("Error: " + str(e))
:  File "/usr/lib/python2.6/site-packages/yum/config.py", line 877, in readStartupConfig
:    startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
:  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 295, in _getConfig
:    startupconf = config.readStartupConfig(fn, root)
:  File "/usr/lib/anaconda/yuminstall.py", line 808, in doConfigSetup
:    YumSorter._getConfig(self)
:  File "/usr/lib/anaconda/yuminstall.py", line 362, in setup
:    self.doConfigSetup(root=self.anaconda.rootPath)
:  File "/usr/lib/anaconda/yuminstall.py", line 1284, in doBackendSetup
:    self.ayum.setup()
:  File "/usr/lib/anaconda/backend.py", line 225, in doBackendSetup
:    if anaconda.backend.doBackendSetup(anaconda) == DISPATCH_BACK:
:  File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
:    rc = stepFunc(self.anaconda)
:  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
:    self.moveStep()
:  File "/usr/lib/anaconda/gui.py", line 1390, in nextClicked
:    self.anaconda.dispatch.gotoNext()
:YumBaseError: Error: rpmdb open failed

END:

看上面的的 log 没看出什么端倪。后来在 RH Support 的提醒下才发现,由于这台机器之前是装过系统的,也就是说是有分区在磁盘上的,在使用自定义分区之后,需要勾选 "Format as",不然会像我一样悲剧 :-(

如果机器之前没有磁盘分区,就不会存在这个问题。这个问题估计也只有人肉的时候会发现,批量话的话,肯定会先执行