From ea5a52eb2981b8fe531887c3956957742075548a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 13 Jun 2014 18:17:54 +0200 Subject: [pam-fr] fix locking problems --- .../pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent index e2618588..a467b301 100644 --- a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent +++ b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent @@ -16,11 +16,9 @@ if ! grep -q "^${PAM_USER}:" "/etc/passwd"; then CIFS_VOLUME=$(cat /tmp/ldapsearch.${PAM_USER} | grep rufHomepath | cut -d" " -f2 | tr '\\' '/') - # TODO: fix CIFS mount. Currently breaks certain file operations, e.g. firefox's sqlite files - if false; then - #if [ ! -z "${CIFS_VOLUME}" ]; then + if [ ! -z "${CIFS_VOLUME}" ]; then # now we can mount the home directory! - MOUNT_OPTS="-t cifs -o uid=${USER_UID},gid=${USER_GID},forceuid,forcegid,file_mode=0600,dir_mode=0700" + MOUNT_OPTS="-t cifs -o uid=${USER_UID},gid=${USER_GID},forceuid,forcegid,file_mode=0600,dir_mode=0700,nobrl,noacl" export USER="${PAM_USER}" export PASSWD="${PAM_AUTHTOK}" -- cgit v1.2.3-55-g7522 From 5786ffc4733d37ac9f73f76d2956b13fab1a64e2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 13 Jun 2014 18:31:16 +0200 Subject: grep --- remote/rootfs/rootfs-stage31/module.conf | 3 --- remote/rootfs/rootfs-stage32/module.conf | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/remote/rootfs/rootfs-stage31/module.conf b/remote/rootfs/rootfs-stage31/module.conf index cfcb3055..7b221d93 100644 --- a/remote/rootfs/rootfs-stage31/module.conf +++ b/remote/rootfs/rootfs-stage31/module.conf @@ -53,9 +53,6 @@ REQUIRED_FIRMWARE=" rtl_nic/ tigon/ " -REQUIRED_BINARIES=" - grep -" REQUIRED_LIBRARIES=" libnss_dns libresolv diff --git a/remote/rootfs/rootfs-stage32/module.conf b/remote/rootfs/rootfs-stage32/module.conf index ed6c083d..bb08a09b 100644 --- a/remote/rootfs/rootfs-stage32/module.conf +++ b/remote/rootfs/rootfs-stage32/module.conf @@ -38,6 +38,7 @@ REQUIRED_BINARIES=" pkill getent ldconfig + grep " REQUIRED_LIBRARIES=" libcap -- cgit v1.2.3-55-g7522 From c839f1511174e639b0a7fa28dbe9a4b14b07056b Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 16 Jun 2014 15:16:33 +0200 Subject: [kernel.inc] fix bad cd's. --- remote/includes/kernel.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/remote/includes/kernel.inc b/remote/includes/kernel.inc index 839edcc3..dc7f7f12 100644 --- a/remote/includes/kernel.inc +++ b/remote/includes/kernel.inc @@ -53,6 +53,8 @@ copy_kernel_modules() { check_kernel_base_dir + + local OLD_DIR="$(pwd)" # # process modules list @@ -121,18 +123,19 @@ copy_kernel_modules() { cp "${KERNEL_MODULES_DIR}/modules.builtin" "${TARGET_BUILD_DIR}/${KERNEL_MODULES_DIR}" # with modules.order and modules.builtin, we can run depmod for the rest of the files depmod -b "${TARGET_BUILD_DIR}" -a "${KERNEL_NEW_VERSION}" - - cd - >/dev/null + + # go back to wherever we were + cd "${OLD_DIR}" || perror "Could not cd back to ${OLD_DIR}." } copy_firmware() { pinfo "Copying firmware for kernel ${KERNEL_CURRENT_VERSION}..." [ -z "${REQUIRED_FIRMWARE}" ] && perror "REQUIRED_FIRMWARE is empty. Check your config file." - local OLD_DIR=$(pwd) check_kernel_base_dir + local OLD_DIR=$(pwd) # # process firmware list # @@ -199,7 +202,7 @@ copy_firmware() { fi fi - cd "$OLD_DIR" + cd "${OLD_DIR}" || perror "Could not cd back to ${OLD_DIR}." } copy_kernel() { -- cgit v1.2.3-55-g7522 From de91718fff7d0dba4c635d0fbe9f4c57c567988d Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 16 Jun 2014 15:45:46 +0200 Subject: [onetime-fix] abort if /usr/share/themes/Greybird already exists. --- remote/onetime-fixes/install-xfce4-greybird-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/remote/onetime-fixes/install-xfce4-greybird-theme b/remote/onetime-fixes/install-xfce4-greybird-theme index 6c1251a3..0e2bc4ba 100755 --- a/remote/onetime-fixes/install-xfce4-greybird-theme +++ b/remote/onetime-fixes/install-xfce4-greybird-theme @@ -15,7 +15,12 @@ if wget https://github.com/shimmerproject/Greybird/tarball/master -O /tmp/greybi cd /usr/share/themes tar xfz /tmp/greybird.tgz if [ -d "$GREYBIRD" ]; then - mv "$GREYBIRD" Greybird + if [ ! -d Greybird ]; then + mv "$GREYBIRD" Greybird + else + echo "/usr/share/themes/Greybird already exists! Is it good enough?" + exit 1 + fi else echo "Error mv'ing $GREYBIRD to Greybird" exit 1 -- cgit v1.2.3-55-g7522 From 1ed1a0320b0d60c36aa3bad1414ea3193b6e6fee Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 16 Jun 2014 16:18:53 +0200 Subject: dont exit, else xfwm4 will not be created --- remote/onetime-fixes/install-xfce4-greybird-theme | 1 - 1 file changed, 1 deletion(-) diff --git a/remote/onetime-fixes/install-xfce4-greybird-theme b/remote/onetime-fixes/install-xfce4-greybird-theme index 0e2bc4ba..f5b111d7 100755 --- a/remote/onetime-fixes/install-xfce4-greybird-theme +++ b/remote/onetime-fixes/install-xfce4-greybird-theme @@ -19,7 +19,6 @@ if wget https://github.com/shimmerproject/Greybird/tarball/master -O /tmp/greybi mv "$GREYBIRD" Greybird else echo "/usr/share/themes/Greybird already exists! Is it good enough?" - exit 1 fi else echo "Error mv'ing $GREYBIRD to Greybird" -- cgit v1.2.3-55-g7522