summaryrefslogtreecommitdiff
path: root/grid5000/steps/setup/debian/configure_system.yaml
blob: 252a310adbfda75533abe961a0a0ee399c2a6654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# System Config
- grub_cmdline_linux: ""

- configure_locales:
  # set locales programtically, based on http://linux.livejournal.com/1880366.html
  - exec_in: |
      test ! -f /etc/locale.gen || \
        (echo $${locales} | tr ' ' '\n' | xargs -I {} sed -i 's/^# {}/{}/' /etc/locale.gen)
  - exec_in: locale-gen
  - exec_in: update-locale LANG=$${lang}

- set_timezone:
  - exec_in: echo "$${timezone}" > /etc/timezone
  - exec_in: ln -sf /usr/share/zoneinfo/$${timezone} /etc/localtime
  - exec_in: "dpkg-reconfigure -f noninteractive tzdata 2>&1"

- set_root_password:
  - exec_in: echo -n 'root:$${root_password}' | chpasswd

- configure_initramfs:
  - write_in:
    - /etc/initramfs-tools/conf.d/resume
    - RESUME=none

- configure_grub:
  - exec_in: sed -i 's|^\(GRUB_CMDLINE_LINUX=\).*|\1"$${grub_cmdline_linux}"|' /etc/default/grub
  - exec_in: update-grub