Hi Mike,
thanks for the hint, I'll take a look.
Regards
Alex
Am 28.02.2018 um 16:26 schrieb Mike Gabriel:
> Hi Alex,
>
> unless you have proper reason for selection the 4.9.0-4 kernel, I'd
> rather suggest to pick the generic package
>
> e.g. for amd64
> https://packages.debian.org/stretch/linux-image-amd64
>
> This pulls in the always newest kernel, which currently is 4.9.0-6
> (containing meltdown and spectre fixes, which are not shipped in the -4
> kernel).
>
> Mike
>
> On Mi 28 Feb 2018 13:14:36 CET, git-admin wrote:
>
>> This is an automated email from the git hooks/post-receive script.
>>
>> x2go pushed a commit to branch master
>> in repository x2gothinclient.
>>
>> commit 31db9fbda0fa546494554fc4499fb5fd586af29b
>> Author: Oleksandr Shneyder
>> Date: Wed Feb 28 13:14:26 2018 +0100
>>
>> let user choose architecture by setting TC_ARCH variable. Default
>> amd64.
>> ---
>> debian/changelog | 1 +
>> management/etc/x2gothinclient_settings | 5 +
>> management/sbin/x2gothinclient_create | 24
>> ++--
>> management/sbin/x2gothinclient_preptftpboot | 18 +++---
>> management/share/tftpboot/x2go-tce.cfg | 4 ++--
>> 5 files changed, 41 insertions(+), 11 deletions(-)
>>
>> diff --git a/debian/changelog b/debian/changelog
>> index 4dfd269..e4420b9 100644
>> --- a/debian/changelog
>> +++ b/debian/changelog
>> @@ -144,6 +144,7 @@ x2gothinclient (1.5.0.0-0x2go1) UNRELEASED;
>> urgency=low
>> * fix link in x2gothinclient_create
>> * install chroot for amd64
>> * fix x2gothinclient_update to create files needed by x2gothinclientd
>> + * let user choose architecture by setting TC_ARCH variable. Default
>> amd64.
>>
>> [ Martti Pitkänen ]
>> * debian/po:
>> diff --git a/management/etc/x2gothinclient_settings
>> b/management/etc/x2gothinclient_settings
>> index a0f6530..fc7f995 100644
>> --- a/management/etc/x2gothinclient_settings
>> +++ b/management/etc/x2gothinclient_settings
>> @@ -47,6 +47,10 @@ TC_DISTRO_CODENAME="stretch"
>> # or use older Debian ...
>> #TC_DISTRO_CODENAME="jessie"
>>
>> +# Default architecture is "amd64"
>> +TC_ARCH="amd64"
>> +#TC_ARCH="i386"
>> +
>> # Retrieve X2Go packages from this URL
>> ### FIXME: once we release this project, we have to remove the heuler
>> area from the deburl below ###
>> TC_X2GO_DEBURL="deb http://packages.x2go.org/debian
>> $TC_DISTRO_CODENAME main heuler"
>> @@ -82,6 +86,7 @@ echo "TC_CONFIG=$TC_CONFIG"
>> echo "TC_CHROOT=$TC_CHROOT"
>> echo "TC_SHELL=$TC_SHELL"
>> echo "TC_DISTRO_CODENAME=$TC_DISTRO_CODENAME"
>> +echo "TC_ARCH=$TC_ARCH"
>> echo "TC_DEBMIRROR_URL=$TC_DEBMIRROR_URL"
>> echo "TC_X2GO_DEBURL=$TC_X2GO_DEBURL"
>> echo "TC_HTTP_PROXY=$TC_HTTP_PROXY"
>> diff --git a/management/sbin/x2gothinclient_create
>> b/management/sbin/x2gothinclient_create
>> index 0ffb199..204a4a5 100755
>> --- a/management/sbin/x2gothinclient_create
>> +++ b/management/sbin/x2gothinclient_create
>> @@ -51,6 +51,18 @@ TC_MODULE_BLACKLIST="${TC_MODULE_BLACKLIST:-'pcspkr'}"
>> TC_NONINTERACTIVE="${TC_NONINTERACTIVE:-}"
>> TC_FLAVOUR="${TC_FLAVOUR:-displaymanager}"
>>
>> +if [ "$TC_ARCH" == "amd64" ]
>> +then
>> + ARCHSTR=""
>> + KERNEL_VERSION="4.9.0-4-amd64"
>> +fi
>> +
>> +if [ "$TC_ARCH" == "i386" ]
>> +then
>> + ARCHSTR="--arch i386"
>> + KERNEL_VERSION="4.9.0-4-686"
>> +fi
>> +
>> if [ "x$TC_FLAVOUR" != "xminidesktop" ] && [ "x$TC_FLAVOUR" !=
>> "xdisplaymanager" ]; then
>> TC_FLAVOUR="displaymanager"
>> fi
>> @@ -105,7 +117,7 @@ export http_proxy="$TC_HTTP_PROXY"
>> export https_proxy="$TC_HTTPS_PROXY"
>> export ftp_proxy="$TC_FTP_PROXY"
>>
>> -debootstrap "$TC_DISTRO_CODENAME" "$TC_CHROOT/" "$TC_DEBMIRROR_URL"
>> +debootstrap $ARCHSTR "$TC_DISTRO_CODENAME" "$TC_CHROOT/"
>> "$TC_DEBMIRROR_URL"
>>
>> cp /etc/resolv.conf "$TC_CHROOT/etc/resolv.conf"
>> if [ "$TC_DISTRO_CODENAME" = "squeeze" ]; then
>> @@ -199,11 +211,11 @@ export X2GO_HANDLE_DAEMONS=false
>> if [ \$? -eq 0 -a "x${TC_NONINTERACTIVE}" != "x" ]; then
>> dpkg-reconfigure locales
>> fi
>> -[ \$? -eq 0 ] && apt-get install linux-image-4.9.0-4-amd64 -y
>> -[ \$? -eq 0 ] && test -h /vmlinuz && mv /vmlinuz
>> /vmlinuz.4.9.0-4-amd64.tmp || true
>> -[ \$? -eq 0 ] && LINK_TARGET=\$(readlink /vmlinuz.4.9.0-4-amd64.tmp |
>> sed 's@/boot@boot@') && ln -sf \$LINK_TARGET /vmlinuz.4.9.0-4-amd64 &&
>> rm -f /vmlinuz.4.9.0-4-amd64.tmp
>> -[ \$? -eq 0 ] && test -h /initrd.img && mv /initrd.img
>> /initrd.img.4.9.0-4-amd64.tmp || true
>> -[ \$? -eq 0 ] && LINK_TARGET=\$(readlink
>> /initrd.img.4.9.0-4-amd64.tmp | sed 's@/boot@boot@') && ln -sf
>> \$LINK_TARGET /initrd.img.4.9.0-4-amd64 && rm -f
>> /initrd.img.4.9.0-4-amd64.tmp
>> +[ \$? -eq 0 ] && apt-get install linux-image-$KERNEL_VERSION -y
>> +[ \$? -eq 0 ] && test -h /vmlinuz && mv /vmlinuz
>> /vmlinuz.$KERNEL_VERSION.tmp || true
>> +[ \$? -eq 0 ] && LINK_TARGET=\$(readlink /vmlinuz.$KERNEL_VERSION.tmp
>> | sed 's@/boot@b