From e1a9ff2e74efc3a0fce9c6d6ebdd9393a687e301 Mon Sep 17 00:00:00 2001 From: Lars Beckers <lars.beckers@rwth-aachen.de> Date: Mon, 26 Mar 2018 19:20:03 +0200 Subject: [PATCH] Add some more documentation --- README.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 511dbd3..2886b8e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,35 @@ # Patches for Ganeti This repository contains our patches for ganeti which we apply on top of the already patched debian package. +We retrieve the package source from debian, add some patches, build, and copy to our debian repository. +After installation from our repository, we need to pin those to prevent updating from debian's regular sources. +See apt's documentation on pinning. + + +## Interesting Links + +Rebuilding an existing package is described here: +https://wiki.debian.org/BuildingTutorial + +More information on building: +https://wiki.debian.org/HowToPackageForDebian + +The ganeti package uses `quilt` to manage its patches. See this tutorial: +https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/ + + +## Rebuilding Ganeti + +It boils down to the following steps: + +- `apt-get source ganeti` +- `cd ganeti-2.15.2/debian` +- `quilt import ../remove_blockdev_from_movable_list.patch` and others +- `dch -n` creates a new changelog entry +- `debuild -b -uc -us` builds the package + +At least according to my zsh history. -In the near future it shall also contain a guide on how to build ganeti with those patches and maybe some tooling for that. -See ticket #13 on RT. ## Patch Details @@ -11,6 +37,8 @@ See ticket #13 on RT. Fixes an incompatibility with current ceph versions. +See also: https://github.com/ganeti/ganeti/issues/1233 + ### `increase_max_disk_count.patch` *sigh* -- GitLab