fix mkdir with -p
This commit is contained in:
@@ -22,7 +22,7 @@ usb_name="/dev/mapper/${disk_suffix}"
|
|||||||
|
|
||||||
# Mount Ventoy
|
# Mount Ventoy
|
||||||
echo "Mounting Ventoy..."
|
echo "Mounting Ventoy..."
|
||||||
mkdir /mnt/ventoy
|
mkdir -p /mnt/ventoy
|
||||||
mount /dev/mapper/$usb_name /mnt/ventoy
|
mount /dev/mapper/$usb_name /mnt/ventoy
|
||||||
cd /mnt/ventoy/Images
|
cd /mnt/ventoy/Images
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ lvresize -l +100%FREE --resizefs PBX-vg/root
|
|||||||
|
|
||||||
# Mount restored system for chroot
|
# Mount restored system for chroot
|
||||||
echo "Mounting restored system..."
|
echo "Mounting restored system..."
|
||||||
mkdir /mnt/debian
|
mkdir -p /mnt/debian
|
||||||
mount /dev/mapper/PBX--vg-root /mnt/debian/
|
mount /dev/mapper/PBX--vg-root /mnt/debian/
|
||||||
mount ${DISKNAME}2 /mnt/debian/boot
|
mount ${DISKNAME}2 /mnt/debian/boot
|
||||||
mount ${DISKNAME}1 /mnt/debian/boot/efi
|
mount ${DISKNAME}1 /mnt/debian/boot/efi
|
||||||
|
|||||||
Reference in New Issue
Block a user