diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 0f799fa88..e31301569 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -9,6 +9,13 @@ script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $script_dir . set.sh +disk=$(lsblk -o tran,kname,hotplug,type,fstype -pr | + grep -e nvme -e sata -e sas | + grep '0 disk' | + cut -d' ' -f2 | + sort | + head -n1) + systemctl stop unattended-upgrades.service apt-get update @@ -87,13 +94,6 @@ cp --preserve=mode -RT . / cd $script_dir rm -rf /tmp/system -disk=$(lsblk -o tran,kname,hotplug,type,fstype -pr | - grep -e nvme -e sata | - grep '0 disk' | - cut -d' ' -f2 | - sort | - head -n1) - sgdisk -n0:0:+32G "$disk" sgdisk -N0 "$disk" sgdisk -c3:01-tmp-home "$disk"