Re: partitioning in %pre

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

 



I have a hunch there is a script that is mknodding those device names... I 
pulled the mknod.sh from the kernel source, and I'm going to try to get 
that running in %pre and see if it works from there.  I'll also log all of 
this stuff..

James


James S. Martin, RHCE
Contractor
Administrative Office of the United States Courts
Washington, DC
(202) 502-2394




Brian Harvell <harvell@xxxxxxx>
03/11/2004 12:09 AM
Please respond to Brian Harvell

 
        To:     James_Martin@xxxxxxxxxxxxxxx
        cc:     anaconda-devel-list@xxxxxxxxxx
        Subject:        Re: partitioning in %pre


On Wed, 10 Mar 2004 James_Martin@xxxxxxxxxxxxxxx wrote:

> Hi,
>
> Who likes a good mystery? Compaq makes a tool, cpqacuxe (Compaq Array
> Configuration Utility) that is a linux executable.  This tool can
> configure a hardware RAID controller based on the input from a text 
file.
> I have the tool working in the %pre environment and it does indeed send
> the hardware RAID config to the cciss controller.   Here's two cases, 
one
> which works (manual), one which doesn't (automatic).  Both are 
kickstarts.

I know it should work, I use a %pre script to do some dynamic partition 
sizes
that I then %include. I would try changing your %pre to the following to 
see if
you can get any error message.

%pre

# Spawn a sub-shell so we can log everything
(
set -x

echo "begin raid flash"
mkdir /mnt/cd
echo "mounting cd to /mnt/cd"
mount /tmp/cdrom /mnt/cd
echo "making dir /dev/cciss"
mkdir /dev/cciss
echo "mknodding /dev/cciss/c*d0"
mknod /dev/cciss/c0d0 b 104 0
echo "setting password for cpqacufe"
echo -n -e "password\npassword\n"|cpqacuxe
echo "importing array config"
cpqacuxe -i /mnt/cd/custom/files/seahawk.array
) >> /tmp/pre.log 2>&1

Let me know if you get it working, I have been looking to do the same 
thing
with cpqacuxe.

Brian

-- 

Brian Harvell                harvell@xxxxxxx             http://ToolBoy.com/
echo 
'[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc








[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux