From a9d270eddc062c336c40e1ef8e2c732986222673 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 Dec 2019 11:03:01 +0100 Subject: Removed some hard-coding. --- util/partition_disk.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util/partition_disk.sh') diff --git a/util/partition_disk.sh b/util/partition_disk.sh index bffe87f..096b1fd 100644 --- a/util/partition_disk.sh +++ b/util/partition_disk.sh @@ -18,6 +18,9 @@ # along with this program. If not, see . +disk_path=$1 # e.g. /dev/sda + + wipefs -a $disk_path # make sure that fdisk does not ask for removing # signatures which breaks the script fdisk $disk_path << EOF @@ -33,7 +36,5 @@ n p w EOF -boot_partition_path="${disk_path}1" -root_partition_path="${disk_path}2" echo "Partitioned disk - OK" -- cgit v1.2.3-70-g09d2