The follwing errors during installation from USB stick/image
caused by the attempt to mount partition that already used
+ mount /dev/disk/by-label/Mirantis_Fuel /tmp/source
mount: /dev/sda1 is write-protected, mounting read-only
mount: /dev/sda1 is already mounted or /tmp/source busy
Anaconda mounts paritions from 'repo' automatically (not sure
about nfs partitions but there is a code to mount is explicitely),
so it's not possible to re-mount it. However, we can mount it
with 'bind' option to make avaible in another path.
This commit collects all the logic to mount SOURCE path
in one place and adds additional checks to avoid mointing when
SOURCE path set up already.
Change-Id: Idd7f56f23a8bab604d78f2b83f0290e8006482dc
Closes-bug: #1538335
(cherry picked from commit c2bae141ba2c08a1c5c9416cf941f27043c609ea)
Reviewed: https:/ /review. openstack. org/274055 /git.openstack. org/cgit/ openstack/ fuel-main/ commit/ ?id=94507c5e4da d6d8cfbd8f5d41a a8389d5335990a
Committed: https:/
Submitter: Jenkins
Branch: stable/8.0
commit 94507c5e4dad6d8 cfbd8f5d41aa838 9d5335990a
Author: Dmitry Teselkin <email address hidden>
Date: Thu Jan 28 00:43:40 2016 +0300
Fix USB installation
The follwing errors during installation from USB stick/image
caused by the attempt to mount partition that already used
+ mount /dev/disk/ by-label/ Mirantis_ Fuel /tmp/source
mount: /dev/sda1 is write-protected, mounting read-only
mount: /dev/sda1 is already mounted or /tmp/source busy
Anaconda mounts paritions from 'repo' automatically (not sure
about nfs partitions but there is a code to mount is explicitely),
so it's not possible to re-mount it. However, we can mount it
with 'bind' option to make avaible in another path.
This commit collects all the logic to mount SOURCE path
in one place and adds additional checks to avoid mointing when
SOURCE path set up already.
Change-Id: Idd7f56f23a8bab 604d78f2b83f029 0e8006482dc 1c5c9416cf941f2 7043c609ea)
Closes-bug: #1538335
(cherry picked from commit c2bae141ba2c08a