diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-12-22 10:23:50 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | d27400ce146c5e3a340eec8f614012ced2ddc29b (patch) | |
| tree | 54411ef0dabcfde542ca6b0e5a9431c4b1340a12 /scripts/live-bottom/43disable_updateinitramfs | |
| parent | 703b697660daaf53e0c81f8847a877baee04bf40 (diff) | |
| download | live-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.tar.gz live-boot-d27400ce146c5e3a340eec8f614012ced2ddc29b.zip | |
Merging casper 1.113.
Diffstat (limited to 'scripts/live-bottom/43disable_updateinitramfs')
| -rwxr-xr-x | scripts/live-bottom/43disable_updateinitramfs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/live-bottom/43disable_updateinitramfs b/scripts/live-bottom/43disable_updateinitramfs new file mode 100755 index 0000000..095bf74 --- /dev/null +++ b/scripts/live-bottom/43disable_updateinitramfs @@ -0,0 +1,36 @@ +#!/bin/sh +# Fix for LP#150188 + +PREREQ="" +DESCRIPTION="Disabling update-initramfs (useless on a live CD)..." + +. /scripts/casper-functions + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +log_begin_msg "$DESCRIPTION" + +chroot /root dpkg-divert --add --rename --quiet \ + /usr/sbin/update-initramfs +cat > /root/usr/sbin/update-initramfs <<EOF +#! /bin/sh + +echo "update-initramfs is disabled since running on a live CD" +exit 0 + +EOF + +chmod 755 /root/usr/sbin/update-initramfs + +log_end_msg |
