Custom Kickstart and mkinitrd

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

 



Hello folks, here is the deal. I am putting together a custom install for massive deployment within my company to be used on several pieces of hardware. I am seeing this issue on an HP LP1000R but not on IBM Mpro or Zpro systems.

Here are the steps I took:
1. I have taken the RH 7.2 CD's and copied them onto a disk
2. Downloaded all the updates from Redhat
3. Merged the updates into the original image using the overlay.pl script found out on the net. 4. Ran the genhdlist command as follows /usr/lib/anaconda-runtime/genhdlist --withnumbers <path to image> 5. the run the buildinstall command as follows /usr/lib/anaconda-runtime/buildinstall --pkgorder <path to pkgorder file to create> --version 7.2 <path to image>
6. loaded the bootnet.img file onto a floppy.
7. Created a ks.cfg file and placed it on the floppy (I'll include at the bottom)
8. Boot the machine and use linux ks=floppy

Ok at this point the machine takes off and does its thing. It appears everything installs cleanly but on reboot the machine fails to boot. It turns out the the initrd-2.4.9-34.img was not created and nothing works. I boot into rescue mode, manually create the initrd file using mkinitrd and place the proper entry into grub and bingo it works fine.

When I look at /tmp/install.log I find that just after the "Installing Kernel" entry there is a line that says. "All of your loopback devices are in use!" I have determined that this is being generated by mkinitrd when the kernel is being installed and running its postinstall script.

Now here is the kicker, if I change the install package list to Everything from the reduced set, the entire thing install beautifully and reboots perfectly.

Any help on this would be appreciated.

Lew Newby



My ks.cfg file (edited to remove IP addresses and domainnames.)


lang en_US
langsupport en_US
keyboard us
mouse generic3ps/2
timezone --utc America/Los_Angeles
rootpw --iscrypted <encrypted password>
reboot
bootloader --location=mbr
install
nfs --server nasa-v004 --dir /export/it/kickstart/RedHat/7.2
zerombr yes
clearpart --all
part / --fstype ext3 --size 7000
part  swap --size 2000
part  swap --size 2000
part  swap --size 2000
part  swap --size 2000
part  swap --size 2000
part  swap --size 2000
part /export/home --fstype ext3 --size 33000
network --bootproto static  --ip <IP address>  --netmask 255.255.255.0  --gat
eway <Gateway IP>  --nameserver <DNS Server IP>
auth --useshadow --enablemd5 --enablenis --nisdomain <DOMAINNAME> --nisserver
 <YP Server>
firewall --disabled
xconfig --depth 16 --resolution 800x600 --defaultdesktop=GNOME --card "ATI Mach
64"
%packages
@GNOME
@Network Support
@Messaging and Web Tools
@Sound and Multimedia Support
@Graphics and Image Manipulation
@NFS File Server
@Anonymous FTP Server
@Authoring and Publishing
@Emacs
@Utilities
@Legacy Application Support
@Software Development
@Kernel Development
@Windows Compatibility / Interoperability
openssh-server
telnet-server
rusers-server
rsh-server
xinetd
am-utils
linuxconf
%post
# this postinstall script is called from ks.cfg to customize system for
# <Company name>
# it can also be put into a file and run from command line
# after install
# History
# v.1.0   Created on 01/17/02 ---<IT dept>

# export variables that define the temp directory, source  of sw and scripts
# we mount the software on temp mount point and call the customize script

export TEMPORARY=/tmp/INST
export MYSOURCE=<NFS RedHat Image>
export MYSCRIPT=<Custom script name>

echo "making temp install dir  ($TEMPORARY)"
mkdir $TEMPORARY
echo "mount $MYSOURCE $TEMPORARY "
mount $MYSOURCE $TEMPORARY
echo "list $TEMPORARY"
ls  $TEMPORARY
echo "executing $MYSCRIPT"
$MYSCRIPT
echo "unmount $TEMPORARY"
umount $TEMPORARY
echo "list $TEMPORARY (should be empty now)"
ls $TEMPORARY






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux