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

[PATCH initramfs-tools 4/6] hook-functions: Remove loop-aes support



loop-aes is obsolete since a compatible mode was added to dm-crypt.
It's also no longer included in Debian.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 hook-functions | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/hook-functions b/hook-functions
index cb34ec2..95f388f 100644
--- a/hook-functions
+++ b/hook-functions
@@ -276,11 +276,6 @@ block_dev_mod_add()
 	elif [ "${dev_node#/dev/ida/}" != "${dev_node}" ]; then
 		block=${dev_node#/dev/ida/*}
 		block="ida!${block%p*}"
-	# loop device /dev/loopX
-	elif [ "${dev_node#/dev/loop}" != "${dev_node}" ]; then
-		dev_node=${dev_node#/dev/}
-		block=$(losetup -a \
-			| awk "/${dev_node}/{print substr(\$3, 7, 3); exit}")
 	# Xen virtual device /dev/xvdX
 	elif [ "${dev_node#/dev/xvd}" != "${dev_node}" ]; then
 		block=${dev_node#/dev/}

-- 
Ben Hutchings
Life would be so much easier if we could look at the source code.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: