Kickstart-list Digest, Vol 35, Issue 23
Steve Robson
srobson at cadence.com
Mon Jan 22 18:06:48 UTC 2007
kickstart-list-request at redhat.com wrote:
> Subject: Mounting NFS during Kickstart as RW
> From: gurudatta <gurudatta at sonoasystems.com>
<snip>
> %post
<snip>
> #--------------------------------------------------------------------------
> # Install additional rpms (not part of the standard distro)
> #--------------------------------------------------------------------------
>
> echo "INSTALLING ADDITIONAL BASE OS RPMS..."
> /bin/rpm -Uvh \
> /mnt/binutils-2.15.92.0.2-5.1.x86_64.rpm
> /mnt/libf2c-3.4.4-2.fc3.x86_64.rpm
> /mnt/cpp-3.4.4-2.fc3.x86_64.rpm
<snip>
You don't say how it fails; what the error is, but I can see that
syntactically you are missing line-continuation characters. You need a
backslash on the end of each line, like this:
echo "INSTALLING ADDITIONAL BASE OS RPMS..."
/bin/rpm -Uvh \
/mnt/binutils-2.15.92.0.2-5.1.x86_64.rpm \
/mnt/libf2c-3.4.4-2.fc3.x86_64.rpm \
/mnt/cpp-3.4.4-2.fc3.x86_64.rpm \
and so on, on every line EXCEPT THE LAST. What this does is escape (or
mask) the carriage return, so that you have a list of rpms for the rpm
command to process.
What you had before was effectively a command to install one rpm,
followed by "/mnt/libf2c-3.4.4-2.fc3.x86_64.rpm" executed as a command,
which is nonsense.
HTH,
--
Regards,
Steve
IT Support - UNIX/Linux Cadence Design Systems
Tel: +44 (0)1344 866523 Bagshot Road
Mobile: +44 (0)7901 855046 Bracknell BERKSHIRE
Fax: +44 (0)1344 869647 RG12 0PH UK
More information about the Kickstart-list
mailing list