diff --git a/README.md b/README.md index 2d43600..cbce52c 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,12 @@ Misc scripts used in building specific vulkan packages for LunarG - It assumes default pbuilder/cowbuilder chroot location: i.e. /var/cache/pbuilder - It depends on the ~.pbuilderrc config file in this repository +- cowbuild-create-chroots + Simple script to create the 4 chroots mentioned above. This should be run after copying the .pbuilderrc file to your home directory. The debian-archive-keyring package is required to create the debian chroots. + - cowbuild-update-chroots - Simple script to update the 4 chroots mentioned above. This should be run before the first build of the day. + Simple script to update the 4 chroots mentioned above. This should be run before the first build of the day. - reprepro-add-lunarg diff --git a/cowbuild-create-chroots b/cowbuild-create-chroots index e23563c..81f752c 100755 --- a/cowbuild-create-chroots +++ b/cowbuild-create-chroots @@ -1,5 +1,15 @@ #!/bin/sh -sudo DIST=xenial ARCH=amd64 cowbuilder create -sudo DIST=xenial ARCH=i386 cowbuilder create -sudo DIST=stable ARCH=amd64 cowbuilder create -sudo DIST=stable ARCH=i386 cowbuilder create + +# Make directories as needed; no error if they already exist. +sudo mkdir -p /var/cache/pbuilder/xenial-amd64 +sudo mkdir -p /var/cache/pbuilder/xenial-i386 +sudo mkdir -p /var/cache/pbuilder/stretch-amd64 +sudo mkdir -p /var/cache/pbuilder/stretch-i386 + +# Create copy-on-write chroots. +# The debian-archive-keyring package is required to create the debian chroots. e.g. +# $ sudo apt-get install debian-archive-keyring +sudo DIST=xenial ARCH=amd64 cowbuilder --create +sudo DIST=xenial ARCH=i386 cowbuilder --create +sudo DIST=stable ARCH=amd64 cowbuilder --create +sudo DIST=stable ARCH=i386 cowbuilder --create