Table of Contents |
---|
...
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 |
The build process should be run in the newly created zone from the user with the sudo permissions (not root). So, now while you are in the global zone check the id of yournonrootuser (like you did it for admin user when creating DPKG zone before).
Code Block | ||
---|---|---|
| ||
$ id yournonrootuser
uid=1000(admin) gid=10(staff) groups=10(staff) |
All the commands below are executed in the newly created zone (not global)
...
- login to the zone with root account. Please note that the NOPASSWD option should be added to
...
your build user in the /etc/sudoers file.
Code Block | ||||
---|---|---|---|---|
| ||||
# useradd -u uidfromglobalzone -g staff -d /export/home/yournonrootuser -s /bin/bash yournonrootuser
# passwd yournonrootuser
# echo "yournonrootuser ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/yournonrootuser
# /system/bin/usermod -P 'Primary Administrator' yournonrootuser |
After this you can re-login to the zone under this build user account and continue to do the following steps.
Code Block | ||||
---|---|---|---|---|
| ||||
$ sudo apt-get install git ca-certificates $ sudo update-ca-certificates -d # need it for first time |
...
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.
...