Skip to content

Commit

Permalink
handle swap_size contextualization key
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed May 26, 2015
1 parent 257d1e7 commit bdad48a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cernvm/amiconfig/plugins/cernvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def configure(self):
keyboard = us
# GRID UI version
gridUiVersion = default
# Either fixed size (1g, 2g, ...) or auto, meaning 2g/core. Default is no swap.
swap_size = off
"""

cfg = self.ud.getSection('cernvm')
Expand Down Expand Up @@ -261,6 +263,12 @@ def configure(self):
"/etc/cernvm/site.conf",
'CERNVM_AUTOLOGIN',autoLogin,"=")

if 'swap_size' in cfg:
swapSize = cfg['swap_size']
self.writeConfigToFile(
"/etc/cernvm/site.conf",
'CERNVM_SWAP_SIZE', swapSize, "=")

if 'desktop_icons' in cfg:
desktopIcons = cfg['desktop_icons']
self.writeConfigToFile(
Expand Down

0 comments on commit bdad48a

Please sign in to comment.