diff options
| author | kartikeyaj0 <kartikeya.jain@hpe.com> | 2021-02-16 15:40:50 +0530 |
|---|---|---|
| committer | kartikeyaj0 <kartikeya.jain@hpe.com> | 2021-02-17 10:56:31 +0530 |
| commit | 319efe2c2d323817db86388c47bf06e5c6ff269c (patch) | |
| tree | 36528eea6035a2853f51c2a0899343c740057eb5 /ironic_python_agent/extensions/image.py | |
| parent | a35761c21fa8ad7856723b0ec68ddc87db39c709 (diff) | |
| download | ironic-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.py | 2 |
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) |
