Skip to content

Commit

Permalink
remove 'label' URL scheme handling - it's now in Yast::Transfer::File…
Browse files Browse the repository at this point in the history
…FromUrl
  • Loading branch information
wfeldt committed Oct 5, 2022
1 parent 15f6db3 commit ad2d3c2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/modules/ProfileLocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ def Process
else
log.warn("Cannot evaluate ZyppRepoURL from /etc/install.inf")
end
elsif AutoinstConfig.scheme == "label"
# autoyast=label://my_home//autoinst.xml in linuxrc:
# AY is searching for a partition with the label "my_home". This partition
# will be mounted and the autoinst.xml will be used for installation.
log.info("searching label #{AutoinstConfig.host}")
fs = Y2Storage::StorageManager.instance.probed.filesystems.find do |f|
f.label == AutoinstConfig.host
end
if fs&.blk_devices&.first
AutoinstConfig.scheme = "device"
AutoinstConfig.host = fs.blk_devices.first.basename
log.info("found on #{AutoinstConfig.host}")
else
Report.Error(_("label not found while looking for autoyast profile"))
end
end

filename = basename(AutoinstConfig.filepath)
Expand Down

0 comments on commit ad2d3c2

Please sign in to comment.