From deaa1214dcac463b698a7cf8b6201bd5e6d3c721 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 2 May 2009 08:42:22 +0200 Subject: Adding update-initramfs call back in lh_chroot_hacks, but only for netboot. --- helpers/lh_chroot_hacks | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks index f23853f..03fa50b 100755 --- a/helpers/lh_chroot_hacks +++ b/helpers/lh_chroot_hacks @@ -40,6 +40,12 @@ Create_lockfile .lock # Removing udev mac caching rule rm -f chroot/etc/udev/rules.d/*persistent-net.rules +# Remove resume +if [ "${LH_DISTRIBUTION}" = "etch" ] && [ -e /etc/initramfs-tools/conf.d/resume ] +then + rm -f /etc/initramfs-tools/conf.d/resume +fi + case "${LH_BINARY_IMAGES}" in net) if [ ! -f chroot/usr/bin/smbmount ] @@ -60,15 +66,12 @@ BOOT=nfs NFSROOT=auto EOF fi + + # Update initramfs + Chroot "update-initramfs -k all -t -u" ;; esac -# Remove resume -if [ "${LH_DISTRIBUTION}" = "etch" ] && [ -e /etc/initramfs-tools/conf.d/resume ] -then - rm -f /etc/initramfs-tools/conf.d/resume -fi - # 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