mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-06-06 05:29:29 +00:00
Create kpartx.bash
This commit is contained in:
parent
e383d4590d
commit
b6a1eb7a99
4
kpartx.bash
Normal file
4
kpartx.bash
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
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/
|
Loading…
Reference in New Issue
Block a user