Skip to content

Instantly share code, notes, and snippets.

@jreidinger
Created June 15, 2022 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jreidinger/1e6fef4e55ee0dbb29190fe9f96389c3 to your computer and use it in GitHub Desktop.
Save jreidinger/1e6fef4e55ee0dbb29190fe9f96389c3 to your computer and use it in GitHub Desktop.
require "yast"
require "benchmark"
# if container
Yast::WFM.SCRSetDefault(Yast::WFM.SCROpen("chroot=/mnt:scr", false))
# endif
puts Benchmark.realtime { 1000.times { Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl is-enabled systemd-hostnamed.service") }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment