Package: partman-auto
Severity: minor
Tags: patch
The attached patch adds support for partman-auto-crypto preseeding. It
should be committed once partman-auto-crypto is moved to the d-i trunk.
Regards,
David
Index: debian/changelog
===================================================================
--- debian/changelog (revision 38467)
+++ debian/changelog (working copy)
@@ -6,6 +6,9 @@
* Estonian (et.po) by Siim Põder
* Polish (pl.po) by Bartosz Fenski
+ [ David Härdeman ]
+ * Support preseeding of partman-auto-crypto/disk.
+
-- Frans Pop <[EMAIL PROTECTED]> Mon, 26 Jun 2006 12:04:11 +0200
partman-auto (53) unstable; urgency=low
Index: init.d/initial_auto
===================================================================
--- init.d/initial_auto (revision 38467)
+++ init.d/initial_auto (working copy)
@@ -33,7 +33,7 @@
[ -d /var/lib/partman ] || mkdir /var/lib/partman
touch /var/lib/partman/initial_auto
-# See if a disk to autopartition (either classic or LVM) has been set
+# See if a disk to autopartition (classic, LVM or crypto) has been set
if db_get partman-auto/disk && [ -n "$RET" ]; then
disk="$RET"
id=$(dev_to_partman "$disk") || true
@@ -49,6 +49,14 @@
autopartition-lvm "$id"
exit 0
fi
+elif search-path autopartition-crypto && \
+ db_get partman-auto-crypto/disk && [ -n "$RET" ]; then
+ disk="$RET"
+ id=$(dev_to_partman "$disk") || true
+ if [ -n "$id" ]; then
+ autopartition-crypto "$id"
+ exit 0
+ fi
fi
echo "partman-auto/init_automatically_partition" >
/lib/partman/automatically_partition/question