fix variable
This commit is contained in:
@@ -12,16 +12,18 @@ udevadm trigger
|
|||||||
|
|
||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
|
echo
|
||||||
read -rp "Enter the target disk (e.g., sda): " disk_suffix
|
read -rp "Enter the target disk (e.g., sda): " disk_suffix
|
||||||
disk_name="/dev/${disk_suffix}"
|
disk_name="/dev/${disk_suffix}"
|
||||||
|
|
||||||
|
echo
|
||||||
read -rp "Enter the name of the usb partition in /dev/mapper (e.g., sda1): " disk_suffix
|
read -rp "Enter the name of the usb partition in /dev/mapper (e.g., sda1): " disk_suffix
|
||||||
usb_name="/dev/mapper/${disk_suffix}"
|
usb_name="/dev/mapper/${disk_suffix}"
|
||||||
|
|
||||||
# Mount Ventoy
|
# Mount Ventoy
|
||||||
echo "Mounting Ventoy..."
|
echo "Mounting Ventoy..."
|
||||||
mkdir /mnt/ventoy
|
mkdir /mnt/ventoy
|
||||||
mount /dev/mapper/usb_name /mnt/ventoy
|
mount /dev/mapper/$usb_name /mnt/ventoy
|
||||||
cd /mnt/ventoy/Images
|
cd /mnt/ventoy/Images
|
||||||
|
|
||||||
# Decompress and write image
|
# Decompress and write image
|
||||||
|
|||||||
Reference in New Issue
Block a user