summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig/chroot_local-hooks/03-buster-installer-hotfix30
1 files changed, 30 insertions, 0 deletions
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