Commit ffa8dd18 authored by Wolfgang Schweer's avatar Wolfgang Schweer
Browse files

Workaround for mounting removable media on diskless workstations

Add share/debian-edu-config/udisks2.patch.

Use code in share/ltsp/init-ltsp.d/60-edu-client to apply the patch (this
happens only on-the-fly for each session in the overlay filesystem).

Adjust Makefile.
parent faeaebd4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ install: install-testsuite
		share/debian-edu-config/debian-edu.ldapscripts.passwd \
		share/debian-edu-config/passwords_stub.dat \
		share/debian-edu-config/gosa.conf.template \
		share/debian-edu-config/udisks2.patch \
		share/pam-configs/edu-group \
		share/pam-configs/edu-umask \
		share/perl5/Debian/Edu.pm \
+12 −0
Original line number Diff line number Diff line
debian-edu-config (2.10.46) UNRELEASED; urgency=medium

  * Workaround for mounting removable media on diskless workstations, see LDM
    bug #913774. Due to missing session registering with wtemp and utemp, media
    mounting gets denied.
    - Add share/debian-edu-config/udisks2.patch.
    - Use code in share/ltsp/init-ltsp.d/60-edu-client to apply the patch (this
      happens only on-the-fly for each session in the overlay filesystem).
  * Adjust Makefile.

 -- Wolfgang Schweer <wschweer@arcor.de>  Thu, 15 Nov 2018 02:55:59 +0100

debian-edu-config (2.10.45) unstable; urgency=medium

  [ Wolfgang Schweer ]
+20 −0
Original line number Diff line number Diff line
--- a/org.freedesktop.UDisks2.policy	2018-09-28 21:48:23.000000000 +0200
+++ b/org.freedesktop.UDisks2.policy	2018-11-14 22:10:15.277057756 +0100
@@ -84,7 +84,7 @@
     <message xml:lang="zh_CN">挂载文件系统需要身份验证</message>
     <message xml:lang="zh_TW">要掛載檔案系統需要先核對身分</message>
     <defaults>
-      <allow_any>auth_admin</allow_any>
+      <allow_any>yes</allow_any>
       <allow_inactive>auth_admin</allow_inactive>
       <allow_active>yes</allow_active>
     </defaults>
@@ -165,7 +165,7 @@
     <message xml:lang="zh_CN">挂载文件系统需要身份验证</message>
     <message xml:lang="zh_TW">要掛載檔案系統需要先核對身分</message>
     <defaults>
-      <allow_any>auth_admin</allow_any>
+      <allow_any>yes</allow_any>
       <allow_inactive>auth_admin</allow_inactive>
       <allow_active>auth_admin_keep</allow_active>
     </defaults>
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ if boolean_is_true "$LTSP_FATCLIENT" && [ -z "$DEFAULT_DISPLAY_MANAGER" ]; then
    service_disable autofs
    # Ensure /etc/environment is set correctly.
    /usr/share/debian-edu-config/tools/update-proxy-from-wpad
    # Allow logged in users to mount removable media (like USB sticks); needed
    # because LDM doesn't write utemp/wtemp entries. Remove if #913774 is fixed.
    patch /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy /usr/share/debian-edu-config/udisks2.patch
fi

# Remove useless services for thin clients (in addition to LTSP defaults).