Way to "fool" anaconda to do what you want

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

 



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@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.





[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