[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Way to "fool" anaconda to do what you want
- From: Chris Adams <cmadams hiwaay net>
- To: kickstart-list redhat com
- Subject: Way to "fool" anaconda to do what you want
- Date: Sat, 26 Apr 2003 11:26:09 -0500
If you want anaconda to do something different when it calls out to an
external program, here's a way to trick it. I wanted to create a
logical volume with 2 stripes (if you specify multiple physical volumes,
anaconda will just create a concatenated volume group).
In the %pre section of my kickstart file, I put:
########################################################################
cp /usr/sbin/lvcreate /tmp/lvcreate.bin
cat > /tmp/lvcreate <<EOF
#!/bin/sh
exec /tmp/lvcreate.bin -i 2 -I 1024 \$@
EOF
chmod +x /tmp/lvcreate
mount /tmp/lvcreate /usr/sbin/lvcreate -o bind
########################################################################
This copies the lvcreate binary, creates a shell script wrapper, and
then bind mounts the shell script on top of the original binary.
This can be used to change anything that anaconda doesn't handle
internally.
--
Chris Adams <cmadams hiwaay net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]