report md devices and zfs spare cache and log drives
[sysadmin-cookbook] / recepies / btrfs / btrfs-progs-unstable-checkinstall.sh
1 #!/bin/sh -x
2
3 sudo apt-get install git-core uuid-dev checkinstall
4
5 test -e btrfs-progs-unstable || git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git
6
7 cd btrfs-progs-unstable && git pull && make && \
8         checkinstall --pkgname=btrfs-progs-unstable \
9         --pkgversion=`grep BTRFS_BUILD_VERSION version.h | cut -d\" -f2 | sed 's/.* v//'`
10