This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch feature/mate-minidesktop in repository live-build-x2go. from 40a6269 fixed logic error in homepageurl script new 6cb8ed1 added debug/log code as the secret key file copying doesn't seem to work on Debian stretch new 58cc432 added code so secret key file copying should also work for MATE-MiniDesktop new cd669f5 Merge branch 'feature/openbox' into feature/mate-minidesktop new 6d130c0 targetusername contents were swapped new d7dc93c fied comment to match code new d2b51c8 added more debug code as stretch still doesn't mount/copy the secret key files, even though the blockdevs list is not empty new b90b9b8 Merge branch 'feature/openbox' into feature/mate-minidesktop new 8f3f99d added further debug output new 0446080 Merge branch 'feature/openbox' into feature/mate-minidesktop new 012d885 typofix new cd682d9 2260-getsshhostkeysfrommedia now writes list of detected disk labels into its "I'm done" file; 2270-getsshclientkeysfrommedia picks up this list instead of querying anew, also, 2270-getsshclientkeysfrommedia no longer nudges automounter new 4cc1a51 added debug output of blockdevloopcount new c97ca5d Merge branch 'feature/openbox' into feature/mate-minidesktop new c8a8bb0 removed debug output new 722ee38 Merge branch 'feature/openbox' into feature/mate-minidesktop new f7c6279 (hopefully) fixed issue that parameters without an equals sign became appended to the preceding parameter's value (not fixed in 2900* yet, as those differ across branches) new 9d5bfb0 Merge branch 'feature/openbox' into feature/mate-minidesktop new 097def2 (hopefully) fixed issue that parameters without an equals sign became appended to the preceding parameter's value The 18 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: .../lib/live/config/2100-show-sysconf | 2 +- .../lib/live/config/2250-getsshpubkeysfromserver | 2 +- .../lib/live/config/2260-getsshhostkeysfrommedia | 11 ++++--- .../lib/live/config/2270-getsshclientkeysfrommedia | 38 +++++++++++++--------- .../lib/live/config/2300-xserver-xorg-getxorgconf | 2 +- .../lib/live/config/2400-live-autoupdate | 12 +++---- .../includes.chroot/lib/live/config/2600-tcpprint | 2 +- .../lib/live/config/2700-x2go-getsessions | 2 +- .../lib/live/config/2710-x2go-getbranding | 2 +- .../lib/live/config/2720-x2go-getbg | 2 +- .../lib/live/config/2900-firefox-config | 2 +- 11 files changed, 44 insertions(+), 33 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 6cb8ed187216e058328cf377ce0b69bc37635638 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 18:56:06 2017 +0100 added debug/log code as the secret key file copying doesn't seem to work on Debian stretch --- .../lib/live/config/2270-getsshclientkeysfrommedia | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index 3bbf516..f6120d5 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -43,7 +43,11 @@ GetSSHClientKeysFromMedia () PORTABLEAPPLABELS=$(lsblk -oLABEL,NAME,MOUNTPOINT -l | awk '$3~/^[^\/]/ && $3="" ; $1=="PORTABLEAPP" { print $2 " " $3}') # block device list, removable first (we want USB media to be able to override keys on fixed disks) - BLOCKDEVS=$(grep -H '' /sys/block/*/removable | awk -F':' '{ print $2 ":" $1}' | sort -r | awk -F'/' '{print $4}') + BLOCKDEVLOOPCOUNT=0 # this is for debugging/logging; it seems the blockdevs list is empty on Debian stretch + while [ -z "$BLOCKDEVS" ] ; do + BLOCKDEVS=$(grep -H '' /sys/block/*/removable | awk -F':' '{ print $2 ":" $1}' | sort -r | awk -F'/' '{print $4}') + BLOCKDEVLOOPCOUNT=$((BLOCKDEVLOOPCOUNT+1)) + done check_for_config (){ if [ -d $1/config/ssh ] || [ -d $1/ssh ] || [ -d $1/.ssh ]; then @@ -109,7 +113,7 @@ GetSSHClientKeysFromMedia () fi fi done - touch /var/lib/live/config/opensshclientkeys + echo "BLOCKDEVS: '$BLOCKDEVS'" > /var/lib/live/config/opensshclientkeys ) & fi } -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit d7dc93c083a4f6f39f22894c9c89acaa76b6e579 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 20:16:23 2017 +0100 fied comment to match code --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index a56d134..c3eb08d 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -33,7 +33,7 @@ GetSSHClientKeysFromMedia () USERHOME=$(getent passwd 1000 | awk -F':' '{ print $6 }') TARGETUSERNAME=$(getent passwd 1000 | awk -F':' '{ print $1 }') else - # let's not forget to set the target user name if we're no MATE-MiniDesktop + # let's not forget to set the target user name if we're MATE-MiniDesktop TARGETUSERNAME="x2gothinclient" fi -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 58cc432ecc6546cd97627771c749db6be3b08f85 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 19:06:10 2017 +0100 added code so secret key file copying should also work for MATE-MiniDesktop --- .../lib/live/config/2270-getsshclientkeysfrommedia | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index f6120d5..f840b62 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -26,8 +26,16 @@ GetSSHClientKeysFromMedia () done # Homedir of user account - # - USERHOME=$(getent passwd 1000 | awk -F':' '{ print $6 }') + # if we're a MATE-MiniDesktop, let this be our homedirectory + USERHOME=$(getent passwd x2gothinclient | awk -F':' '{ print $6 }') + # No Match? Then we're a regular TCE-Live. + if [ -z "$USERHOME" ] ; then + USERHOME=$(getent passwd 1000 | awk -F':' '{ print $6 }') + TARGETUSERNAME="x2gothinclient" + else + # let's not forget to set the target user name if we're no MATE-MiniDesktop + TARGETUSERNAME=$(getent passwd 1000 | awk -F':' '{ print $1 }') + fi # nudge automounter, in case device was already plugged in at power-up if udevadm trigger --action=add ; then @@ -64,7 +72,7 @@ GetSSHClientKeysFromMedia () echo -n "\n$(date +'%F | %T | ')'$0' Keyfile '$KEYFILE' found, copying and adjusting ownership and permissions on destination." | tee -a /dev/tty8 KEYDESTPATH="$USERHOME/.ssh/$(basename "$KEYFILE")" touch "$KEYDESTPATH" - chown user:user \ + chown $TARGETUSERNAME: \ $KEYDESTPATH chmod 600 $KEYDESTPATH cat $(readlink -m "$KEYFILE")>$KEYDESTPATH -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit cd669f5fa86a15d0c41629f182644a1fbc9aa496 Merge: 40a6269 58cc432 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 19:12:18 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop .../lib/live/config/2270-getsshclientkeysfrommedia | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 6d130c05632a4770b8713998404e2e8511a509f6 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 20:15:54 2017 +0100 targetusername contents were swapped --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index f840b62..a56d134 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -31,10 +31,10 @@ GetSSHClientKeysFromMedia () # No Match? Then we're a regular TCE-Live. if [ -z "$USERHOME" ] ; then USERHOME=$(getent passwd 1000 | awk -F':' '{ print $6 }') - TARGETUSERNAME="x2gothinclient" + TARGETUSERNAME=$(getent passwd 1000 | awk -F':' '{ print $1 }') else # let's not forget to set the target user name if we're no MATE-MiniDesktop - TARGETUSERNAME=$(getent passwd 1000 | awk -F':' '{ print $1 }') + TARGETUSERNAME="x2gothinclient" fi # nudge automounter, in case device was already plugged in at power-up -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit c97ca5d4f402525d075ccbed03b3768be1f698dc Merge: 0446080 4cc1a51 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Thu Dec 7 11:07:30 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop .../lib/live/config/2260-getsshhostkeysfrommedia | 11 +++++++---- .../lib/live/config/2270-getsshclientkeysfrommedia | 18 ++++++------------ 2 files changed, 13 insertions(+), 16 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit c8a8bb05f9d9cc9e8042804489f1a42941a94a05 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Thu Dec 7 12:07:27 2017 +0100 removed debug output --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index 2efed51..2a7fc00 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -112,9 +112,6 @@ GetSSHClientKeysFromMedia () : fi fi - else - echo -n "\n$(date +'%F | %T | ')'$0' No NEXTDEVICE found for BLOCKDEV '$BLOCKDEV'." | tee -a /dev/tty8 - fi done echo "BLOCKDEVLOOPCOUNT: '$BLOCKDEVLOOPCOUNT'" > /var/lib/live/config/opensshclientkeys -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit d2b51c871c5f836a3b042450833c3c1fd0e394bc Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 20:22:22 2017 +0100 added more debug code as stretch still doesn't mount/copy the secret key files, even though the blockdevs list is not empty --- .../includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index c3eb08d..6c589f8 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -95,7 +95,7 @@ GetSSHClientKeysFromMedia () if [ -n "$NEXTDEVICE" ] ; then MNTPT=$(echo $NEXTDEVICE | awk '{print $2}') NEXTDEVICE=$(echo $NEXTDEVICE | awk '{print $1}') - + echo -n "\n$(date +'%F | %T | ')'$0' Checking status of Device '$NEXTDEVICE' for BLOCKDEV '$BLOCKDEV'." | tee -a /dev/tty8 if [ -n "$MNTPT" ] ; then echo -n "\n$(date +'%F | %T | ')'$0' Device '$NEXTDEVICE' is mounted at: '$MNTPT'" | tee -a /dev/tty8 if check_for_config $MNTPT ; then @@ -119,6 +119,9 @@ GetSSHClientKeysFromMedia () : fi fi + else + echo -n "\n$(date +'%F | %T | ')'$0' No NEXTDEVICE found for BLOCKDEV '$BLOCKDEV'." | tee -a /dev/tty8 + fi done echo "BLOCKDEVS: '$BLOCKDEVS'" > /var/lib/live/config/opensshclientkeys -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit b90b9b83dfa487bde26e1a5e52e2e442cf76eea8 Merge: cd669f5 d2b51c8 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 20:24:31 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop .../lib/live/config/2270-getsshclientkeysfrommedia | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 8f3f99dfd9c248576d2540590768255a543d2491 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 21:32:37 2017 +0100 added further debug output --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index 6c589f8..429b833 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -125,6 +125,8 @@ GetSSHClientKeysFromMedia () fi done echo "BLOCKDEVS: '$BLOCKDEVS'" > /var/lib/live/config/opensshclientkeys + echo "X2GOTCELIVELABELS: '$X2GOTCELIVELABELS'" >> /var/lib/live/config/opensshclientkeys + echo "PORTABLEAPPLABELS: '$PORTABLEAPPLABELS'" >> /var/lib/live/config/opensshclientkeys ) & fi } -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 012d88570077aec8d71d1320b672487255ebabeb Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 22:46:49 2017 +0100 typofix --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index 429b833..4218aeb 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -59,7 +59,7 @@ GetSSHClientKeysFromMedia () check_for_config (){ if [ -d $1/config/ssh ] || [ -d $1/ssh ] || [ -d $1/.ssh ]; then - echo -n "\n$(date +'%F | %T | ')'$0' Keyfile directory found at '$1/config/ssh', '$1//ssh', or '$1/./ssh'." | tee -a /dev/tty8 + echo -n "\n$(date +'%F | %T | ')'$0' Keyfile directory found at '$1/config/ssh', '$1/ssh', or '$1/./ssh'." | tee -a /dev/tty8 # create .ssh-Directory in case it doesn't exist # mkdir -p $(readlink -m "$USERHOME/.ssh/") -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 0446080fee0876c6267d6509f34a7c5862985f67 Merge: b90b9b8 8f3f99d Author: Stefan Baur <kontakt@baur-itcs.de> Date: Wed Dec 6 21:33:32 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 2 ++ 1 file changed, 2 insertions(+) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit cd682d935c2022cdaa92ad29901e1674b7a118c8 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Thu Dec 7 11:04:11 2017 +0100 2260-getsshhostkeysfrommedia now writes list of detected disk labels into its "I'm done" file; 2270-getsshclientkeysfrommedia picks up this list instead of querying anew, also, 2270-getsshclientkeysfrommedia no longer nudges automounter --- .../lib/live/config/2260-getsshhostkeysfrommedia | 11 +++++++---- .../lib/live/config/2270-getsshclientkeysfrommedia | 13 +++---------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia index 96d56de..ae1e5fb 100755 --- a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia @@ -20,7 +20,10 @@ GetSSHHostKeysFromMedia () fi # list devices (and mountpoints, if present) - X2GOTCELIVELABELS=$(lsblk -oLABEL,NAME,MOUNTPOINT -l | awk '$3~/^[^\/]/ && $3="" ; $1=="X2GO-TCE-LIVE" { print $2 " " $3}') + LABELMPLIST=$(lsblk -oLABEL,NAME,MOUNTPOINT -l) + + # search for our magic label + X2GOTCELIVELABELS=$(echo -e "$LABELMPLIST" | awk '$3~/^[^\/]/ && $3="" ; $1=="X2GO-TCE-LIVE" { print $2 " " $3}') # block device list, non-removable first (for security - we don't want USB media to be able to override keys on fixed disks) BLOCKDEVS=$(grep -H '' /sys/block/*/removable | awk -F':' '{ print $2 ":" $1}' | sort | awk -F'/' '{print $4}') @@ -90,7 +93,7 @@ GetSSHHostKeysFromMedia () if [ -n "$MNTPT" ] ; then echo -n "\n$(date +'%F | %T | ')'$0' Device '$NEXTDEVICE' is mounted at: '$MNTPT'" | tee -a /dev/tty8 if check_for_config $MNTPT ; then - touch /var/lib/live/config/opensshkeys + echo -e "$LABELMPLIST" >/var/lib/live/config/opensshkeys exit 0 fi else @@ -101,7 +104,7 @@ GetSSHHostKeysFromMedia () mount -o ro /dev/$NEXTDEVICE /media/fixeddisks/$NEXTDEVICE if check_for_config /media/fixeddisks/$NEXTDEVICE ; then umount /media/fixeddisks/$NEXTDEVICE - touch /var/lib/live/config/opensshkeys + echo -e "$LABELMPLIST" >/var/lib/live/config/opensshkeys exit 0 fi umount /media/fixeddisks/$NEXTDEVICE @@ -112,7 +115,7 @@ GetSSHHostKeysFromMedia () fi fi done - touch /var/lib/live/config/opensshkeys + echo -e "$LABELMPLIST" >/var/lib/live/config/opensshkeys ) & } diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index 4218aeb..ce978ba 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -37,18 +37,11 @@ GetSSHClientKeysFromMedia () TARGETUSERNAME="x2gothinclient" fi - # nudge automounter, in case device was already plugged in at power-up - if udevadm trigger --action=add ; then - echo -n "\n$(date +'%F | %T | ')'$0' Successfully nudged udev-automounter." | tee -a /dev/tty8 - else - echo -n "\n$(date +'%F | %T | ')'$0' Error while nudging udev-automounter." | tee -a /dev/tty8 - fi - - # list devices (and mountpoints, if present) - X2GOTCELIVELABELS=$(lsblk -oLABEL,NAME,MOUNTPOINT -l | awk '$3~/^[^\/]/ && $3="" ; $1=="X2GO-TCE-LIVE" { print $2 " " $3}') + # search for our magic label + X2GOTCELIVELABELS=$(awk '$3~/^[^\/]/ && $3="" ; $1=="X2GO-TCE-LIVE" { print $2 " " $3}' /var/lib/live/config/opensshkeys) # support for legacy label value - PORTABLEAPPLABELS=$(lsblk -oLABEL,NAME,MOUNTPOINT -l | awk '$3~/^[^\/]/ && $3="" ; $1=="PORTABLEAPP" { print $2 " " $3}') + PORTABLEAPPLABELS=$(awk '$3~/^[^\/]/ && $3="" ; $1=="PORTABLEAPP" { print $2 " " $3}' /var/lib/live/config/opensshkeys) # block device list, removable first (we want USB media to be able to override keys on fixed disks) BLOCKDEVLOOPCOUNT=0 # this is for debugging/logging; it seems the blockdevs list is empty on Debian stretch -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 4cc1a51097af09ea0d506fb9cd0529fe5b79d8a9 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Thu Dec 7 11:06:13 2017 +0100 added debug output of blockdevloopcount --- config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia index ce978ba..2efed51 100755 --- a/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia +++ b/config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia @@ -117,7 +117,8 @@ GetSSHClientKeysFromMedia () fi done - echo "BLOCKDEVS: '$BLOCKDEVS'" > /var/lib/live/config/opensshclientkeys + echo "BLOCKDEVLOOPCOUNT: '$BLOCKDEVLOOPCOUNT'" > /var/lib/live/config/opensshclientkeys + echo "BLOCKDEVS: '$BLOCKDEVS'" >> /var/lib/live/config/opensshclientkeys echo "X2GOTCELIVELABELS: '$X2GOTCELIVELABELS'" >> /var/lib/live/config/opensshclientkeys echo "PORTABLEAPPLABELS: '$PORTABLEAPPLABELS'" >> /var/lib/live/config/opensshclientkeys ) & -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit f7c6279d7a260e8b9331d91bed9eed46c9249006 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Mon Dec 11 15:13:01 2017 +0100 (hopefully) fixed issue that parameters without an equals sign became appended to the preceding parameter's value (not fixed in 2900* yet, as those differ across branches) --- config/includes.chroot/lib/live/config/2100-show-sysconf | 2 +- .../lib/live/config/2250-getsshpubkeysfromserver | 2 +- .../lib/live/config/2300-xserver-xorg-getxorgconf | 2 +- config/includes.chroot/lib/live/config/2400-live-autoupdate | 12 ++++++------ config/includes.chroot/lib/live/config/2600-tcpprint | 2 +- config/includes.chroot/lib/live/config/2700-x2go-getsessions | 2 +- config/includes.chroot/lib/live/config/2710-x2go-getbranding | 2 +- config/includes.chroot/lib/live/config/2720-x2go-getbg | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/includes.chroot/lib/live/config/2100-show-sysconf b/config/includes.chroot/lib/live/config/2100-show-sysconf index f703a6c..70c6625 100755 --- a/config/includes.chroot/lib/live/config/2100-show-sysconf +++ b/config/includes.chroot/lib/live/config/2100-show-sysconf @@ -20,7 +20,7 @@ fi ( if grep -q findiso /proc/cmdline ; then - BOOTEDENV=\$(basename \$(dirname \$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | awk -F'=' ' \$1 == "findiso" { print \$2 }')) | tr -dc 'a-zA-Z0-9. _\-') + BOOTEDENV=\$(basename \$(dirname \$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | awk -F'=' ' \$1 == "findiso" { print \$2 }')) | tr -dc 'a-zA-Z0-9. _\-') fi for TIMESTAMPFILE in /lib/live/mount/rootfs/*/lib; do TIMESTAMP=\$(stat -c %Y \$TIMESTAMPFILE) diff --git a/config/includes.chroot/lib/live/config/2250-getsshpubkeysfromserver b/config/includes.chroot/lib/live/config/2250-getsshpubkeysfromserver index 473fe01..0326ee5 100755 --- a/config/includes.chroot/lib/live/config/2250-getsshpubkeysfromserver +++ b/config/includes.chroot/lib/live/config/2250-getsshpubkeysfromserver @@ -8,7 +8,7 @@ GetSSHPubKeysFromServer () echo -n " getsshpubkeysfromserver" - PUBKEYURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + PUBKEYURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^pubkey=/ { print $2 }' |\ tr -dc 'a-zA-Z0-9.:/?%_\-') diff --git a/config/includes.chroot/lib/live/config/2300-xserver-xorg-getxorgconf b/config/includes.chroot/lib/live/config/2300-xserver-xorg-getxorgconf index 9390e9e..60b4b56 100755 --- a/config/includes.chroot/lib/live/config/2300-xserver-xorg-getxorgconf +++ b/config/includes.chroot/lib/live/config/2300-xserver-xorg-getxorgconf @@ -6,7 +6,7 @@ XServerXorgGetXorgConf () # echo -n " xserver-xorg-getxorgconf" - XORGCONFURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + XORGCONFURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^xorgconfurl=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.:/?%_\-') if [ -n "$XORGCONFURL" ] && [ -d /etc/X11 ] ; then diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate index 919cb44..03ef11e 100755 --- a/config/includes.chroot/lib/live/config/2400-live-autoupdate +++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate @@ -119,7 +119,7 @@ echo -n " live-autoupdater (backgrounding update task)" unset LC_MESSAGES # Define our mountpoint and check if we're capable of auto-updating - NTFSROOT=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | awk -F '=' '/^ntfs-uuid/ { print $2 }' | tr -dc 'a-zA-Z0-9_\-') + NTFSROOT=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | awk -F '=' '/^ntfs-uuid/ { print $2 }' | tr -dc 'a-zA-Z0-9_\-') if [ -n "$NTFSROOT" ]; then mkdir -p /lib/live/mount/ntfsroot # This is in case we've been passed an incomplete UUID and/or one with dashes @@ -162,7 +162,7 @@ echo -n " live-autoupdater (backgrounding update task)" fi # determine our booted environment as well as the other available ones - RUNNINGSYSTEMFULLPATH=$(dirname $(readlink -m "$MOUNTPOINT/$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + RUNNINGSYSTEMFULLPATH=$(dirname $(readlink -m "$MOUNTPOINT/$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^findiso=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9./ _\-')")) @@ -170,7 +170,7 @@ echo -n " live-autoupdater (backgrounding update task)" RUNNINGSYSTEMNAME=$(basename $RUNNINGSYSTEMFULLPATH) # download url pointing to directory with all required files goes here - DOWNLOADURL=$( sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + DOWNLOADURL=$( sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^updateurl=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.:/?%_\-') @@ -183,7 +183,7 @@ echo -n " live-autoupdater (backgrounding update task)" echo -n "\n$(date +'%F | %T | ')'$0': '/lib/live/mount/findiso' directory not found. Scanning for partitions." LISTOFPARTITIONS=$(grep -H ^0$ /sys/block/*/removable | awk -F '/' '{ print $4 }' | xargs -n 1 -I XXX fdisk -l /dev/XXX 2>/dev/null | awk '$0 ~ /Linux$/ { print $1}') TEMPMOUNT=$(mktemp -d -p /lib/live/mount/) - FINDFILE=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | awk -F '=' '$1 == "findiso" { print $2 }' | tr -dc 'a-zA-Z0-9./ _\-') + FINDFILE=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | awk -F '=' '$1 == "findiso" { print $2 }' | tr -dc 'a-zA-Z0-9./ _\-') [ -z "$FINDFILE" ] && exit 0 for PARTITION in $LISTOFPARTITIONS ; do mount -oro $PARTITION $TEMPMOUNT @@ -213,7 +213,7 @@ echo -n " live-autoupdater (backgrounding update task)" # Bandwidth limit goes here # #BWLIMITPERCENT=20 # in percent, numeric-only - BWLIMITPERCENT=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + BWLIMITPERCENT=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^bwlimit=/ { print $2 }' | \ tr -dc '0-9') if [ -z "$BWLIMITPERCENT" ]; then @@ -224,7 +224,7 @@ echo -n " live-autoupdater (backgrounding update task)" # sleeping a random amount of time to ease load on the update server # - MAXSLEEPTIME=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + MAXSLEEPTIME=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^updatesleep=/ && $2 ~ /^[0-9]*$/ { print $2 }' | \ tr -dc '0-9') if [ -z "$MAXSLEEPTIME" ] || [ $MAXSLEEPTIME -lt 240 ] ; then diff --git a/config/includes.chroot/lib/live/config/2600-tcpprint b/config/includes.chroot/lib/live/config/2600-tcpprint index 600008a..c9266ac 100755 --- a/config/includes.chroot/lib/live/config/2600-tcpprint +++ b/config/includes.chroot/lib/live/config/2600-tcpprint @@ -9,7 +9,7 @@ echo -n " tcpprint" if grep -q "\W*tcpprint\W*" /proc/cmdline ; then - TCPPRINTONLYFROM=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + TCPPRINTONLYFROM=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^tcpprintonlyfrom=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.\-') if [ -n "$TCPPRINTONLYFROM" ] ; then diff --git a/config/includes.chroot/lib/live/config/2700-x2go-getsessions b/config/includes.chroot/lib/live/config/2700-x2go-getsessions index 9af7813..d668cff 100755 --- a/config/includes.chroot/lib/live/config/2700-x2go-getsessions +++ b/config/includes.chroot/lib/live/config/2700-x2go-getsessions @@ -6,7 +6,7 @@ X2GoGetSessions () # echo -n " x2go-getsessions" - SESSIONSURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + SESSIONSURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^sessionsurl=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.:/?%_\-') if [ -n "$SESSIONSURL" ] && [ -d /etc/x2go ] ; then diff --git a/config/includes.chroot/lib/live/config/2710-x2go-getbranding b/config/includes.chroot/lib/live/config/2710-x2go-getbranding index 71bdfaa..6147dd6 100755 --- a/config/includes.chroot/lib/live/config/2710-x2go-getbranding +++ b/config/includes.chroot/lib/live/config/2710-x2go-getbranding @@ -7,7 +7,7 @@ X2GoGetBranding () echo -n " x2go-getbranding" - BRANDINGURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + BRANDINGURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^branding=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.:/?%_\-') BRANDINGDESTINATION=/etc/x2go/branding.svg diff --git a/config/includes.chroot/lib/live/config/2720-x2go-getbg b/config/includes.chroot/lib/live/config/2720-x2go-getbg index b211f85..67a5660 100755 --- a/config/includes.chroot/lib/live/config/2720-x2go-getbg +++ b/config/includes.chroot/lib/live/config/2720-x2go-getbg @@ -7,7 +7,7 @@ X2GoGetBG () echo -n " x2go-getbg" - BGURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + BGURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^bg=/ { print $2 }' | \ tr -dc 'a-zA-Z0-9.:/?%_\-') BGDESTINATION=/etc/x2go/bg.svg -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 9d5bfb0a40d411cbfc3a868e0ecd189be27c5e87 Merge: 722ee38 f7c6279 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Mon Dec 11 15:17:11 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop config/includes.chroot/lib/live/config/2100-show-sysconf | 2 +- .../lib/live/config/2250-getsshpubkeysfromserver | 2 +- .../lib/live/config/2300-xserver-xorg-getxorgconf | 2 +- config/includes.chroot/lib/live/config/2400-live-autoupdate | 12 ++++++------ config/includes.chroot/lib/live/config/2600-tcpprint | 2 +- config/includes.chroot/lib/live/config/2700-x2go-getsessions | 2 +- config/includes.chroot/lib/live/config/2710-x2go-getbranding | 2 +- config/includes.chroot/lib/live/config/2720-x2go-getbg | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 722ee38977bed0e36e4a820e3cecd8cc219aafd5 Merge: c97ca5d c8a8bb0 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Thu Dec 7 12:09:04 2017 +0100 Merge branch 'feature/openbox' into feature/mate-minidesktop config/includes.chroot/lib/live/config/2270-getsshclientkeysfrommedia | 3 --- 1 file changed, 3 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch feature/mate-minidesktop in repository live-build-x2go. commit 097def2c5987f64634719cbf950922432d650058 Author: Stefan Baur <kontakt@baur-itcs.de> Date: Mon Dec 11 15:29:45 2017 +0100 (hopefully) fixed issue that parameters without an equals sign became appended to the preceding parameter's value --- config/includes.chroot/lib/live/config/2900-firefox-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot/lib/live/config/2900-firefox-config b/config/includes.chroot/lib/live/config/2900-firefox-config index b01c4ab..2db4375 100755 --- a/config/includes.chroot/lib/live/config/2900-firefox-config +++ b/config/includes.chroot/lib/live/config/2900-firefox-config @@ -6,7 +6,7 @@ FirefoxConfig () # echo -n " firefoxconfig" - HOMEPAGEURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \ + HOMEPAGEURL=$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' -e 's/ \([^ "'"'"']\)/\n\1/g' /proc/cmdline | \ awk -F'=' ' /^homepageurl=/ { print $2 } ') if [ -z "$HOMEPAGEURL" ] ; then HOMEPAGEURL='http://www.x2go.org/' -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git