zfs create yourpool yourdevice
zfs set mountpoint=none yourpool
zfs create yourpool/constructor
zfs set mountpoint=/constructor yourpool/constructor
cd /constructor
pkg install SUNWdistro-const
cp /usr/share/distro_const/slim_cd/slim_cd_x86.xml ./
vi slim_cd_x86.xml (and change rpool/dc to yourpool/constructor)
distro_const build ./slim_cd_x86.xml
output should be:
/usr/share/distro_const/DC-manifest.defval.xml validates
/tmp/slim_cd_x86_temp_1209.xml validates
Simple Log: /constructor/logs/simple-log-2009-06-08-11-55-40
Detail Log: /constructor/logs/detail-log-2009-06-08-11-55-40
Build started Mon Jun 8 11:55:40 2009
Distribution name: OpenSolaris
Build Area dataset: maxtor80/constructor
Build Area mount point: /constructor
==== im-pop: Populate the image with packages
Initializing the IPS package image area: /constructor/build_data/pkg_image
Setting preferred authority: opensolaris.org
Origin repository: http://pkg.opensolaris.org/release
Verifying the contents of the IPS repository
Installing the designated packages
Uninstalling the designated packages
Setting post-install preferred authority: opensolaris.org
Origin repository: http://pkg.opensolaris.org/release
==== im-mod: Image area modifications
==== slim-im-mod: Slim CD Image area Modifications
0 blocks
WARNING: Failed to parse default value `??????????? ?????? ;gtk-theme-selector.desktop,???????????? ??????????? ???;default-applications.desktop,??????????? ????;gnome-cups-manager.desktop]' for schema (/schemas/apps/control-center/cc_actions_list)
WARNING: failed to parse type name `str'
WARNING: invalid or missing type for schema (/schemas/apps/packagemanager/preferences/remote_search_error)
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
235264 blocks
2800 blocks
31040 blocks
0 blocks
81152 blocks
3696 blocks
0 blocks
0 blocks
576 blocks
32 blocks
160 blocks
2704 blocks
272 blocks
3952 blocks
9600 blocks
0 blocks
0 blocks
==== slim-br-config: Slim CD boot root configuration
==== br-config: Boot root configuration
==== br-arch: Boot root archiving (64-bit)
387296 blocks
273136 blocks
==== br-arch-32: Boot root archiving (32-bit)
387296 blocks
200640 blocks
==== slim-post-mod: Slim CD post bootroot image area modification
==== grub-setup: Grub menu setup
==== post-mod: Post bootroot image area modification
Warning: creating filesystem that does not conform to ISO-9660.
Warning: creating filesystem that does not conform to ISO-9660.
==== gen-slim-cont: Generate Slim CD image content list
==== iso: ISO image creation
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors -> No emulation
1.36% done, estimate finish Mon Jun 8 14:11:58 2009
2.71% done, estimate finish Mon Jun 8 14:11:58 2009
4.07% done, estimate finish Mon Jun 8 14:11:58 2009
5.42% done, estimate finish Mon Jun 8 14:11:58 2009
6.78% done, estimate finish Mon Jun 8 14:11:58 2009
8.13% done, estimate finish Mon Jun 8 14:11:58 2009
9.48% done, estimate finish Mon Jun 8 14:11:58 2009
10.84% done, estimate finish Mon Jun 8 14:11:58 2009
12.19% done, estimate finish Mon Jun 8 14:11:58 2009
13.54% done, estimate finish Mon Jun 8 14:11:58 2009
14.90% done, estimate finish Mon Jun 8 14:11:58 2009
16.25% done, estimate finish Mon Jun 8 14:11:58 2009
17.61% done, estimate finish Mon Jun 8 14:11:58 2009
18.96% done, estimate finish Mon Jun 8 14:11:58 2009
20.32% done, estimate finish Mon Jun 8 14:11:58 2009
21.67% done, estimate finish Mon Jun 8 14:11:58 2009
23.03% done, estimate finish Mon Jun 8 14:11:58 2009
24.38% done, estimate finish Mon Jun 8 14:11:58 2009
25.73% done, estimate finish Mon Jun 8 14:11:58 2009
27.09% done, estimate finish Mon Jun 8 14:11:58 2009
28.44% done, estimate finish Mon Jun 8 14:11:58 2009
29.79% done, estimate finish Mon Jun 8 14:11:58 2009
31.15% done, estimate finish Mon Jun 8 14:11:58 2009
32.50% done, estimate finish Mon Jun 8 14:11:58 2009
33.86% done, estimate finish Mon Jun 8 14:11:58 2009
35.21% done, estimate finish Mon Jun 8 14:11:58 2009
36.57% done, estimate finish Mon Jun 8 14:11:58 2009
37.92% done, estimate finish Mon Jun 8 14:11:58 2009
39.28% done, estimate finish Mon Jun 8 14:11:58 2009
40.63% done, estimate finish Mon Jun 8 14:11:58 2009
41.99% done, estimate finish Mon Jun 8 14:11:58 2009
43.34% done, estimate finish Mon Jun 8 14:11:58 2009
44.69% done, estimate finish Mon Jun 8 14:11:58 2009
46.05% done, estimate finish Mon Jun 8 14:11:58 2009
47.40% done, estimate finish Mon Jun 8 14:11:58 2009
48.75% done, estimate finish Mon Jun 8 14:11:58 2009
50.11% done, estimate finish Mon Jun 8 14:11:58 2009
51.46% done, estimate finish Mon Jun 8 14:11:58 2009
52.82% done, estimate finish Mon Jun 8 14:11:58 2009
54.17% done, estimate finish Mon Jun 8 14:11:58 2009
55.53% done, estimate finish Mon Jun 8 14:11:58 2009
56.88% done, estimate finish Mon Jun 8 14:11:58 2009
58.24% done, estimate finish Mon Jun 8 14:11:58 2009
59.59% done, estimate finish Mon Jun 8 14:11:58 2009
60.94% done, estimate finish Mon Jun 8 14:11:58 2009
62.30% done, estimate finish Mon Jun 8 14:11:58 2009
63.65% done, estimate finish Mon Jun 8 14:11:58 2009
65.01% done, estimate finish Mon Jun 8 14:11:58 2009
66.36% done, estimate finish Mon Jun 8 14:11:58 2009
67.71% done, estimate finish Mon Jun 8 14:11:58 2009
69.07% done, estimate finish Mon Jun 8 14:11:58 2009
70.42% done, estimate finish Mon Jun 8 14:11:58 2009
71.78% done, estimate finish Mon Jun 8 14:11:58 2009
73.13% done, estimate finish Mon Jun 8 14:11:58 2009
74.49% done, estimate finish Mon Jun 8 14:11:58 2009
75.84% done, estimate finish Mon Jun 8 14:11:58 2009
77.20% done, estimate finish Mon Jun 8 14:11:58 2009
78.55% done, estimate finish Mon Jun 8 14:11:58 2009
79.90% done, estimate finish Mon Jun 8 14:11:58 2009
81.26% done, estimate finish Mon Jun 8 14:11:58 2009
82.61% done, estimate finish Mon Jun 8 14:11:59 2009
83.96% done, estimate finish Mon Jun 8 14:11:59 2009
85.32% done, estimate finish Mon Jun 8 14:11:59 2009
86.67% done, estimate finish Mon Jun 8 14:11:59 2009
88.03% done, estimate finish Mon Jun 8 14:12:13 2009
89.38% done, estimate finish Mon Jun 8 14:12:14 2009
90.73% done, estimate finish Mon Jun 8 14:12:14 2009
92.09% done, estimate finish Mon Jun 8 14:12:14 2009
93.44% done, estimate finish Mon Jun 8 14:12:23 2009
94.80% done, estimate finish Mon Jun 8 14:12:24 2009
96.15% done, estimate finish Mon Jun 8 14:12:24 2009
97.51% done, estimate finish Mon Jun 8 14:12:23 2009
98.86% done, estimate finish Mon Jun 8 14:12:23 2009
Total translation table size: 2048
Total rockridge attributes bytes: 31523
Total directory bytes: 200704
Path table size(bytes): 1282
Max brk space used 84000
369210 extents written (721 MB)
==== usb: USB image creation
/dev/rlofi/2: 1771800 sectors in 2953 cylinders of 1 tracks, 600 sectors
865.1MB in 185 cyl groups (16 c/g, 4.69MB/g, 2240 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 9632, 19232, 28832, 38432, 48032, 57632, 67232, 76832, 86432,
1680032, 1689632, 1699232, 1708832, 1718432, 1728032, 1737632, 1747232,
1756832, 1766432
1476240 blocks
Build completed Mon Jun 8 14:14:43 2009
Build is successful.
then:
# echo $?
0
then:
# ls -alh media/
total 1.5G
drwxr-xr-x 2 root root 4 Jun 8 14:12 .
drwxr-xr-x 5 root root 23 Jun 8 14:12 ..
-rw-r--r-- 1 root root 722M Jun 8 14:12 OpenSolaris.iso
-r--r--r-- 1 root root 866M Jun 8 14:14 OpenSolaris.usb
to rebuild just the iso afterwards:
distro_const build -r iso ./slim_cd_x86.xml
to start by default the livessh option, edit the slim_cd_x86.xml manifest, find this snippet:
and after it add:
3
(but then it doesn't suffice to rebuild the iso, you should rebuild from an earlier stage!)
More customization:
cp /usr/share/distro_const/slim_cd/slimcd_bootroot_configure /constructor/
then edit slim_cd_x86.xml and change: