diff options
Diffstat (limited to 'examples/lvmpbuilder/sample_device_creator')
-rwxr-xr-x | examples/lvmpbuilder/sample_device_creator | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/lvmpbuilder/sample_device_creator b/examples/lvmpbuilder/sample_device_creator deleted file mode 100755 index 4c38810..0000000 --- a/examples/lvmpbuilder/sample_device_creator +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -#The files in this directory (except pbuilderrc) were written by -#(C) 2006 Kapil Hari Paranjape <kapil@imsc.res.in>. -#They are placed in the public domain. You can do with them exactly as you wish. - -## Uncomment these lines after filling the -## full path of a device with at least 2G -# DISK=/dev/hda5 -## ...and... -## Comment these lines to use the actual device -## You entered above -LOOPTMP=$(mktemp /tmp/loop.XXXXXX) -dd if=/dev/zero of=$LOOPTMP bs=10M count=200 -DISK=$(losetup -f) -losetup $DISK $LOOPTMP - -# Possible steps to create base and cow devices -pvcreate $DISK -vgcreate pbuilder $DISK -lvcreate -L 500M -n base pbuilder -lvcreate -L 1.5G -n cow pbuilder - -echo BASEDEV=$(ls /dev/pbuilder/base) && \ -echo COWDEV=$(ls /dev/pbuilder/cow) - |