casper-sn persistence fails in 14.04.3, 15.10

Bug #1520575 reported by madimadi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Reproducing:
Create fat32 bootable pendrive having the below grub entry

boot.cfg
menuentry "Run ubuntu-15.10-desktop-amd64 " {
 loopback loop /ubuntu-15.10-desktop-amd64.iso
 linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-15.10-desktop-amd64.iso persistent show-cow --
 initrd (loop)/casper/initrd.lz
}

iso file is an unmodified unutu iso.

After boot into desktop, running
# echo TEST > /etc/test-file
# casper-snapshot
# cp /mnt/casper-snapshot/casper-sn.cpio.gz /media/ubuntu/<PENDRIVE_NAME>
# shutdown -r now

Boot again the same way into desktop.
# ls -l /etc/test-file
ls: cannot access /etc/test-file: No such file or directory

Hint:
#cat /upper/etc/test-file
TEST

a1bert (a1bert)
tags: added: casper
tags: added: persistent
Revision history for this message
a1bert (a1bert) wrote :

the same here, the new version of casper is not working properly:

there is not only problem with assembling root FS as reported above, but I am also not able to boot with persistent boot cmd:

reproduce:

-syslinuxed vfat USB stick: /casper/filesystem.squashfs,initrd.gz,vmlinuz
-persistent keyword on cmdline
-boot ends up in busybox

without "persistent" keyword, system boots ok

CAUSE:

initramfs-tools/scripts/casper: find_cow_device() called from setup_unionfs("/cdrom/casper","/root"), unmounts previously mounted /cdrom during scanning for casper-rw; /cdrom/casper/filesystem.squashfs is then not accessible for mount ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in casper (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "dirty fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
a1bert (a1bert) wrote :

use casper-snapshot -c /cow/upper

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.