[monit/services] Correction lvm seulement pour squeeze

Ignore-this: ad048f52eead30623f3b7fec9133311a
La version de monit sous lenny répond "syntax error" de toute façon

darcs-hash:20110311222023-ddb99-0cb927e53378fae4c91159744d2e5a64c686f75e.gz
This commit is contained in:
Michel Blockelet 2011-03-11 23:20:23 +01:00
parent 290607b89d
commit 3bbbed833b

View file

@ -241,7 +241,7 @@ for line in metadata.Probes["fstab_local"].splitlines():
comment("partition %s" % mntpoint)
# on vérifie le filesystem directement pour les volumes lvm
if fs.startswith('/dev/mapper'):
if fs.startswith('/dev/mapper') and has("squeeze"):
print 'check filesystem fs%s with path %s' % (mntpoint, mntpoint)
else:
print 'check device fs%s with path %s' % (mntpoint, fs)