Skip to content

Commit

Permalink
thanks, Travis :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Oct 20, 2017
1 parent 3069bd5 commit d788dd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/installation/clients/umount_finish.rb
Expand Up @@ -32,6 +32,9 @@ module Yast
class UmountFinishClient < Client
include Yast::Logger

EFIVARS_PATH = "/sys/firmware/efi/efivars".freeze
USB_PATH = "/proc/bus/usb".freeze

def main
Yast.import "Pkg"

Expand Down Expand Up @@ -122,15 +125,12 @@ def main
# /proc/bus/usb
# /proc

EFIVARS_PATH = "/sys/firmware/efi/efivars".freeze
USB_PATH = "/proc/bus/usb".freeze

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

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

Expand Down

0 comments on commit d788dd1

Please sign in to comment.