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