Skip to content

Commit b7544ec

Browse files
authored
Merge pull request omacom#4290 from prepin/fix-format-drive-compatibility
Fix format-drive compatibility with macOS
2 parents 91470cb + 2915572 commit b7544ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎default/bash/functions‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ format-drive() {
4949
sudo dd if=/dev/zero of="$1" bs=1M count=100 status=progress
5050
sudo parted -s "$1" mklabel gpt
5151
sudo parted -s "$1" mkpart primary 1MiB 100%
52+
sudo parted -s "$1" set 1 msftdata on
5253

5354
partition="$([[ $1 == *"nvme"* ]] && echo "${1}p1" || echo "${1}1")"
5455
sudo partprobe "$1" || true

0 commit comments

Comments
 (0)