This commit is contained in:
teldra 2022-02-07 04:26:42 +01:00
parent b34f585d7f
commit ae073961a3
1 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ target_phy_disk() {
local output
DISKS_DETAILS=$(lsblk -l -o KNAME,TYPE,SIZE,MODEL,WWN|grep disk)
echo "$DISKS_DETAILS"
input_old "which one?" "$(echo "$DISKS_DETAILS"|awk '{print $1}'|tr '\n' ' ')" "not found."
multiplechoice "$(echo "$DISKS_DETAILS"|awk '{print $1}'|tr '\n' ' ')"
TARGET_PHY_DISK="/dev/${output}"
}
@ -234,6 +234,7 @@ do_chroot() {
fi
echo "USERNAME=$USERNAME" > ${target}/tmp/vinstaller/vars
echo "pass=$pass" > ${target}/tmp/vinstaller/vars
echo "HOSTNAME=$HOSTNAME" >> ${target}/tmp/vinstaller/vars
echo "EFI=$EFI" >> ${target}/tmp/vinstaller/vars
echo "LANGUAGE=$LANGUAGE" >> ${target}/tmp/vinstaller/vars
@ -245,7 +246,7 @@ cat <<EOF > ${target}/tmp/vinstaller/main_chroot
#!/bin/bash
. /tmp/vinstaller/vars
for file in \$(find /tmp/vinstaller/run -type f); do
. $file
. \$file
config
done
EOF