-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Andreas Beckmann wrote: > Package: util-vserver > Version: 0.30.210-3 > Followup-For: Bug #360885 > > The script fails after > > ... > + '[' -e /proc/self/vinfo ']' > + showattr -d / > + awk '{print $1}' > + grep -q B > > because grep returns 1 on mismatch and this terminates the script > because of the 'set -e' at the beginning. > > The following should work: > > if showattr -d / | awk '{print $1'} | grep -q B > then > setattr ... > fi Right, my mistake in forgetting how return codes are handled in postinst scripts, putting this fix in now. > I can still construct a case where the barrier flag is not removed from > the root / : if the updated package is installed while running a > non-vserver kernel. This is a probably very rare condition and I can't > think about a good fix for this. The only place where it could be done without fail is in the initscript, so that on every start the barrier is checked and removed on / if it exists. However, the barrier getting set on / is a fairly rare condition itself, as it means that you installed -2 of this package, and are running old style initscripts. I could put it in the initscript for a while, so anybody who got bit by this will have it fixed, and later it can be removed after it is reasonably certain that nobody is still in this scenario. Micah -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEM8Y89n4qXRzy1ioRArf4AJkB/JGVW/yhslvicMA3jPiwnI95lACgjt19 t3+K1mu7B255eO4JNHmq3vM= =7BYq -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]