Browse Source

Fix bug

pull/357/head
Xavier Petit 5 years ago
parent
commit
1cc3856ccd
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 14
      scripts/install_client.sh

14
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"

Loading…
Cancel
Save