Bug 2824 - A few problems with the b95 test image
: A few problems with the b95 test image
Status: RESOLVED FIXINBUILD
Product: distro-constructor
dc-cli
: unspecified
: Other Solaris
: P3 normal (vote)
: 2008.11
Assigned To: Karen Tung
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-08-08 12:15 UTC by Karen Tung
Modified: 2008-11-24 12:57 UTC (History)
4 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Karen Tung 2008-08-08 12:15:18 UTC
I built a b95 test image, and noticed the following 3 problems.

1) When I boot up the image, I see the "/" is out of space error.
However, I am able to continue with booting the live cd and installing from it.

2) In the Live CD env, all the files in /var/pkg/state/installed are pointers
to files in the pkg UFS archive we introduced in fixing bug 2716.  In the
fix for bug 2716, we remove the links in the archive because those links also
exists in the microroot.   However,
because of the change of those files from symlinks to files between b94 and
b95.  We should not remove the links in the archive anymore.  This problem
also caused the installed image to not work correctly.  The major
problem I noticed is that you can not install a new package.

3) In the fix for bug 2810, we remove the indices from /var/pkg/index in
the proto area after the microroot is built.  This caused the microroot
to have links to the proto area where files doesn't exist.  I didn't notice
any problem this caused in the live cd or the installed image.
Comment 1 Karen Tung 2008-08-08 12:42:45 UTC
To give a little more information on problem #2:

After I installed, I tried this:

- pkg refresh
- pkg install SUNWcdrw

I got an error that says:

pkg: install failed: [<pkg.fmri.PkgFmri 'pkg:/SUNWpl5u@5.6.1,5.11-0.95' at
0x9ecf1ec>]
Comment 2 Alan Steinberg 2008-08-08 12:59:42 UTC
This is specifically due to the symlinks under /var/pkg/state/installed
pointing to "/mnt/pkg/var/pkg/state/installed/<fmri>". I think these should
instead be pointing to /var/pkg/pkg/<pkgname>/<fmri>.
Comment 3 Karen Tung 2008-08-12 09:18:03 UTC
Problem #2 reported in the original comment is not as severe as before.
The problem I reported previously is due to user error.
It is still true that the files are wrong, but it appears that they don't
interfere with the normal operation of IPS.  I am able to successfully
add and remove packages.
Comment 4 Dave Miner 2008-08-12 10:34:35 UTC
*** Bug 2871 has been marked as a duplicate of this bug. ***
Comment 5 Karen Tung 2008-08-12 11:27:33 UTC
To fix problem 1, increase size of the root archive from 195K to 200K

To fix problem 2, remove the code that deletes the contents of var/pkg/state
from
the proto area.

To fix problem 3, move the code that deletes the contents of var/pkg/index from
the livemedia_processing() function to before the microroot construction
starts.  This way, the microroot will not contain links to this directory
which we later remove.
Comment 6 Karen Tung 2008-08-15 09:18:21 UTC
Fixed in changeset:   104:d9be64bb5042