diff options
Diffstat (limited to 'files/base.scm.m4')
-rw-r--r-- | files/base.scm.m4 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/files/base.scm.m4 b/files/base.scm.m4 new file mode 100644 index 0000000..397d274 --- /dev/null +++ b/files/base.scm.m4 @@ -0,0 +1,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)))) |