From 3e501ace1b22ad9b7408643257242afc486e56aa Mon Sep 17 00:00:00 2001
From: Joerg Schirottke <master@kanotix.com>
Date: Thu, 28 Feb 2013 15:59:56 +0100
Subject: fix gparted hook

---
 config/chroot_local-hooks/gparted | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config/chroot_local-hooks/gparted b/config/chroot_local-hooks/gparted
index c73d73c..37492c8 100755
--- a/config/chroot_local-hooks/gparted
+++ b/config/chroot_local-hooks/gparted
@@ -1,3 +1,5 @@
 #!/bin/sh
 # gparted hotfix for fat filesystems on raid devices
-sed -ri 's|(mkdosfs )-F(..) -v|\1-vIF\2 |g' /usr/sbin/gpartedbin
+if [ -x /usr/sbin/gpartedbin ]; then
+ sed -ri 's|(mkdosfs )-F(..) -v|\1-vIF\2 |g' /usr/sbin/gpartedbin
+fi
-- 
cgit v1.0