From 42b06c04970392d7f2df8fdbcfa9345cfab95f33 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 22 Feb 2018 11:40:47 +0100 Subject: sometimes drives report they are not aligned And then on reboot it hangs where it should start grub --- scripts/install/install-get-partition | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition index f1b373ae..a8590031 100755 --- a/scripts/install/install-get-partition +++ b/scripts/install/install-get-partition @@ -688,7 +688,12 @@ create_partitions() { lecho "Creating root partition on /dev/$ldrive" # Make the root partition - output=$(parted --script --align optimal /dev/$ldrive mkpart primary 0% $root_part_size) + # if optimal_io_size is empty use default of 2048s + if [ $(cat /sys/block/$ldrive/queue/optimal_io_size) -gt 0 ]; then + output=$(parted --script --align optimal /dev/$ldrive mkpart primary 0% $root_part_size) + else + output=$(parted --script --align optimal /dev/$ldrive mkpart primary 2048s $root_part_size) + fi status=$? if [ "$status" != 0 ]; then echo -e "Error creating primary partition on $ldrive.\nPlease see $INSTALL_LOG for more details.\nExiting..." -- cgit v1.2.3 From d8dd509656e24d0050050ed067021e4b45e07d59 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 28 Feb 2018 13:32:24 +0100 Subject: T507: add autocompletion or SSH key exchange algorithms --- templates/service/ssh/key-exchange/node.def | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/service/ssh/key-exchange/node.def b/templates/service/ssh/key-exchange/node.def index a3c91b0b..00df581a 100644 --- a/templates/service/ssh/key-exchange/node.def +++ b/templates/service/ssh/key-exchange/node.def @@ -1,6 +1,7 @@ type: txt -help: Allowed key exchange algorithms -comp_help: Specifies the available KEX (key exchange) algorithms. The KEX algorithm is used in protocol version 2 for key negotiation upon session creation. Multiple algorithms must be comma-separated. See 'ssh -Q kex' for supported KEX algorithms. +help: Key exchange algorithms + +allowed: ssh -Q kex | perl -ne '$_=~s/\n/ /;print' create: sudo sed -i -e '$ a \ KexAlgorithms $VAR(@)' /etc/ssh/sshd_config -- cgit v1.2.3