UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 54ce07e2 authored by Luke ODonnell's avatar Luke ODonnell
Browse files

Update test.sh

parent 53a555f5
Branches
No related merge requests found
......@@ -17,13 +17,16 @@ function setup_volume {
#select the first one with no partitions
for disk in $disks; do
if (lsblk | grep -v disk | grep "$disk" 2&>/dev/null); then
echo "skipping $disk"
continue
else
echo "found $disk"
volume="$disk"
break
fi
done
#create partition table, partition, and filesystem
echo "using /dev/$volume1"
parted "/dev/$volume" mklabel gpt
parted "/dev/$volume" mkpart home-volume ext4 0% 100%
mkfs.ext4 "/dev/$volume1"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment