diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-04-11 11:15:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-04-11 11:15:33 -0300 |
commit | 91077342bfff563d4a1d6c0031ddaa3b9358d021 (patch) | |
tree | 8ba18dde8bf7c18d893c75c8f8a320fb147eaa3a /share | |
parent | 7da6757ffa1ea11071076a3d82a89cee3df1b8e4 (diff) | |
download | hydra-91077342bfff563d4a1d6c0031ddaa3b9358d021.tar.gz hydra-91077342bfff563d4a1d6c0031ddaa3b9358d021.tar.bz2 |
Running parted with sudo on bootless
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/bootless | 8 |
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} |