Skip to content

Commit

Permalink
BUGFIX: Display an error message on the console and the message queue…
Browse files Browse the repository at this point in the history
… if we are unable to find any disks on the host.
  • Loading branch information
bsanders committed May 21, 2019
1 parent 5d4d61f commit b5c4399
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ def main():
else:
break

# TODO: right now, this is the only place that exit()'s.
# F08-stacki looks specifically for '1' for the case of 'no disks found'
if not host_disks:
sys.exit(1)

#
# if fstab is corrupted, get_host_fstab() will throw and exception.
# catch it and just report an empty fstab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ then
'{"state": "nukedisk failed - check console or reinstall with halt_install_on_error=False"}'
fi

#
# then configure the partitions
#
/opt/stack/bin/output-partition.py > /tmp/partition.xml
if [ $? -eq 1 ]
then
halt_install "Unable to find disks to create partitioning scheme on." \
'{"state": "partition config failed - no disks found"}'
fi

# Configure the bootloader
/opt/stack/bin/output-bootloader.py > /tmp/bootloader.xml
Expand Down

0 comments on commit b5c4399

Please sign in to comment.