mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Exit 1 in expand-root if there was an error
Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
This commit is contained in:
parent
c477c32e4a
commit
78b796be5b
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@ logger="logger -t $prog"
|
|||
|
||||
growpart=$(which growpart) || {
|
||||
$logger "growpart was not found on PATH. Unable to expand size."
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
root_index="0"
|
||||
|
||||
$growpart /dev/xvda $root_index || {
|
||||
$logger "growpart failed. Unable to expand size."
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
device_path="/dev/xvda$root_index"
|
||||
|
|
Loading…
Add table
Reference in a new issue