Skip to content

Commit

Permalink
fixe git merge
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jan 3, 2020
1 parent 5506ca5 commit 9db1181
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions src/modules/RootPart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,13 @@ def mount_specials_in_destdir
)
end

# bind-mount /run into chroot (bsc#1152530)
if MountPartition("/run", "/run", "none", "bind").nil?
AddMountedPartition(
type: "mount", device: "none", mntpt: "/run"
)
end

efivars_path = "/sys/firmware/efi/efivars"
if ::File.exist?(efivars_path)
if MountPartition(efivars_path, "efivarfs", "efivarfs").nil?
Expand All @@ -825,28 +832,6 @@ def mount_specials_in_destdir
end
end

def MountFSTab(fstab, _message)
fstab = deep_copy(fstab)

mount_specials_in_destdir

# bind-mount /run into chroot (bsc#1152530)
if MountPartition("/run", "/run", "none", "bind").nil?
AddMountedPartition(
type: "mount", device: "none", mntpt: "/run"
)
end

efivars_path = "/sys/firmware/efi/efivars"
if ::File.exist?(efivars_path)
if MountPartition(efivars_path, "efivarfs", "efivarfs").nil?
AddMountedPartition(
type: "mount", device: "efivarfs", mntpt: efivars_path
)
end
end
end

def MountFSTab(fstab, _message)
fstab = deep_copy(fstab)

Expand Down

0 comments on commit 9db1181

Please sign in to comment.