...
Code Block |
---|
language | bash |
---|
title | Add swap: |
---|
|
$ sudo zfs set volsize=2g rpool/swap
$ sudo reboot |
You can change the swap size on the fly. To do it do:
Code Block |
---|
title | change the swap size on the fly |
---|
|
$ /usr/sbin/swap -lh
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 129,3 4K 2,00G 2,00G
$ sudo swap -d /dev/zvol/dsk/rpool/swap
$ sudo zfs set volsize=4g rpool/swap
$ sudo swap -a /dev/zvol/dsk/rpool/swap
$ /usr/sbin/swap -lh
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 129,3 4K 4,00G 4,00G |
All the commands below are executed in newly created zone (not global). The build process should be run from the user with the sudo permissions (not root). Please note that the NOPASSWD option should be added to this user in the /etc/sudoers file.
...
Code Block |
---|
language | bash |
---|
title | Copy original illumos.sh: |
---|
|
$ cp usr/src/tools/env/illumos.sh . |
The settings we are going to focus on for now are the following:
- CODEMGR_WS - This should be the root of the directory with the code. If you followed the previous example, it will be
/<your directory>/my-dilos-illumos
. - STAFFER - Change this to the name of the non-privileged user you use on the system.
- VERSION - Set this to
illumos-gate
or whatever version string you want for the build. - CLONE_WS - is the workspace nightly should do a bringover from. You can update it to: export CLONE_WS='https://bitbucket.org/dilos/dilos-illumos-gate'. This variable need for 'webrev' tool.
...