From c0c3d61f712f36baa2651048f2e38a1e30271b1b Mon Sep 17 00:00:00 2001 From: ianmdlvl Date: Tue, 18 May 2004 23:20:05 +0000 Subject: [PATCH] @@ -1,3 +1,9 @@ +chiark-utils (4.0.99.0.7) unstable; urgency=low + + * backup: pass -P option to df in lvm snap script. + + -- + chiark-utils (4.0.99.0.6) unstable; urgency=low * sync-accounts works properly with groups with - + . in names --- backup/lvm | 2 +- debian/changelog | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backup/lvm b/backup/lvm index 592513a..09bda9e 100755 --- a/backup/lvm +++ b/backup/lvm @@ -63,7 +63,7 @@ fstype="$(mount | sed -n \ "s,^$device on $mountpoint type \([a-z0-9][a-z0-9]*\) .*,-t \1 ,p")" if [ -z "$lvm_lvsize_opts" ]; then - df="$(df -k $device)" + df="$(df -P -k $device)" blocks="$(printf "%s" "$df" | sed -n '2,$s,^/dev/[^ ]*[ ][ ]*[0-9][0-9]*[ ][ ]*\([0-9][0-9]*\)[ ].*,\1,p')" lvm_lvsize_opts="-L $blocks"K fi diff --git a/debian/changelog b/debian/changelog index 2e5972b..8f55216 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +chiark-utils (4.0.99.0.7) unstable; urgency=low + + * backup: pass -P option to df in lvm snap script. + + -- + chiark-utils (4.0.99.0.6) unstable; urgency=low * sync-accounts works properly with groups with - + . in names -- 2.30.2