Bug#681176: live-boot: persistence mounting fails if live-persistence.conf contains "source=." stanza

July 11th, 2012 - 02:20 am ET by Nemo Inis | Report spam
Package: live-boot
Version: 3.0~a35-1
Severity: important

live-boot fails to mount a persistence volume if the volume's live-
persistence.conf contains the "source=." stanza. It wrongly reports an unsafe
custom mount. Since that stanza is also automatically used for compatibility-
mode mounting of old home-rw and live-rw overlays, this bug may affect quite a
few people.

I believe the bug is a typo at line 1307 of lib/boot/misc-helpers.sh, which
reads:
if echo ${opt_source} | grep -q -e "^/" -e "^\(.*/\)\?\.\.\?\(/.*\)\?$" && [
"${source}" != "." ]
but should read instead:
if echo ${opt_source} | grep -q -e "^/" -e "^\(.*/\)\?\.\.\?\(/.*\)\?$" && [
"${opt_source}" != "." ]

This change fixed the problem for my wheezy live build.




Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (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



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 intrigeri
July 12th, 2012 - 10:50 pm ET | Report spam
tags 681176 + pending
thanks

Hi,

Nemo Inis wrote (11 Jul 2012 06:13:53 GMT) :
I believe the bug is a typo at line 1307 of lib/boot/misc-helpers.sh, which
reads: [...]
but should read instead: [...]



Fixed in Git, thanks!



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search