From ef95487ad06d43885cf8c22ee34156cddc753bd4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 May 2010 14:11:13 +0200 Subject: Merging casper 1.230. --- scripts/live-bottom/43disable_updateinitramfs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'scripts/live-bottom/43disable_updateinitramfs') diff --git a/scripts/live-bottom/43disable_updateinitramfs b/scripts/live-bottom/43disable_updateinitramfs index 0a6c7c0..44e2d1f 100755 --- a/scripts/live-bottom/43disable_updateinitramfs +++ b/scripts/live-bottom/43disable_updateinitramfs @@ -38,9 +38,22 @@ then cat > /root/usr/sbin/update-initramfs << 'EOF' #!/bin/sh +set -e + update-initramfs.distrib "$@" -cp /initrd.img /cdrom/live/initrd.gz -cp /vmlinuz /cdrom/live/vmlinuz + +if [ -e /cdrom/live/initrd.lz ] +then + zcat /initrd.img | lzma -9c >/cdrom/live/initrd.lz.new + mv /cdrom/live/initrd.lz.new /cdrom/live/initrd.lz +else + cp /initrd.img /cdrom/live/initrd.gz.new + mv /cdrom/live/initrd.gz.new /cdrom/live/initrd.gz +fi + +cp /vmlinuz /cdrom/live/vmlinuz.new +mv /cdrom/live/vmlinuz.new /cdrom/live/vmlinuz + exit 0 EOF -- cgit v1.2.3