aboutsummaryrefslogtreecommitdiffstats
path: root/foreman/ci/resize_partition.sh
blob: 4c5581dd2eb13eea43e6842a448056d0887d8222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash

#script for extending disk partition in Foreman/QuickStack VM
#author: Tim Rozet (trozet@redhat.com)
#
#Uses Vagrant and VirtualBox
#VagrantFile uses resize_partition.sh
#
#Pre-requisties:
#Vagrant box disk size already resized

##VARS
reset=`tput sgr0`
blue=`tput setaf 4`
red=`tput setaf 1`
green=`tput setaf 2`

##END VARS

echo "${blue}Extending partition...${reset}"
echo "d
2
n
p



p
t
2
8e
w
"|fdisk /dev/sda; true