Re: [linux-lvm] LVM2 for kernels 2.4.20

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

 



On Sun, Jan 26, 2003 at 02:33:13PM +0100, Luca Berra wrote:
> for the hassle of patching i use this
> #!/bin/sh
> set -e
> pname=`basename $1`
> for i in $1/*.patch
> do
>        pnum=`basename $i`
>        pnum=${pnum%.patch}
>        patch -p1 -s -N -E -b -z .$pname.$pnum.orig < $i
>        for j in `find . -name \*.$pname.$pnum.orig`
>        do
>                if [ -f ${j%.$pnum.orig}.orig ]
>                then
>                        rm -f $j
>                else
>                        mv $j ${j%.$pnum.orig}.orig
>                fi
>        done
> done
> 
> to use cd into kernel source dir and run it vs /path/to/2.4.20-dm-7

I just

cat /tmp/2.4.20-dm-7/*.patch | patch -p1

- Joe

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux