[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570162: live-initramfs: persistent-path parameter does not work for snapshot files

Package: live-initramfs
Version: 1.173.1-1
Severity: normal
Tags: patch


I seems that the parameter persistent-path does not work for finding snapshot files.
Indeed, it is stored in the variable PERSISTENT_PATH, that is only used in the function
find_cow_device. But, for finding snapshot files, it is the function find_files that
is used.

Here is a raw, untested patch that should enable it.


Tanguy Ortolo

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable'), (60, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-initramfs depends on:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed
ii  file                          4.26-1     Determines file type using "magic"
ii  initramfs-tools               0.93.4     tools for generating an initramfs
ii  sudo                          1.6.9p17-2 Provide limited super user privile
ii  udev                          150-2      /dev/ and hotplug management daemo
pn  user-setup                    <none>     (no description available)

Versions of packages live-initramfs recommends:
ii  eject                    2.1.5+deb1-4    ejects CDs and operates CD-Changer
ii  uuid-runtime             1.41.3-1        universally unique id library
ii  wget                     1.11.4-2+lenny1 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)
ii  squashfs-tools                1:3.3-7    Tool to create and append to squas
--- scripts/live.old	2010-02-16 15:54:51.686141553 +0100
+++ scripts/live	2010-02-16 15:56:01.056530161 +0100
@@ -991,7 +991,7 @@
 	if [ "${PERSISTENT}" != "nofiles" ]
 		# search for image files
-		snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3 ${snap_label}.ext4 ${snap_label}.jffs2")
+		snapdata=$(find_files "${PERSISTENT_PATH}${snap_label}.squashfs ${PERSISTENT_PATH}${snap_label}.cpio.gz ${PERSISTENT_PATH}${snap_label}.ext2 ${PERSISTENT_PATH}${snap_label}.ext3 ${PERSISTENT_PATH}${snap_label}.ext4 ${PERSISTENT_PATH}${snap_label}.jffs2")
 	if [ -z "${snapdata}" ]

Attachment: signature.asc
Description: Digital signature

Reply to: