I've attached a patch which should implement the proposed solution.
-- David Härdeman
Index: debian/partman-auto-lvm.templates =================================================================== --- debian/partman-auto-lvm.templates (revision 41740) +++ debian/partman-auto-lvm.templates (working copy) @@ -5,7 +5,7 @@ Template: partman-auto-lvm/new_vg_name Type: string -Default: Debian +Default: ${DEFAULT} _Description: Name of the volume group for the new system: Template: partman-auto-lvm/new_vg_name_exists Index: debian/changelog =================================================================== --- debian/changelog (revision 41740) +++ debian/changelog (working copy) @@ -1,3 +1,10 @@ +partman-auto-lvm (18) UNRELEASED; urgency=low + + * Use hostname as the default vg name, fall back to Debian if not set. + Closes: #381244. + + -- David Härdeman <[EMAIL PROTECTED]> Mon, 16 Oct 2006 00:15:23 +0200 + partman-auto-lvm (17) unstable; urgency=low * Display selected target for partitioning when choosing a recipe. Index: auto-lvm_tools.sh =================================================================== --- auto-lvm_tools.sh (revision 41740) +++ auto-lvm_tools.sh (working copy) @@ -103,6 +103,17 @@ } auto_lvm_perform() { + # Set the default vg name to use, + # try hostname and fall back to "Debian" + local defvgname + if [ -r /etc/hostname ]; then + defvgname=$(cat /etc/hostname) + fi + if [ -z "$defvgname" ]; then + defvgname="Debian" + fi + db_subst partman-auto-lvm/new_vg_name DEFAULT "$defvgname" + # Choose name, create VG and attach each partition as a physical volume noninteractive=true while true; do