OpenSolaris JeOS Prototype (Part 17: Remove old 'dirty' BEs)

This entry is part of OpenSolaris JeOS (Just Enough Operating System) Prototype workshop.


Removing original GUI BE, leaving just customized ones

Boot into new customize BE, test it and make it active

beadm activate jeosinst

beadm list
BE          Active Mountpoint Space   Policy Created
--          ------ ---------- -----   ------ -------
jeosinst    NR     /          3.87G   static 1986-12-27 16:16
opensolaris -      -          109.88M static 1969-12-31 16:00

Fix grub boot info

vim /rpool/boot/grub/menu.lst

Remove old 'opensolaris' environment

beadm destroy opensolaris
Are you sure you want to destroy opensolaris? This action cannot be undone(y/[n]): y

Check it

beadm list
BE       Active Mountpoint Space        Policy Created
--       ------ ---------- -----        ------ -------
jeosinst NR     /          16777216.00T static 1986-12-27 16:16

zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                   7.20G  8.43G  74.5K  /rpool
rpool/ROOT              3.43G  8.43G    18K  legacy
rpool/ROOT/jeosinst     3.43G  8.43G   798M  /tmp/jeosinst
rpool/dump              1.87G  8.43G  1.87G  -
rpool/export            9.86M  8.43G    19K  /export
rpool/export/home       9.84M  8.43G    19K  /export/home
rpool/export/home/osol  9.83M  8.43G  9.83M  /export/home/osol
rpool/swap              1.87G  10.3G    16K  -

Shutdown and take a backup

init 0 
--- Update don't work, for this we need to use REPO freeze ---

pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org:80/

pkg set-authority -P -O http://pkg.opensolaris.org:80/ opensolaris.org

pkg -R /tmp/jeosinst image-update -nv

WARNING: pkg(5) appears to be out of date, and should be updated before
running image-update.

Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry
the image-update.

 pkg install SUNWipkg
 pkg -R /tmp/jeosinst install SUNWipkg

We already have version 101, need to use public repo with latest 100 ???

pkg -R /tmp/jeosinst image-update -nv

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Hands-on experience with Virtualization

Search

Categories
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