Skip to content

Commit

Permalink
Merge a77cfd8 into 9bc6e19
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Aug 29, 2019
2 parents 9bc6e19 + a77cfd8 commit 0bc00c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/y2storage/clients/inst_prepdisk.rb
Expand Up @@ -68,6 +68,7 @@ def commit
mount_in_target("/proc", "proc", "-t proc")
mount_in_target("/sys", "sysfs", "-t sysfs")
mount_in_target(EFIVARS_PATH, "efivarfs", "-t efivarfs") if File.exist?(EFIVARS_PATH)
mount_in_target("/run", "/run", "--bind")

true
end
Expand All @@ -78,6 +79,9 @@ def mount_in_target(path, device, options)
if !Yast::FileUtils.Exists(target_path)
raise ".target.mkdir failed" if !SCR.Execute(path(".target.mkdir"), target_path)
end

log.info "Cmd: mount #{options} #{device} #{target_path}"

if !SCR.Execute(path(".target.mount"), [device, target_path], options)
raise ".target.mount failed"
end
Expand Down

0 comments on commit 0bc00c3

Please sign in to comment.