{"id":1275,"date":"2018-12-07T09:20:58","date_gmt":"2018-12-07T15:20:58","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1275"},"modified":"2018-12-07T09:22:45","modified_gmt":"2018-12-07T15:22:45","slug":"solaris-boot-environment-and-lost-changes","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/solaris-boot-environment-and-lost-changes\/","title":{"rendered":"Solaris Boot Environment And Lost Changes"},"content":{"rendered":"\n
Maybe you have similarly been perplexed like me when you are missing a file after a new boot environment(BE) was activated.<\/p>\n\n\n\n
In my example I know I created a file in my \/root\/Desktop folder and after pkg update and the resulting new BE was automatically activated and I rebooted I noticed my file was missing.<\/p>\n\n\n\n
This can be quite nasty if you have made system changes and not noticed they all were lost. For example updating \/etc\/hosts etc\u2026<\/p>\n\n\n\n
Sequence that is faulty<\/strong><\/p>\n\n\n\n After OS initial installation and before updates (pkg update) Sequence that works<\/strong><\/p>\n\n\n Question:<\/p>\n\n\n\n Is there an easier way to update to avoid this problem? Maybe passing parms?\u00a0 <\/p>\n\n\n\n Read here also.... Tip: If just restoring a file you can just use beadm mount to find a specific file for retrieval or comparison with existing files.<\/p>\n","protected":false},"excerpt":{"rendered":" Maybe you have similarly been perplexed like me when you are missing a file after a new boot environment(BE) was<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1275","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1275"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1275\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
Save a text file \/root\/Desktop\/20181206-pkg-update
Current BE is openindiana<\/p>\n\n\n\nDo updates and reboot
Current BE is openindiana-1
File is gone<\/pre>\n\n\n\nSave a text file \/root\/Desktop\/20181206-pkg-update
beadm create new BE and activate
reboot immediately
pkg update
<\/pre>\n\n\n
https:\/\/blog.teodeh.com\/2013\/02\/25\/solaris_11_patching_and_updates\/<\/p>\n\n\n\n