diff options
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-x | helpers/lh_chroot_hacks | 15 |
1 files 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 |