Update and rename kpartx.bash to kpartx.sh

This commit is contained in:
aramya 2021-06-30 18:22:03 +01:00 committed by GitHub
parent 071a000ae9
commit 64fec7854b

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
LOOP=$(sudo kpartx -s -a -v APMdisk | awk -F'[ ]' '{print $3}' | tail -n1 )
sudo mkfs.hfsplus /dev/mapper/$LOOP
sudo mount -o loop /dev/mapper/$LOOP /mnt/