Union file system is killed when shutting down (SQUASHFS errors)

Bug #600739 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: casper

I was debugging a shutdown issue on a system where there was a ntfs recovery partition on the disk. That is, a casper system and a ubiquity install on, say, /dev/sda1.

One thing I noticed is that I was getting all sorts of crazy SQUASHFS errors on shutdown, appearing shortly after Ubuntu turned swap off.

However, I believe it was because /etc/rc6.d/S20sendsigs was killing the aufsd processes (as well as mount.ntfs). The following trivial patch fixed it for me. It may not be the ideal fix, but it's a start.

diff -Nru casper-1.236/scripts/casper casper-1.236test1/scripts/casper
--- casper-1.236/scripts/casper 2010-04-12 23:36:20.000000000 +0100
+++ casper-1.236test1/scripts/casper 2010-07-01 02:01:23.000000000 +0100
@@ -487,6 +487,10 @@
         fi
         break
     done
+
+ # Protect the union and any possible ntfs backing from shutdown
+ pgrep ${UNIONFS} >> /var/run/sendsigs.omit
+ pgrep mount.ntfs >> /var/run/sendsigs.omit
 }

 check_dev ()

Michael Terry (mterry)
tags: added: oem-services
Revision history for this message
Stéphane Graber (stgraber) wrote :

Marking as Invalid because aufsd and overlayfsd are kernel threads and as such aren't killable so don't need to be explicitly protected.
As for the ntfs mount, the standard shutdown sequence should be syncing and unmounting all filesystems, I don't see why we should be special casing this one.

Changed in casper (Ubuntu):
status: New → Invalid
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.