Bug#512656: live-initramfs: failing to mount persistence root 'live-rw'
Package: live-initramfs
Version: 1.154.3-1
Severity: important
Trying to enable a persistent boot with a persistent root file (live-rw)
the live boot stops with the following errors:
mount: mounting aufs on /root failed: Invalid argument
...
mount aufs on /root failed with option
noatime,dirs=/cow=rw://filesystem.squashfs=rr
In order to solve the problem I changed the following line (#209) in
live-helpers, function setup_loop():
--- live-helpers.orig 2009-01-22 17:02:33.281250000 +0100
+++ live-helpers 2009-01-22 17:03:03.546875000 +0100
@@ -206,7 +206,7 @@
dev=$(sys2dev "${loopdev}")
options=''
- if [ -n ${readonly} ]
+ if [ -n "${readonly}" ]
then
if losetup --help 2>&1 | grep -q --
"-r\b"
then
A non-zero length test (-n) on an undefined and unquoted variable
returns true. In this case setup_loop is called in find_cow_device()
with only 3 arguments (6th is undefined) which leads to unexpected
readonly loop mount.
Cheers,
Th.
-- Package-specific info:
I discover the error on a live-initramfs installed in ubuntu (while
trying to replace casper by live-initramfs), but as the same code is
part on the git version 1.154.5-1 2009-01-12, it probably worths
reporting.
-- 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
Reply to: