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.
Reviewed: https:/ /review. openstack. org/273251 /git.openstack. org/cgit/ openstack/ fuel-main/ commit/ ?id=c2bae141ba2 c08a1c5c9416cf9 41f27043c609ea
Committed: https:/
Submitter: Jenkins
Branch: master
commit c2bae141ba2c08a 1c5c9416cf941f2 7043c609ea
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
Closes-bug: #1538335