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

Bug#588770: [PATCH initramfs-tools 2/2] hook-functions: Include modules for resume partition when MODULES=dep



Control: tag -1 patch pending
---
Closes: #588770
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 hook-functions | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/hook-functions b/hook-functions
index 6790d76..6aef679 100644
--- a/hook-functions
+++ b/hook-functions
@@ -406,12 +406,19 @@ dep_add_modules_mount()
 
 dep_add_modules()
 {
-	local device
+	local device dev_node
 	local modules=
 
 	dep_add_modules_mount /
 	dep_add_modules_mount /usr
 
+	if [ -n "${RESUME}" ]; then
+		dev_node="$(resolve_device "${RESUME}")"
+		if [ -n "${dev_node}" ]; then
+			block_dev_mod_add "${dev_node}"
+		fi
+	fi
+
 	# sys walk some important device classes
 	for class in gpio phy regulator rtc; do
 		for device in /sys/class/$class/*; do

Attachment: signature.asc
Description: Digital signature


Reply to: