From d1827786093e620289b836220c2504ab8510ad50 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 18 May 2009 17:01:43 +0200
Subject: Always rebuilding initrd in chroot_hacks to avoid inclusion of
 previously removed udev rules (such as persistent devices).

---
 helpers/lh_chroot_hacks | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index b33d637..6ed9ed8 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -66,12 +66,12 @@ BOOT=nfs
 NFSROOT=auto
 EOF
 		fi
-
-		# Update initramfs
-		Chroot chroot "update-initramfs -k all -t -u"
 		;;
 esac
 
+# Update initramfs (always, because of udev rules in initrd)
+Chroot chroot "update-initramfs -k all -t -u"
+
 # Ensure readable permissions on initramfs. loop-aes-utils sets umask to
 # protect GPG keys, which live-helper does not support.
 # Note: Use find rather than chmod on the wildcard, one never knows what
-- 
cgit v1.0