Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A recipe to upgrade OmniOS r151006 to r151008 (http://omnios.omniti.com/wiki.php/Upgrade_r151006_r151008)
boot_environment = Mixlib::ShellOut.new("beadm list | grep NR").run_command.stdout
file "/root/boot_environment-before-r151008-upgrade" do
content boot_environment
end
package "pkg" do
version "0.5.11,5.11-0.151006:20130731T192303Z"
end
package "web/ca-bundle" do
version "5.11,5.11-0.151006:20130718T173831Z"
end
package "incorporation/jeos/omnios-userland" do
version "11,5.11-0.151006"
end
package "runtime/perl/manual" do
version "5.16.1,5.11-0.151006"
end
execute "pkg update --be-name=omnios-r151008"
@anahata0108

This comment has been minimized.

Copy link

anahata0108 commented Dec 12, 2013

If you specify the -H option to beadm list, you can get a semicolon-separated list of fields to make getting the actual boot environment name much easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.