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

Bug#512661: marked as done (live-initramfs: Change the path for persistent files.)



Your message dated Mon, 26 Jan 2009 01:17:06 +0000
with message-id <E1LRG66-0008EJ-2X@ries.debian.org>
and subject line Bug#512661: fixed in live-initramfs 1.154.6-1
has caused the Debian Bug report #512661,
regarding live-initramfs: Change the path for persistent files.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
512661: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512661
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: live-initramfs
Version: 1.154.3-1
Severity: wishlist

It would be nice to be able to specify the path where to find the 
persistent files just like it's possible to specify the path for the 
live media. Currently the persistent file must be in the root of a 
mounted device. In my setup I share a single USB key between multiple
bootable images. The images are organized in subfolders, hence all files
of a live CD (ie: live USB) are moved to a sub-folder.

I have added the boot option 'persistent-path' to specify the path of 
the persistent files. See patch in attachment.

BTW: the '.disk' folder location could also be moved to a non static 
path. 

Cheers,
Th.

-- Package-specific info:

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages live-initramfs depends on:
ii  busybox                      1:1.1.3-4   Tiny utilities for small and embed
ii  file                         4.17-5etch3 Determines file type using "magic"
ii  initramfs-tools              0.85i       tools for generating an initramfs
ii  sudo                         1.6.8p12-4  Provide limited super user privile
ii  udev                         0.105-4     /dev/ and hotplug management daemo
ii  user-setup                   1.11etch1   Set up initial user and password

Versions of packages live-initramfs recommends:
ii  eject                         2.1.4-3    ejects CDs and operates CD-Changer
pn  uuid-runtime                  <none>     (no description available)
ii  wget                          1.10.2-2   retrieves files from the web

-- no debconf information
--- scripts/live.orig	2009-01-22 17:13:01.359375000 +0100
+++ scripts/live	2009-01-22 17:19:37.828125000 +0100
@@ -340,6 +340,11 @@
 				export PERSISTENT
 				;;
 
+			persistent-path=*)
+				PERSISTENT_PATH="${ARGUMENT#persistent-path=}"
+				export PERSISTENT_PATH
+				;;
+
 			nopersistent)
 				NOPERSISTENT="Yes"
 				export NOPERSISTENT
--- scripts/live-helpers.orig	2009-01-22 17:02:33.281250000 +0100
+++ scripts/live-helpers	2009-01-22 17:17:58.125000000 +0100
@@ -299,6 +299,13 @@
 	cow_backing="/${pers_label}-backing"
 	black_listed_devices="${2}"
 
+	if [ -z "${PERSISTENT_PATH}" ]
+	then
+		pers_fpath=${cow_backing}/${pers_label}
+	else
+		pers_fpath=${cow_backing}/${PERSISTENT_PATH}/${pers_label}
+	fi
+
 	for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram | grep -v fd)
 	do
 		for dev in $(subdevices "${sysblock}")
@@ -332,9 +339,9 @@
 						break
 					fi
 
-					if [ -f "${cow_backing}/${pers_label}" ]
+					if [ -f "${pers_fpath}" ]
 					then
-						echo $(setup_loop "${cow_backing}/${pers_label}" "loop" "/sys/block/loop*")
+						echo $(setup_loop "${pers_fpath}" "loop" "/sys/block/loop*")
 						return 0
 					else
 						umount ${cow_backing}

--- End Message ---
--- Begin Message ---
Source: live-initramfs
Source-Version: 1.154.6-1

We believe that the bug you reported is fixed in the latest version of
live-initramfs, which is due to be installed in the Debian FTP archive:

live-initramfs_1.154.6-1.diff.gz
  to pool/main/l/live-initramfs/live-initramfs_1.154.6-1.diff.gz
live-initramfs_1.154.6-1.dsc
  to pool/main/l/live-initramfs/live-initramfs_1.154.6-1.dsc
live-initramfs_1.154.6-1_all.deb
  to pool/main/l/live-initramfs/live-initramfs_1.154.6-1_all.deb
live-initramfs_1.154.6.orig.tar.gz
  to pool/main/l/live-initramfs/live-initramfs_1.154.6.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 512661@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <daniel@debian.org> (supplier of updated live-initramfs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 26 Jan 2009 02:00:00 +0100
Source: live-initramfs
Binary: live-initramfs
Architecture: source all
Version: 1.154.6-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Live <debian-live@lists.debian.org>
Changed-By: Daniel Baumann <daniel@debian.org>
Description: 
 live-initramfs - Debian Live initramfs hook
Closes: 512413 512656 512661
Changes: 
 live-initramfs (1.154.6-1) unstable; urgency=medium
 .
   * Replacing casper with live in live-new-uuid.
   * Including wc in initramfs (Closes: #512413).
   * Added missing variable quoting that lead to broken root persistence, thanks
     to Thierry Walrant <debian.tgc@walrant.net> (Closes: #512656).
   * Adding patch from Thierry Walrant <debian.tgc@walrant.net> to allow setting
     a path for the persistence files through persistent-path boot parameter
     (Closes: #512661).
   * Adding persistent-path to parameter list and manpage.
   * Actually building/cleaning manpages through targets in Makefile.
Checksums-Sha1: 
 2e45a12499d4fac1744e98b92108a141ae76a472 1301 live-initramfs_1.154.6-1.dsc
 5dc53494852051b4c522f393a75516f1c921c3bd 79846 live-initramfs_1.154.6.orig.tar.gz
 2b6ab58b90de48a9df2e7714105428f3215a5ca9 10288 live-initramfs_1.154.6-1.diff.gz
 88d2d69c2fdf70eac44b710ca277e186a6681587 86332 live-initramfs_1.154.6-1_all.deb
Checksums-Sha256: 
 244a94258be700bd64d7bfa1719bfafcc7fc0a355d2d22c916f7d354806e8fd0 1301 live-initramfs_1.154.6-1.dsc
 421f2b312cf6a8c5148b9dbf1f49cfbccea5eba1be0a7e90f0f9c7220c5a9277 79846 live-initramfs_1.154.6.orig.tar.gz
 e1bd3f45c28f254091705495e4d7f22b23f0827c0a06f1280e730813579ab71e 10288 live-initramfs_1.154.6-1.diff.gz
 5208c65691b72518dc88de559cae13b093811191e332acbc3133176963ebd5a9 86332 live-initramfs_1.154.6-1_all.deb
Files: 
 53f45bd4c4aeeb70fe93132012b81912 1301 misc optional live-initramfs_1.154.6-1.dsc
 b60fdbe2d2aa8c7d72f086199a7ab57b 79846 misc optional live-initramfs_1.154.6.orig.tar.gz
 45f0a6f4c4ad3f11ba63988d0328f6bb 10288 misc optional live-initramfs_1.154.6-1.diff.gz
 07fac9835b0430dc0f3e6fe11671cd40 86332 misc optional live-initramfs_1.154.6-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkl9C8IACgkQ+C5cwEsrK54JEACfXG/rSz+BAaTiGrMPv3e0mTs4
ed0An2IgoK0an8rt4qQcRaDsTmGz+aYx
=oUAH
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: