In z9 the path /os is a link to /srv/os, so when we get the realpath, the nfsroot path will be /srv/os instead of /os. Here change the default nfsroot path as /srv/os to adapt it.
Signed-off-by: Xu Xijian xuxijian@huawei.com --- container/update-os-docker/lib/common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/container/update-os-docker/lib/common.rb b/container/update-os-docker/lib/common.rb index eb694b1..23c4fdc 100755 --- a/container/update-os-docker/lib/common.rb +++ b/container/update-os-docker/lib/common.rb @@ -6,14 +6,14 @@ require_relative 'dc-image' require 'pathname'
-OS_PATH ||= ENV['OS_PATH'] || '/os/' +OS_PATH ||= ENV['OS_PATH'] || '/srv/os/'
# Parse the parameters and make use of them class ParseParam attr_reader :dc_name, :local_dc_img
def initialize(rootdir) - _, _, @os_name, _, @os_version = rootdir.split('/') + _, _, _, @os_name, _, @os_version = rootdir.split('/') end
def prepare_env