casper-snapshot --resync-string:Defaults() wrongly sets COW

Bug #384066 reported by phl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Binary package hint: casper

casper-snapshot --resync-string:Defaults()' wrongly sets COW from $snap_mount value remembered by initrd/casper:try_snap() line:

echo "export ${snap_type}SNAP="${snap_mount}":${snapdev}:${snapfile}" >> /etc/casper.conf # for resync on reboot/halt

for ROOTSNAP the value of ${snap_mount} is /root but the value of COW should be /cow

for HOMESNAP the value of ${snap_mount} is /root/home but the value of COW should be /home or better /cow/home should /casper directory provide a R/O filesystem with something in /home.

Revision history for this message
Colin Watson (cjwatson) wrote :

Surely it would be simpler and better just to have /scripts/casper put the right thing in casper.conf to start with? Nothing else other than casper-snapshot uses that, and it seems wrong to have to have it know what the initramfs happened to use as its target directory name.

I'll make the appropriate change.

Colin Watson (cjwatson)
Changed in casper (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.178

---------------
casper (1.178) karmic; urgency=low

  * Ensure that unionfs-fuse isn't killed by /etc/init.d/sendsigs on
    shutdown (LP: #386010).
  * Patches from "phl" (https://launchpad.net/~ubuntu-leledy), adjusted by
    me, to fix snapshot resync:
    - Avoid using cpio -u -d options if klibc cpio is in use (LP: #384059).
    - Copy /etc/casper.conf into /root, otherwise we forget snapshot resync
      settings (LP: #384061).
    - Adjust the first field of *SNAP entries in casper.conf to be relative
      to /cow, not /root (LP: #384066).
    - Prefix $DEST with $MOUNTP in casper-snapshot (LP: #384068).
    - /etc/init.d/casper is usually called with 'start', so handle that as
      well as 'stop' to do snapshot resyncing and CD ejecting (LP: #384076).
  * Fix casper-snapshot(1) syntax to avoid missing spaces between options
    and their values.
  * Fix showmounts when used in conjunction with unionfs-fuse; read-only
    filesystems need to be bind-mounted rather than move-mounted.

 -- Colin Watson <email address hidden> Fri, 12 Jun 2009 13:24:28 +0100

Changed in casper (Ubuntu):
status: Fix Committed → Fix Released
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.