diff options
| author | Vanou Ishii <ishii.vanou@fujitsu.com> | 2022-09-13 16:53:07 +0900 |
|---|---|---|
| committer | Vanou Ishii <ishii.vanou@fujitsu.com> | 2022-09-22 19:34:12 +0900 |
| commit | 0bf579c955477da9a43e546703146b8b2b24d05f (patch) | |
| tree | 6004681c8688d4033875ebdb63340d16b24c99fb /ironic_python_agent/extensions | |
| parent | ed6a8d28b7e8f1a6f091023863db26bb2a993a40 (diff) | |
| download | ironic-python-agent-0bf579c955477da9a43e546703146b8b2b24d05f.tar.gz | |
Fix failure of bind mount in _install_grub2
When IPA runs _install_grub2, IPA tries to bind mount /dev, /proc and /run
to <temporal directory path root partition mounted>/{dev,proc,run}.
However that bind mount fails because there aren't such mount point path
under temporal directory.
To fix this failure, this patch add mkdir command before bind mount.
Story: 2010292
Task: 46273
Change-Id: I434ce1bf1863ee0f11c4d09918d6d2d8dc065c02
Diffstat (limited to 'ironic_python_agent/extensions')
| -rw-r--r-- | ironic_python_agent/extensions/image.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic_python_agent/extensions/image.py b/ironic_python_agent/extensions/image.py index de880f84..46be48c2 100644 --- a/ironic_python_agent/extensions/image.py +++ b/ironic_python_agent/extensions/image.py @@ -425,6 +425,7 @@ def _mount_for_chroot(path): LOG.debug('Mounting Linux standard partitions for bootloader ' 'configuration generation') for fs in BIND_MOUNTS: + utils.execute('mkdir', '-p', path + fs) utils.execute('mount', '-o', 'bind', fs, path + fs) utils.execute('mount', '-t', 'sysfs', 'none', path + '/sys') |
