'pkg image-update' gives 'segmentation fault'?

Instructions how to safe upgrade from build to build

 1. before you start, create snapshot, e.g.:

% beadm list
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-6 NR     /          32.76G static 2009-05-19 22:14 
% pfexec zfs snapshot rpool/ROOT/opensolaris-6@before_upgrading

If something happened you can easily rollback to this snapshot. e.g.:

% pfexec zfs rollback -r rpool/ROOT/opensolaris-6@before_upgrading

 

2. Create a new BE from an existing inactive BE.

beadm create -e <name of current BE> <name of new BE>

e.g.:

 % pfexec beadm create -e opensolaris-6 opensolaris-7

3. check if the new BE is not mounted, if yes, unmount it. e.g.:

% beadm list
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-6 NR     /          32.77G static 2009-05-19 22:14 
opensolaris-7 -       /tmp/ra34rg         104.0K static 2009-09-20 22:24 
% pfexec beadm umount opensolaris-7
% beadm list                       
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-6 NR     /          32.77G static 2009-05-19 22:14 
opensolaris-7 -      -          104.0K static 2009-09-20 22:24 


4. mount your new BE in /mnt director. e.g.:

% pfexec beadm mount opensolaris-7 /mnt 
% beadm list                           
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-6 NR     /          32.80G static 2009-05-19 22:14 
opensolaris-7 -      /mnt       104.0K static 2009-09-20 22:24 
 

5. perform full upgrade on the mounted new BE. e.g.:

% pfexec pkg -R /mnt image-update


Note: make sure that preferred publisher is set to dev repository

% pkg publisher
PUBLISHER                             TYPE     STATUS   URI
dev                      (preferred)  origin   online   http://pkg.opensolaris.org/dev

 6. unmount upgraded BE. e.g.:

% pfexec beadm umount opensolaris-7

7. activate upgraded BE. e.g.:

% pfexec beadm activate opensolaris-7

8. done, you can reboot system into your new upgraded BE

% init 6
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today