Skip to content

Commit

Permalink
add warning when resume is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 5, 2022
1 parent 3d81863 commit 6e4701a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/bootloader/autoyast_converter.rb
Expand Up @@ -104,6 +104,7 @@ def import_default(data, default)
# import resume only if device exists (bsc#1187690)
resume = val[/[\s^]resume=(\S+)/, 1]
if resume && !Yast::BootStorage.staging.find_by_any_name(resume)
log.warn "remove resume parameter for non existing #{resume}"
val = val.gsub(/[\s^]resume=#{Regexp.escape(resume)}/, "")
end

Expand Down

0 comments on commit 6e4701a

Please sign in to comment.