changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/lib/box/archiso.lisp

changeset 389: 95b861dff3d8
child: d876b572b5b9
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 31 May 2024 23:28:35 -0400
permissions: -rw-r--r--
description: box,skel,vc,obj upgrades, moved XDB to demo/examples/db
1 ;;; box/archiso.lisp --- archiso installation interface
2 
3 ;;
4 
5 ;;; Code:
6 (in-package :box/archiso)
7 
8 #| default config
9 {
10  "__separator__": null,
11  "additional-repositories": [],
12  "archinstall-language": "English",
13  "audio_config": null,
14  "bootloader": "Systemd-boot",
15  "config_version": "2.6.0",
16  "debug": false,
17  "disk_config": {
18  "config_type": "manual_partitioning",
19  "device_modifications": [
20  {
21  "device": "/dev/sda",
22  "partitions": [
23  {
24  "btrfs": [],
25  "flags": [
26  "Boot"
27  ],
28  "fs_type": "fat32",
29  "length": {
30  "sector_size": null,
31  "total_size": null,
32  "unit": "B",
33  "value": 99982592
34  },
35  "mount_options": [],
36  "mountpoint": "/boot",
37  "obj_id": "369f31a8-2781-4d6b-96e7-75680552b7c9",
38  "start": {
39  "sector_size": {
40  "sector_size": null,
41  "total_size": null,
42  "unit": "B",
43  "value": 512
44  },
45  "total_size": null,
46  "unit": "sectors",
47  "value": 34
48  },
49  "status": "create",
50  "type": "primary"
51  },
52  {
53  "btrfs": [],
54  "flags": [],
55  "fs_type": "fat32",
56  "length": {
57  "sector_size": null,
58  "total_size": null,
59  "unit": "B",
60  "value": 100000000
61  },
62  "mount_options": [],
63  "mountpoint": "/efi",
64  "obj_id": "13cf2c96-8b0f-4ade-abaa-c530be589aad",
65  "start": {
66  "sector_size": {
67  "sector_size": null,
68  "total_size": null,
69  "unit": "B",
70  "value": 512
71  },
72  "total_size": {
73  "sector_size": null,
74  "total_size": null,
75  "unit": "B",
76  "value": 16106127360
77  },
78  "unit": "MB",
79  "value": 100
80  },
81  "status": "create",
82  "type": "primary"
83  },
84  {
85  "btrfs": [],
86  "flags": [],
87  "fs_type": "ext4",
88  "length": {
89  "sector_size": null,
90  "total_size": null,
91  "unit": "B",
92  "value": 15805127360
93  },
94  "mount_options": [],
95  "mountpoint": "/",
96  "obj_id": "3e75d045-21a4-429d-897e-8ec19a006e8b",
97  "start": {
98  "sector_size": {
99  "sector_size": null,
100  "total_size": null,
101  "unit": "B",
102  "value": 512
103  },
104  "total_size": {
105  "sector_size": null,
106  "total_size": null,
107  "unit": "B",
108  "value": 16106127360
109  },
110  "unit": "MB",
111  "value": 301
112  },
113  "status": "create",
114  "type": "primary"
115  }
116  ],
117  "wipe": false
118  }
119  ]
120  },
121  "disk_encryption": {
122  "encryption_type": "luks",
123  "partitions": [
124  "3e75d045-21a4-429d-897e-8ec19a006e8b"
125  ]
126  },
127  "hostname": "archlinux",
128  "kernels": [
129  "linux"
130  ],
131  "locale_config": {
132  "kb_layout": "us",
133  "sys_enc": "UTF-8",
134  "sys_lang": "en_US"
135  },
136  "mirror_config": {
137  "custom_mirrors": [],
138  "mirror_regions": {
139  "Sweden": [
140  "https://mirror.osbeck.com/archlinux/$repo/os/$arch",
141  "https://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
142  "https://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
143  "https://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch",
144  "https://ftp.ludd.ltu.se/mirrors/archlinux/$repo/os/$arch",
145  "https://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch",
146  "http://mirror.bahnhof.net/pub/archlinux/$repo/os/$arch",
147  "http://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch",
148  "http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch",
149  "http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch",
150  "http://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch"
151  ]
152  }
153  },
154  "network_config": {},
155  "no_pkg_lookups": false,
156  "ntp": true,
157  "offline": false,
158  "packages": [],
159  "parallel downloads": 0,
160  "profile_config": null,
161  "save_config": null,
162  "script": "guided",
163  "silent": false,
164  "swap": true,
165  "timezone": "UTC",
166  "version": "2.6.0"
167 }
168 |#
169 
170 #|
171 (dat/proto:serialize
172 '(("__separator__" NIL) ("additional-repositories" NIL)
173  ("archinstall-language" "English") ("audio_config" NIL)
174  ("bootloader" "Systemd-boot") ("config_version" "2.6.0")
175  ("debug" NIL) ("disk_config" nil)
176  ("disk_encryption" nil)
177  ("hostname" "archlinux") ("kernels" ("linux"))
178  ("locale_config" nil)
179  ("mirror_config" nil)
180  ("network_config" nil)
181  ("no_pkg_lookups" NIL) ("ntp" T) ("offline" NIL) ("packages" NIL)
182  ("parallel downloads" 0) ("profile_config" NIL)
183  ("save_config" NIL) ("script" "guided") ("silent" NIL) ("swap" T)
184  ("timezone" "UTC") ("version" "2.6.0"))
185 :json)
186 |#
187 
188 (defvar *archiso-config*)
189 
190 (defvar *archiso-creds*)
191 
192 ;; TODO 2024-05-31:
193 (defcfg archiso-cfg ()
194  ())