Debian Bug report logs - #715186
support loop-mounted iso on same partition as persistence

version graph

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

Reported by: probono <probono@puredarwin.org>

Date: Sat, 6 Jul 2013 17:54:02 UTC

Severity: wishlist

Found in version live-boot/3.0.1-1

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, probono@puredarwin.org, Live Systems Maintainers <debian-live@lists.debian.org>:
Bug#715186; Package live-boot. (Sat, 06 Jul 2013 17:54:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to probono <probono@puredarwin.org>:
New Bug report received and forwarded. Copy sent to probono@puredarwin.org, Live Systems Maintainers <debian-live@lists.debian.org>. (Sat, 06 Jul 2013 17:54:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: probono <probono@puredarwin.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-boot: Fails when looo-mounted ISO on same partition as persistence file
Date: Sat, 06 Jul 2013 19:51:19 +0200
Package: live-boot
Version: 3.0.1-1
Severity: important
Tags: upstream

Dear Maintainer,

persistence apparently failes when the persistence file is located on same ext4 partition as is the live ISO which is booted with GRUB2.

Allowing to put both ISO files and persistence files onto the same partition would be a tremendous enhancement, since it would allow one to put many OSes and their persistent state on a system without having to repartition.

# I boot from an ISO that is loop-mounted with GRUB2 like this:
root@debian:/home/user# cat /lib/live/mount/findiso/boot/grub/grub.cfg
# (...)
menuentry "binary.hybrid.iso" {
insmod ext2
iso_path="/boot/binary.hybrid.iso"
export iso_path
args="findiso=${iso_path} live-config.keyboard-layouts=de live-config.locales=de_DE.UTF-8 live-config.timezone=Europe/Berlin boot=live config quiet splash"
export args
loopback loop ${iso_path}
linux (loop)/live/vmlinuz $args
initrd (loop)/live/initrd.img
}
# (...)
 
# When I boot without the "persistence" boot option:
# ==================================================
 
root@debian:/home/user# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
 
root@debian:/home/user# cat /lib/live/mount/medium/.disk/info
Debian GNU/Linux 7.0.0 "Wheezy" - Official Snapshot i386 LIVE Binary 20130705-09:20
 
root@debian:/home/user# dpkg-query -W -f '${status} ${package} ${version}\n' | sed -n 's/^install ok installed //p' | grep live
live-boot 3.0.1-1
live-boot-doc 3.0.1-1
live-boot-initramfs-tools 3.0.1-1
live-config 3.0.23-1
live-config-doc 3.0.23-1
live-config-sysvinit 3.0.23-1
live-manual 1:3.0.2-1
live-manual-epub 1:3.0.2-1
live-manual-html 1:3.0.2-1
live-manual-odf 1:3.0.2-1
live-manual-pdf 1:3.0.2-1
live-manual-txt 1:3.0.2-1
live-tools 3.0.20-1
 
# This is my persistence file. It is located in the root directory of the ext4 partition
root@debian:/home/user# ls /lib/live/mount/findiso/persistence
/lib/live/mount/findiso/persistence
root@debian:/home/user# mount /lib/live/mount/findiso/persistence /mnt/ -oloop,ro
root@debian:/home/user# cat /mnt/persistence.conf
/etc
/root/persistent
 
# During boot, I get an error
root@debian:/home/user# cat /var/log/live/boot.log
umount: can't umount /live/overlay: Device or resource busy
 
# This is what is mounted
root@debian:/home/user# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=215958,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=350408k,mode=755)
/dev/sda1 on /lib/live/mount/findiso type ext4 (ro,noatime,user_xattr,barrier=1,data=ordered)
/dev/loop0 on /lib/live/mount/medium type iso9660 (ro,noatime)
/dev/loop1 on /lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,relatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,noatime,mode=755)
aufs on / type aufs (rw,relatime,si=6b210e2a,noxino)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=700800k)
 
# When I boot with the "persistence" boot option:
# ==================================================
 
root@debian:/home/user# ls /lib/live/mount/findiso/persistence
ls: cannot access /lib/live/mount/findiso/persistence: No such file or directory
 
root@debian:/home/user# cat /var/log/live/boot.log
mount: mounting /dev/sda2 on /live/persistence/sda2 failed: No such device
mount: mounting /dev/sda5 on /live/persistence/sda5 failed: No such device
mount: mounting /dev/sda on /live/persistence/sda failed: No such device
mount: mounting /dev/sr0 on /live/persistence/sr0 failed: No such device
cp: can't create directory '/live/persistence/loop2/etc': Read-only file system
mount: mounting /live/persistence/loop2/etc on /root/etc failed: No such file or directory
mkdir: can't create directory '/live/persistence/loop2/root': Read-only file system
cp: can't create directory '/live/persistence/loop2/root/persistent': No such file or directory
mount: mounting /live/persistence/loop2/root/persistent on /root/root/persistent failed: No such file or directory
umount: can't umount /live/overlay: Device or resource busy
 
root@debian:/home/user# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=215958,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=350408k,mode=755)
/dev/sda1 on /lib/live/mount/persistence/sda1 type ext4 (ro,noatime,user_xattr,barrier=1,data=ordered)
/dev/loop0 on /lib/live/mount/medium type iso9660 (ro,noatime)
/dev/loop1 on /lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,relatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,noatime,mode=755)
aufs on / type aufs (rw,relatime,si=c3e74db7,noxino)
/dev/loop2 on /lib/live/mount/persistence/loop2 type ext4 (ro,noatime,user_xattr,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=700800k)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

-- Package-specific info:

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-486
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-boot depends on:
ii  live-boot-initramfs-tools [live-boot-backend]  3.0.1-1

Versions of packages live-boot recommends:
ii  live-boot-doc  3.0.1-1
ii  live-tools     3.0.20-1
ii  rsync          3.0.9-4
ii  uuid-runtime   2.20.1-5.3

Versions of packages live-boot suggests:
pn  cryptsetup    <none>
pn  curlftpfs     <none>
pn  httpfs2       <none>
pn  unionfs-fuse  <none>
ii  wget          1.13.4-3

-- no debconf information



Severity set to 'wishlist' from 'important' Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Fri, 12 Jul 2013 13:54:07 GMT) Full text and rfc822 format available.

Changed Bug title to 'support loop-mounted iso on same partition as persistence' from 'live-boot: Fails when looo-mounted ISO on same partition as persistence file' Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Fri, 12 Jul 2013 13:54:08 GMT) Full text and rfc822 format available.

Removed tag(s) upstream. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Mon, 15 Jul 2013 12:12:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Live Systems Maintainers <debian-live@lists.debian.org>:
Bug#715186; Package live-boot. (Wed, 23 Oct 2013 06:36:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to alexandre.abbes@laposte.net:
Extra info received and forwarded to list. Copy sent to Live Systems Maintainers <debian-live@lists.debian.org>. (Wed, 23 Oct 2013 06:36:17 GMT) Full text and rfc822 format available.

Message #16 received at 715186@bugs.debian.org (full text, mbox):

From: alexandre.abbes@laposte.net
To: 715186@bugs.debian.org
Subject: COW partition is mounted RO
Date: Wed, 23 Oct 2013 08:34:38 +0200
1)It seems that cow partition is mounted ro.

Thus any persistence file cannot be modified althought it is mounted.
I do not know how to fix it, althought it is not always a bad idea to mount the
cow ro to protect it.

2) Is the keyword "persistence" a good choice, as in the squeeze and previous versions, the keyword was "persistent". 
I would make the same remark concerning the name of the persistence files/partitions : live-rw was ok, why changing, it is puzzeling.

best regards

Alexandre Abbès

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 00:07:01 2014; Machine Name: buxtehude.debian.org

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