Bug#534878: live-initramfs: live-media-path and toram don't play well together
Package: live-initramfs
Version: 1.157.2-1
Severity: normal
Tags: patch
The function copy_live_to in scripts/live doesn't take the boot parameter
live-media-path into account, resulting in trying to copy the whole hard disk
to ram in my case. Attached a patch which should fix the problem.
-- Package-specific info:
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages live-initramfs depends on:
ii busybox 1:1.13.3-1 Tiny utilities for small and embed
ii file 5.03-1 Determines file type using "magic"
ii initramfs-tools 0.93.3 tools for generating an initramfs
ii sudo 1.7.0-1 Provide limited super user privile
ii udev 0.141-1 /dev/ and hotplug management daemo
ii user-setup 1.27 Set up initial user and password
Versions of packages live-initramfs recommends:
ii cryptsetup 2:1.0.6+20090405.svn49-1 configures encrypted block devices
ii eject 2.1.5+deb1+cvs20081104-6 ejects CDs and operates CD-Changer
ii uuid-runtime 1.41.6-1 runtime components for the Univers
ii wget 1.11.4-2 retrieves files from the web
Versions of packages live-initramfs suggests:
pn curlftpfs <none> (no description available)
pn genext2fs <none> (no description available)
pn httpfs2 <none> (no description available)
pn loop-aes-utils <none> (no description available)
pn mtd-tools <none> (no description available)
pn squashfs-tools <none> (no description available)
-- no debconf information
--- /usr/share/initramfs-tools/scripts/live 2009-05-14 10:20:32.000000000 +0200
+++ /tmp/gparted_initrd/scripts/live 2009-06-27 23:07:32.572607828 +0200
@@ -618,7 +618,7 @@
if [ -z "${MODULETORAM}" ]
then
- size=$(fs_size "" ${copyfrom} "used")
+ size=$(fs_size "" ${copyfrom}/${LIVE_MEDIA_PATH} "used")
else
MODULETORAMFILE="${copyfrom}/${LIVE_MEDIA_PATH}/${MODULETORAM}"
@@ -676,7 +676,8 @@
then
cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
else
- cp -a ${copyfrom}/* ${copyto} # "cp -a" from busybox also copies hidden files
+ mkdir -p ${copyto}/${LIVE_MEDIA_PATH}
+ cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/* ${copyto}/${LIVE_MEDIA_PATH} # "cp -a" from busybox also copies hidden files
fi
umount ${copyfrom}
Reply to: