Table of Contents |
---|
...
Info | ||
---|---|---|
| ||
You need to upgrade DilOS. This step is required only once and should be made only in the global zone before preparing the build environment. You need to have 'sudo' permissions for your build user for DEB packages generation process. Please update the /etc/sudoers file with the correct info. Instructions are based on updates and sources tree tag with update from 'dilos-unstable'. Add the repository below to the top of the /etc/apt/sources.list file: deb http://apt.dilos.org/dilos dilos2-unstable main and issue the following commands: sudo apt-get update && sudo dilosos-upgrade You will be upgraded to new BE. Please reboot after successful upgrade. |
...
You can change the swap size on the fly. To do it do:
Code Block | ||
---|---|---|
| ||
$ /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 | ||||
---|---|---|---|---|
| ||||
$ 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.
...