fix variable

This commit is contained in:
poslop
2025-06-25 13:42:01 -05:00
parent 32965bcddb
commit 6c3478e03d

View File

@@ -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