summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/gparted4
1 files changed, 3 insertions, 1 deletions
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