diff options
| author | Daniel Baumann <daniel@debian.org> | 2010-05-24 15:27:36 +0200 | 
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:52:46 +0100 | 
| commit | e66f79476042794195978ee641aa7ea0d9ca6e0a (patch) | |
| tree | 90286f281543c1a6f4ad56e229f5ff95438613da /scripts/live-bottom/43disable_updateinitramfs | |
| parent | ad7598cb46a5a6268ca60e5dba156056fb86c09d (diff) | |
| download | live-boot-e66f79476042794195978ee641aa7ea0d9ca6e0a.tar.gz live-boot-e66f79476042794195978ee641aa7ea0d9ca6e0a.zip | |
Adding debian version 2.0~a1-1.
Diffstat (limited to 'scripts/live-bottom/43disable_updateinitramfs')
| -rwxr-xr-x | scripts/live-bottom/43disable_updateinitramfs | 73 | 
1 files changed, 0 insertions, 73 deletions
| diff --git a/scripts/live-bottom/43disable_updateinitramfs b/scripts/live-bottom/43disable_updateinitramfs deleted file mode 100755 index 44e2d1f..0000000 --- a/scripts/live-bottom/43disable_updateinitramfs +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -#set -e - -# initramfs-tools header - -PREREQ="" - -prereqs() -{ -	echo "${PREREQ}" -} - -case "${1}" in -	prereqs) -		prereqs -		exit 0 -		;; -esac - -# live-initramfs header - -. /scripts/live-functions - -log_begin_msg "Possibly disabling update-initramfs (useless on a live CD)..." - -# live-initramfs script - -chroot /root dpkg-divert --add --rename --quiet \ -	/usr/sbin/update-initramfs - -# Running off a USB disk or other writable media. -if [ -w /root/cdrom ] && \ -   # rw is guaranteed to be first. -   grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo -then - -cat > /root/usr/sbin/update-initramfs << 'EOF' -#!/bin/sh - -set -e - -update-initramfs.distrib "$@" - -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 - -else - -cat > /root/usr/sbin/update-initramfs << EOF -#!/bin/sh - -echo "update-initramfs is disabled since running on read-only media" -exit 0 -EOF - -fi - -chmod 0755 /root/usr/sbin/update-initramfs - -log_end_msg | 
