[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#320443: partman: humandev for /dev/loop/*

Package: partman
Version: 68
Severity: wishlist
Tags: patch


this patch adds an entry for /dev/loop/* to the humandev function which
shows loop devices as "Loopback (loop%d)". Something like this would be
useful to have for the loop-AES support in partman-crypto.


Index: debian/partman.templates
--- debian/partman.templates	(Revision 29310)
+++ debian/partman.templates	(Arbeitskopie)
@@ -256,6 +256,10 @@
 Type: text
 _Description: LVM VG %s, LV %s
+Template: partman/text/loopback
+Type: text
+_Description: Loopback (loop%d)
 Template: partman/text/cancel_menu
 Type: text
 _Description: Cancel this menu
Index: definitions.sh
--- definitions.sh	(Revision 29310)
+++ definitions.sh	(Arbeitskopie)
@@ -554,6 +554,11 @@
 	    db_metaget partman/text/lvm_lv description
 	    printf "$RET" $vg $lv
+	/dev/loop/*)
+	    n=${1#/dev/loop/}
+	    db_metaget partman/text/loopback description
+	    printf "$RET" $n
+	    ;;
 	    # Check if it's an LVM1 device
 	    vg=`echo "$1" | sed -e 's,/dev/\([^/]\+\).*,\1,'`

Reply to: