Commit 29471106 authored by fsmithred's avatar fsmithred

add support for virtual disks

parent 1782ccdf
refractainstaller-gui (9.4.2) unstable; urgency=low
* Add support for virtual disks (/dev/vd[a-z])
-- fsmithred <fsmithred@gmail.com> Thu, 10 May 2018 17:02:00 -0400
refractainstaller-gui (9.4.1) unstable; urgency=low
* Do not re-use $home_part for crypttab. Use new var.
......
#!/usr/bin/env bash
version="Refracta UEFI/BIOS Installer (Yad) 9.4.1 (20180507)"
version="Refracta UEFI/BIOS Installer (Yad) 9.4.2 (20180507)"
TEXTDOMAIN=refractainstaller-gui
TEXTDOMAINDIR=/usr/share/locale/
......@@ -721,7 +721,7 @@ ${bios_boot_warning}
answer="$?"
if [[ $answer = 0 ]] ; then
grub_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z]$|*nvme[0-9]n[0-9]$|*mmcblk[0-9]$" \
grub_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[shv]d[a-z]$|*nvme[0-9]n[0-9]$|*mmcblk[0-9]$" \
| sort | awk '{print "\n" $0 }' \
| yad --list --separator="" --title=$"Bootloader" --center --borders=10 --text=$"Choose a location to install the bootloader.
" \
......@@ -744,7 +744,7 @@ grub_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z]$|*nvme[0-9]n[
fi
elif [[ $answer = 1 ]] ; then
grub_partition=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
grub_partition=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[shv]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
| sort | awk '{print "\n" $0 }' \
| yad --list --title=$"Bootloader" --center --borders=10 --text=$"Select a partition for the bootloader (GRUB)." \
--separator="" --column ' ' --column $'Partitions' --height=380 --width=150)
......@@ -791,7 +791,7 @@ fi
# Show the partition list in a menu, and choose one for /boot
choose_boot () {
boot_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
boot_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[shv]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
| sort | awk '{if ($0 != "'$esp_dev'") {print "\n" $0 }}' \
| yad --list --title=$"/boot partition" --center --borders=10 --text=$"Select a partition for /boot." \
--separator="" --column ' ' --column $'Partitions' --height=380 --width=200 --button=$"OK":0)
......@@ -833,7 +833,7 @@ fi
# Show the partition list in a menu, and choose one for the OS
choose_root () {
install_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
install_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[shv]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
| sort | awk '{if ($0 != "'$esp_dev'") {print "\n" $0 }}' \
| yad --list --title=$"Root Partition" --center --borders=10 --text=$"Choose a partition to use for the installation of the operating system." \
--separator="" --column ' ' --column $'Partitions' --height 380 --width 200 --button=$"OK":0)
......@@ -894,7 +894,7 @@ fi
# Show the partition list in a menu, and choose one for /home
choose_home () {
home_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[sh]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
home_dev=$(find /dev -mindepth 1 -maxdepth 1 | egrep "*[shv]d[a-z][1-99]|*nvme[0-9]n[0-9]p[1-99]|*mmcblk[0-9]p[1-99]" \
| sort | awk '{if ($0 != "'$esp_dev'") {print "\n" $0 }}' \
| yad --list --title=$"/home partition" --center --borders=10 --text=$"Select a partition for /home" \
--separator="" --column ' ' --column $'Partitions' --height=380 --width=200 --button=$"OK":0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment