From 4be9427980e2a3300dcdf69716a16b9e398ee15c Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Fri, 16 Nov 2018 17:35:36 +0100
Subject: buster installer hotix

---
 .../chroot_local-hooks/03-buster-installer-hotfix  | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100755 config/chroot_local-hooks/03-buster-installer-hotfix

diff --git a/config/chroot_local-hooks/03-buster-installer-hotfix b/config/chroot_local-hooks/03-buster-installer-hotfix
new file mode 100755
index 0000000..93c1ded
--- /dev/null
+++ b/config/chroot_local-hooks/03-buster-installer-hotfix
@@ -0,0 +1,30 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "buster" ]; then
+
+# Installer Hotfix
+cd /usr/share/acritoxinstaller/modules
+
+cat <<"EOF" >partmgr.patch
+--- partmgr.orig        2018-11-16 16:22:52.000000000 +0100
++++ partmgr     2018-11-16 17:06:30.473477117 +0100
+@@ -7,9 +7,8 @@
+		get_root
+		TERM=xterm /sbin/"$1" "$2"
+		;;
+-	gparted|qtparted)
+-		get_root X
+-		"$1" "$2"
++	gparted)
++		"/usr/sbin/$1" "$2"
+		;;
+	esac
+ }
+
+EOF
+
+patch -p0 -i partmgr.patch
+rm -f partmgr.patch
+cd -
+fi
-- 
cgit v1.0