Debian Bug report logs - #702421
link-mode persistence broken due to wrong link targets

version graph

Package: live-boot; Maintainer for live-boot is Live Systems Maintainers <>; Source for live-boot is src:live-boot.

Reported by: Evgeni Golov <>

Date: Wed, 6 Mar 2013 11:06:01 UTC

Severity: normal

Found in version live-boot/3.0.0-1

Fixed in version live-boot/4.0~a8-1

Done: Daniel Baumann <>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to,,, Debian Live Project <>:
Bug#702421; Package live-boot. (Wed, 06 Mar 2013 11:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Evgeni Golov <>:
New Bug report received and forwarded. Copy sent to,, Debian Live Project <>. (Wed, 06 Mar 2013 11:06:03 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Evgeni Golov <>
To: Debian Bug Tracking System <>
Subject: link-mode persistence broken due to wrong link targets
Date: Wed, 06 Mar 2013 12:02:20 +0100
Package: live-boot
Version: 3.0.0-1
Severity: important


the fix for #696495 (d2b2a46118d331a5b3c0218c475da8e5aa831df8) broke
link-mode persistence as the links now show to /live/persistence/...
while the mount was moved to /lib/live/mount/persistence/... when the
system was booted up.

Before that commit the links were properly set to the /lib/live location.


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Information forwarded to, Debian Live Project <>:
Bug#702421; Package live-boot. (Wed, 06 Mar 2013 13:18:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Evgeni Golov <>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <>. (Wed, 06 Mar 2013 13:18:03 GMT) Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Evgeni Golov <>
Cc: Evgeni Golov <>
Subject: [PATCH 3/3] transform link targets so they work *after* the mount was moved
Date: Wed, 6 Mar 2013 14:04:42 +0100
From: Evgeni Golov <>

Closes: #702421
 scripts/boot/ |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/scripts/boot/ b/scripts/boot/
index 6fda056..d775181 100755
--- a/scripts/boot/
+++ b/scripts/boot/
@@ -1149,12 +1149,12 @@ link_files ()
 	# is non-empty, remove mask from all source paths when
 	# creating links (will be necessary if we change root, which
 	# live-boot normally does (into $rootmnt)).
-	local src_dir dest_dir src_mask
+	local src_dir dest_dir src_transform
 	# remove multiple /:s and ensure ending on /
 	src_dir="$(trim_path ${1})/"
 	dest_dir="$(trim_path ${2})/"
-	src_mask="${3}"
+	src_transform="${3}"
 	# This check can only trigger on the inital, non-recursive call since
 	# we create the destination before recursive calls
@@ -1181,12 +1181,12 @@ link_files ()
 				chown_ref "${src}" "${dest}"
 				chmod_ref "${src}" "${dest}"
-			link_files "${src}" "${dest}" "${src_mask}"
+			link_files "${src}" "${dest}" "${src_transform}"
-			if [ -n "${src_mask}" ]
+			if [ -n "${src_transform}" ]
-				final_src="$(echo ${final_src} | sed "s|^${src_mask}||")"
+				final_src="$(echo ${final_src} | sed "${src_transform}")"
 			rm -rf "${dest}" 2> /dev/null
 			ln -s "${final_src}" "${dest}"
@@ -1511,7 +1511,7 @@ activate_custom_mounts ()
 		local cow_dir links_source
 		if [ -n "${opt_link}" ] && [ -z "${PERSISTENCE_READONLY}" ]
-			link_files ${source} ${dest} ${rootmnt}
+			link_files ${source} ${dest} "s|^/live/|/lib/live/mount/|"
 		elif [ -n "${opt_link}" ] && [ -n "${PERSISTENCE_READONLY}" ]
 			mkdir -p ${rootmnt}/lib/live/mount/persistence
@@ -1528,7 +1528,7 @@ activate_custom_mounts ()
 			chown_ref "${source}" "${cow_dir}"
 			chmod_ref "${source}" "${cow_dir}"
 			do_union ${links_source} ${cow_dir} ${source} ${rootfs_dest_backing}
-			link_files ${links_source} ${dest} ${rootmnt}
+			link_files ${links_source} ${dest} "s|^${rootmnt}||"
 		elif [ -n "${opt_union}" ] && [ -z "${PERSISTENCE_READONLY}" ]
 			do_union ${dest} ${source} ${rootfs_dest_backing}

Severity set to 'normal' from 'important' Request was from Daniel Baumann <> to (Wed, 06 Mar 2013 14:36:12 GMT) Full text and rfc822 format available.

Reply sent to Daniel Baumann <>:
You have taken responsibility. (Sun, 10 Mar 2013 18:21:03 GMT) Full text and rfc822 format available.

Notification sent to Evgeni Golov <>:
Bug acknowledged by developer. (Sun, 10 Mar 2013 18:21:04 GMT) Full text and rfc822 format available.

Message #17 received at (full text, mbox):

From: Daniel Baumann <>
Subject: Bug#702421: fixed in live-boot 4.0~a8-1
Date: Sun, 10 Mar 2013 18:17:31 +0000
Source: live-boot
Source-Version: 4.0~a8-1

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

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

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

Debian distribution maintenance software
Daniel Baumann <> (supplier of updated live-boot 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

Hash: SHA1

Format: 1.8
Date: Sun, 10 Mar 2013 19:02:23 +0100
Source: live-boot
Binary: live-boot live-boot-doc live-boot-initramfs-tools
Architecture: source all
Version: 4.0~a8-1
Distribution: experimental
Urgency: low
Maintainer: Debian Live Project <>
Changed-By: Daniel Baumann <>
 live-boot  - Live System Boot Scripts
 live-boot-doc - Live System Boot Scripts (documentation)
 live-boot-initramfs-tools - Live System Boot Scripts (initramfs-tools backend)
Closes: 702421
 live-boot (4.0~a8-1) experimental; urgency=low
   [ Daniel Baumann ]
   * Moving initramfs-tools entry-point to backends.
   * Moving dracut entry-point stub to backends.
   * Dropping pre-squeeze udev conditionals in initramfs-tools hook.
   * Dropping conditionals in backend, stuff is either there or not but not
     nothing in between.
   * Correcting spelling typos, thanks to Adam D. Barratt <adam@adam->.
   [ Evgeni Golov ]
   * Fixing invalid syntax in test for opt_link.
   * Checking for ${overlay}, not ${device} when trying to close
   * Transforming link targets so they work after the mount was moved
     (Closes: #702421).
 b2864591f2dcda532f558eccd9aab43cc5656cdf 1376 live-boot_4.0~a8-1.dsc
 6edb0f9d3d12622fb92bf9c7d3e80070c6c58228 58304 live-boot_4.0~a8.orig.tar.xz
 5426b1cea470681ada33406e8781d0295e4dceaa 22756 live-boot_4.0~a8-1.debian.tar.xz
 e5189a07f74880d33fd5a3e4e646103951e0aa5e 48858 live-boot_4.0~a8-1_all.deb
 fa08a4bb53beef83532eaeec95fb6acf1692d9ba 51940 live-boot-doc_4.0~a8-1_all.deb
 344f2dc4818073a48a47ca74684446690db0a23b 26858 live-boot-initramfs-tools_4.0~a8-1_all.deb
 9c6c32e4de2b630cf53e80c61466bec158ab477fcc9a5a5f9a09962afb3eebfa 1376 live-boot_4.0~a8-1.dsc
 89344388c3b90d4e0c9f1ffe703605e0e91195c036cf42fe1abf570760c6ea3d 58304 live-boot_4.0~a8.orig.tar.xz
 7f9250886abf992a5ddde19263f2f7566bdb60c2e78be14ff953a785b920ce08 22756 live-boot_4.0~a8-1.debian.tar.xz
 45c7839b3aad2672f9f8981de6032b4d18f4e4955a438a75859d5f7a56b5a5dc 48858 live-boot_4.0~a8-1_all.deb
 6a54bd22624c54cd537cfae2e43b84808efb526dff3133edd81e6be922a61ade 51940 live-boot-doc_4.0~a8-1_all.deb
 ad6b40040661123f445b74e9f936e7599d60389fd2d9b53f5873ec14c7777c9d 26858 live-boot-initramfs-tools_4.0~a8-1_all.deb
 c31681ddb1bffed3ad3a8723ef5912fa 1376 misc optional live-boot_4.0~a8-1.dsc
 96b2ea491a42de84bdd08d561f204ccf 58304 misc optional live-boot_4.0~a8.orig.tar.xz
 d4280ef1888692ee4540f39e774f51ab 22756 misc optional live-boot_4.0~a8-1.debian.tar.xz
 1269d7b7d59addffaae0194e2d0bf198 48858 misc optional live-boot_4.0~a8-1_all.deb
 1c27510a6289ddbb289b69364ff17ae1 51940 doc optional live-boot-doc_4.0~a8-1_all.deb
 598f58149cdfcc9e3475989494d50610 26858 misc optional live-boot-initramfs-tools_4.0~a8-1_all.deb

Version: GnuPG v1.4.12 (GNU/Linux)


Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Wed Apr 16 11:06:50 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.