File: 0012-override-systemd-udevd-for-bullseye-to-mount-usb-sto.patch

package info (click to toggle)
x2gothinclient 1.5.0.1-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: sh: 1,285; perl: 433; cpp: 76; makefile: 26
file content (42 lines) | stat: -rw-r--r-- 1,535 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
42
From 9abcc4e1d470eca2b3367dbd974e835f28a9e5c7 Mon Sep 17 00:00:00 2001
From: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Date: Tue, 8 Dec 2020 10:52:39 -0600
Subject: [PATCH 12/12] override systemd-udevd for bullseye to mount usb
 storage in shared space.

---
# debian/changelog                      | 1 +
 management/sbin/x2gothinclient_create | 5 +++++
 2 files changed, 6 insertions(+)

#diff --git a/debian/changelog b/debian/changelog
#index 94d57e8..783b6db 100644
#--- a/debian/changelog
#+++ b/debian/changelog
#@@ -3,6 +3,7 @@ x2gothinclient (1.5.0.2-0x2go2) UNRELEASED; urgency=medium
#   [ Oleksandr Shneyder ]
#   * Update classic TCE to debian buster.
#   * create /var/lib/systemd in tmpfs for bullseye.
#+  * override systemd-udevd for bullseye to mount usb storage in shared space.
# 
#   [ Mike Gabriel ]
#   * New upstream release (1.5.0.2):
diff --git a/management/sbin/x2gothinclient_create b/management/sbin/x2gothinclient_create
index 06d478b..2a0190a 100755
--- a/management/sbin/x2gothinclient_create
+++ b/management/sbin/x2gothinclient_create
@@ -161,6 +161,11 @@ if [ "$TC_DISTRO_CODENAME" = "bullseye" ]; then
 	cat >> "$TC_CHROOT/etc/fstab" <<EOF
 none	/var/lib/systemd	tmpfs	size=50M,mode=755					0	0
 EOF
+mkdir $TC_CHROOT/etc/systemd/system/systemd-udevd.service.d
+	cat >> "$TC_CHROOT/etc/systemd/system/systemd-udevd.service.d/systemd-udevd_x2go.conf" <<EOF
+[Service]
+PrivateMounts=no
+EOF
 fi
 
 if [ "x$TC_DISTRO_CODENAME" = "xwheezy" ] && [ "x$TC_FLAVOUR" = "xminidesktop" ]; then
-- 
2.30.0