Skip to content

Commit d1a365e

Browse files
kartikeyaj0dtantsur
authored andcommitted
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 (cherry picked from commit 319efe2)
1 parent 0ff5726 commit d1a365e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ironic_python_agent/extensions/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def _install_grub2(device, root_uuid, efi_system_part_uuid=None,
586586
'ramdisk was unable to complete the setup. '
587587
'falling back to bootloader installation from'
588588
'deployed image.')
589-
if not os.path.ismount(root_partition):
589+
if not os.path.ismount(path):
590590
LOG.debug('Re-mounting the root partition.')
591591
utils.execute('mount', root_partition, path)
592592

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
IPA now properly checks if the root partition is already mounted.
5+
See `Story 2008631
6+
<https://storyboard.openstack.org/#!/story/2008631>`_
7+
for details.

0 commit comments

Comments
 (0)