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

Re: Simple addition for striping in fedora 6



Curtis Doty wrote:
Yesterday Joel Andres Granados said:

Relevant to Bug # 134638.
Simple, very limited addition to allow striped Logical Volumes.  Can't choose
the number of stripes nor the size of the stripes yet.  Working on it.
The diffs are attached.


Thank you! It's a start. I've marked RFE bug #223673 as a dupe.

A question, since your patch doesn't show up in rawhide yet... What is the quickest and most painless way to roll a test netstg2 nowadays? Do these old crib notes http://www.Doty.org/blog/curtis/2006#hacking-anaconda still apply or is there a more modern way that doesn't require mounting a loop?

../C

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list redhat com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
There are two methods to include any python patch to the anaconda installer. You can make an updates.img image with the patches and place it somewhere in the installation tree or you can create a RHupdates directory and place it somewhere in the installation tree. The exact place to put it may vary but you can look in anacondas docs (/usr/share/doc/anaconda-#.#.#.#/install-methods.txt) to see where to put it. I use the image method with a script to do all the dirty work. I use `sudo` in the script because I have to access a shared installation tree and need to be root to write any changes, but if you have a different setup in your office you can change it.
I've used it for fc6 and rawhide and it works fine.

Regards
#!/bin/bash

# This scrit is used to change the updates.img images in the anaconda installer.

use()
{
    echo If there is an images in the directory with the same name, it will be erased.
    echo The correct way to use uploadfilesCramfs is:
    echo uploadfilesCramfs /Destination/Path/NameOfImage file1 file2 file3 ...
}

if [ $# -lt 2 ];then
    use
    exit 0
fi

IMAGE_PATH=$1
TMP_DIR=/tmp/CramfsTEMP
shift
j=0
for i in $*
do
    FILES[$j]=$i
    j+=1  
done

# Lets erease the previous output file 
echo If you do not erease the previous image the result may vary.
echo For the mkfs.cramfs and rm command to be executed the current user $(whoami)
echo Must be on the sudoes file.  just add "$(whoami)    ALL=/sbin/mkfs.cramfs"
echo and "$(whoami) All=/bin/rm" to the sudoer file.
echo To edit the sudoer file exec visudo as root.
sudo rm -vfi $IMAGE_PATH

# Lets make a temporary directory
mkdir $TMP_DIR

# Lets put all the files in the new directory
for i in ${FILES[ ]}
do
    cp -vf $i $TMP_DIR
done
sudo /sbin/mkfs.cramfs -v $TMP_DIR $IMAGE_PATH

# Lets erease the temp directory
rm -rfv $TMP_DIR

# We are done!!!!

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