summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/bootless8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydra/bootless b/share/hydra/bootless
index 98c6d58..19400d3 100755
--- a/share/hydra/bootless
+++ b/share/hydra/bootless
@@ -108,13 +108,13 @@ EOF
fi
# Remove old partitions
- for partition in `parted -s -- ${usbdevice} print | awk '/^ / {print $1}'`; do
- parted -s -- ${usbdevice} rm $partition
+ for partition in `$sudo parted -s -- ${usbdevice} print | awk '/^ / {print $1}'`; do
+ $sudo parted -s -- ${usbdevice} rm $partition
done
# Create a single partition
- parted -s -- ${usbdevice} mkpart primary ext2 0 -1
- parted -s -- ${usbdevice} set 1 boot on
+ $sudo parted -s -- ${usbdevice} mkpart primary ext2 0 -1
+ $sudo parted -s -- ${usbdevice} set 1 boot on
# Format and mount
$sudo mke2fs ${device}