Skip to content

Commit

Permalink
more offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Oct 20, 2017
1 parent d788dd1 commit 39d25a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/lib/installation/clients/umount_finish.rb
Expand Up @@ -126,13 +126,11 @@ def main
# /proc

@umount_these = ["/proc", "/sys", "/dev", "/run"]
if Hotplug.haveUSB
@umount_these.unshift(USB_PATH)
end

if File.exist?(EFIVARS_PATH) #exists in both inst-sys and target or in neither
@umount_these.unshift(EFIVARS_PATH)
end
@umount_these.unshift(USB_PATH) if Hotplug.haveUSB

# exists in both inst-sys and target or in neither
@umount_these.unshift(EFIVARS_PATH) if File.exist?(EFIVARS_PATH)

Builtins.foreach(@umount_these) do |umount_dir|
umount_this = Builtins.sformat(
Expand Down

0 comments on commit 39d25a3

Please sign in to comment.