Bugzilla – Bug 2824
A few problems with the b95 test image
Last modified: 2008-11-24 12:57:20 UTC
You need to log in before you can comment on or make changes to this bug.
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.
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>]
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>.
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.
*** Bug 2871 has been marked as a duplicate of this bug. ***
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.
Fixed in changeset: 104:d9be64bb5042