I'm trying to setup an unattended network install on a system with an
LSI
53c1030 SCSI controller running the boot drive. There's a bug in the
SuSE 8.1 installer (SuSE 8.1 is what I'm trying to install) that leaves
the mptbase driver that is needed by the mptscsih driver out of the
/etc/sysconfig/kernel file, and consequently it isn't included in the
initrd, so on the first bootup, mptscsih fails to load and the system
can't mount /.
To fix this I thought I'd run a chroot script to update the
/etc/sysconfig/kernel file. However, although this file appears to run
(there's output in the /var/adm/autoinstall/logs directory), the
/etc/sysconfig/kernel file remains unchanged. Of course, even if this
worked, I'm not sure if it would fix the problem since I'm not sure if
the chroot scripts run before or after mkinitrd.
I've appended a portion of the autoyast installation file below. Can
anyone help me with this? (The alternative I have right now is that
there is a replacement mkinitrd on the SuSE ftp site provided as a
diskette image, but this doesn't help much for an unattended network
install. mkinitrd appears to be part of the aaa_base package, so I was
thinking I could replace it in that package, but I'd rather not do that
if possible).
<scripts>
<chroot-scripts config:type="list">
<script>
<filename>fixinitrd.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
#!/bin/sh
cat /mnt/etc/sysconfig/kernel #for debug
sed 's/mptscsih/mptbase mptscsih/g' /mnt/etc/sysconfig/kernel >
/mnt/etc/sysconfig/kernel.new
cat /mnt/etc/sysconfig/kernel.new #for debug
rm -f /mnt/etc/sysconfig/kernel
mv /mnt/etc/sysconfig/kernel.new /mnt/etc/sysconfig/kernel
cat /mnt/etc/sysconfig/kernel.new #for debug
]]>
</source>
</script>
</chroot-scripts>
</scripts>
Thanks,
--Andy