summaryrefslogtreecommitdiff
path: root/files/base.scm.m4
blob: 397d274cc587f2caeb53260de710148968c6491e (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
divert(-1)
changecom(`//')
//
//            This is the base system file for the installer.
//
//  Macro definitions:
//
//  Required:
//  HOST:     The systems hostname
//  BOOT:     Boot partition uuid
//  ROOT:     Root partition uuid
//  FSYS:     Root filesystem
//
//  Optional:
//  SWAP:     Swap partition uuid
//  CRYPT:    If using luks (boolean)
//
divert(0)dnl
(use-modules (freya system)
             (gnu))

(operating-system
  (inherit %desktop-freya-operating-system)
  (host-name "HOST")
ifdef(`CRYPT', `dnl
  (mapped-devices (list (mapped-device
                          (source (uuid
                                    "ROOT"))
                          (target "root")
                          (type luks-device-mapping))))
')dnl
ifdef(`SWAP', `dnl
  (swap-devices (list (swap-space
                        (target (uuid
                                  "SWAP")))))
')dnl
  (file-systems (cons* (file-system
                         (mount-point "/")
ifdef(`CRYPT', `dnl
                         (device "/dev/mapper/root")
', `dnl
                         (device (uuid "ROOT"))
')dnl
                         (type "FSYS")
                         (dependencies mapped-devices))
                       (file-system
                         (mount-point "/boot/efi")
                         (device (uuid "BOOT"
                                       'fat32))
                         (type "vfat"))
                       (operating-system-file-systems
                         %desktop-freya-operating-system))))