summaryrefslogtreecommitdiff
path: root/ironic_python_agent/extensions/image.py
diff options
context:
space:
mode:
authorkartikeyaj0 <kartikeya.jain@hpe.com>2021-02-16 15:40:50 +0530
committerkartikeyaj0 <kartikeya.jain@hpe.com>2021-02-17 10:56:31 +0530
commit319efe2c2d323817db86388c47bf06e5c6ff269c (patch)
tree36528eea6035a2853f51c2a0899343c740057eb5 /ironic_python_agent/extensions/image.py
parenta35761c21fa8ad7856723b0ec68ddc87db39c709 (diff)
downloadironic-python-agent-319efe2c2d323817db86388c47bf06e5c6ff269c.tar.gz
Fixes local boot for partition images
IPA is not properly checking if the root partition is already mounted. Device is being passed to os.path.ismount() instead of the mount point. Story: 2008631 Task: 41839 Change-Id: I37a6e7e6bbe0bbbb0317c6e55bb822dafe7cce20
Diffstat (limited to 'ironic_python_agent/extensions/image.py')
-rw-r--r--ironic_python_agent/extensions/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/extensions/image.py b/ironic_python_agent/extensions/image.py
index c78b6ce4..c482b69c 100644
--- a/ironic_python_agent/extensions/image.py
+++ b/ironic_python_agent/extensions/image.py
@@ -593,7 +593,7 @@ def _install_grub2(device, root_uuid, efi_system_part_uuid=None,
'ramdisk was unable to complete the setup. '
'falling back to bootloader installation from'
'deployed image.')
- if not os.path.ismount(root_partition):
+ if not os.path.ismount(path):
LOG.debug('Re-mounting the root partition.')
utils.execute('mount', root_partition, path)