#!/bin/sh #The files in this directory (except pbuilderrc) were written by #(C) 2006 Kapil Hari Paranjape . #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)