tags 856589 + patch
thanks
The solution is quite simple: Just return from dep_add_modules_mount()
when tmpfs is detected as fstype. A tested patch is attached.
--
Benjamin Drung
System Developer
Debian & Ubuntu Developer
ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
Email: benjamin.dr...@profitbricks.com
URL: http://www.profitbricks.com
Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
From 7b6c9871e04e4d2304b99b14fe313d7b4ab35698 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <benjamin.dr...@profitbricks.com>
Date: Fri, 3 Mar 2017 17:08:38 +0100
Subject: [PATCH] Fix failure when / uses tmpfs
When initramfs-tools is run on a system with a tmpfs based root mount
point, it will fail:
root@host:~$ /etc/kernel/postinst.d/kdump-tools $(uname -r)
kdump-tools: Generating /var/lib/kdump/initrd.img-4.4.36-2
mkinitramfs: failed to determine device for /
mkinitramfs: workaround is MODULES=most, check:
grep -r MODULES /etc/initramfs-tools/
Error please report bug on initramfs-tools
Include the output of 'mount' and 'cat /proc/mounts'
update-initramfs: failed for with 1.
Bug-Debian: #856589
---
hook-functions | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hook-functions b/hook-functions
index fa6862f..3fc6c5b 100644
--- a/hook-functions
+++ b/hook-functions
@@ -297,6 +297,11 @@ dep_add_modules_mount()
return
fi
+ # Handle tmpfs which uses memory instead of a block devices.
+ if [ "${FSTYPE}" = "tmpfs" ]; then
+ return
+ fi
+
if [ "$dir" = / ] && [ "${dev_node}" = "/dev/root" ] ; then
if [ -b "${dev_node}" ]; then
# Match it to the canonical device name by UUID
--
2.9.3