summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-buster-installer-hotfix
blob: 93c1ded2759d17a950cefa96293c553d4e488e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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