penguins-eggs 9.2.6 → 9.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/.oclif.manifest.json +1 -0
  2. package/README.md +34 -31
  3. package/conf/distros/kinetic/README.md +41 -0
  4. package/conf/tools.yaml +1 -1
  5. package/{lib → dist}/classes/bleach.js +0 -0
  6. package/{lib → dist}/classes/compressors.js +0 -0
  7. package/{lib → dist}/classes/daddy.js +0 -0
  8. package/{lib → dist}/classes/distro.js +14 -30
  9. package/{lib → dist}/classes/family/archlinux.js +0 -0
  10. package/{lib → dist}/classes/family/debian.js +0 -0
  11. package/{lib → dist}/classes/family/fedora.js +0 -0
  12. package/{lib → dist}/classes/family/suse.js +0 -0
  13. package/{lib → dist}/classes/incubation/branding.js +0 -0
  14. package/{lib → dist}/classes/incubation/distros/bionic.js +0 -0
  15. package/{lib → dist}/classes/incubation/distros/buster.js +0 -0
  16. package/{lib → dist}/classes/incubation/distros/focal.js +0 -0
  17. package/{lib → dist}/classes/incubation/distros/jessie.js +0 -0
  18. package/{lib → dist}/classes/incubation/distros/rolling.js +0 -0
  19. package/{lib → dist}/classes/incubation/fisherman-helper/displaymanager.js +0 -0
  20. package/{lib → dist}/classes/incubation/fisherman-helper/packages.js +0 -0
  21. package/{lib → dist}/classes/incubation/fisherman.js +0 -0
  22. package/{lib → dist}/classes/incubation/incubator.js +9 -19
  23. package/{lib → dist}/classes/incubation/installer.js +0 -0
  24. package/{lib → dist}/classes/initrd.js +0 -0
  25. package/{lib → dist}/classes/keyboards.js +0 -0
  26. package/{lib → dist}/classes/locales.js +0 -0
  27. package/{lib → dist}/classes/n8.js +0 -0
  28. package/dist/classes/network.js +99 -0
  29. package/{lib → dist}/classes/ovary.js +0 -0
  30. package/{lib → dist}/classes/pacman.js +16 -1
  31. package/{lib → dist}/classes/pve-live.js +0 -0
  32. package/dist/classes/pxe.js +337 -0
  33. package/{lib → dist}/classes/settings.js +0 -0
  34. package/{lib → dist}/classes/sources_list.js +0 -0
  35. package/{lib → dist}/classes/systemctl.js +0 -0
  36. package/{lib → dist}/classes/tailor.js +0 -0
  37. package/{lib → dist}/classes/tools.js +0 -0
  38. package/{lib → dist}/classes/users.js +0 -0
  39. package/{lib → dist}/classes/utils.js +82 -17
  40. package/{lib → dist}/classes/xdg.js +24 -26
  41. package/{lib → dist}/classes/yolk.js +0 -0
  42. package/{lib → dist}/commands/adapt.js +0 -0
  43. package/{lib → dist}/commands/analyze.js +0 -0
  44. package/{lib → dist}/commands/calamares.js +0 -0
  45. package/{lib → dist}/commands/config.js +0 -0
  46. package/dist/commands/cuckoo.js +63 -0
  47. package/{lib → dist}/commands/dad.js +0 -0
  48. package/{lib → dist}/commands/export/deb.js +0 -0
  49. package/{lib → dist}/commands/export/docs.js +0 -0
  50. package/{lib → dist}/commands/export/iso.js +0 -0
  51. package/{lib → dist}/commands/install.js +26 -5
  52. package/{lib → dist}/commands/kill.js +0 -0
  53. package/{lib → dist}/commands/mom.js +0 -0
  54. package/{lib → dist}/commands/produce.js +0 -0
  55. package/{lib → dist}/commands/status.js +0 -0
  56. package/{lib → dist}/commands/syncfrom.js +0 -0
  57. package/{lib → dist}/commands/syncto.js +0 -0
  58. package/{lib → dist}/commands/tools/clean.js +0 -0
  59. package/{lib → dist}/commands/tools/skel.js +0 -0
  60. package/{lib → dist}/commands/tools/stat.js +0 -0
  61. package/{lib → dist}/commands/tools/yolk.js +0 -0
  62. package/{lib → dist}/commands/update.js +0 -0
  63. package/{lib → dist}/commands/wardrobe/get.js +0 -0
  64. package/{lib → dist}/commands/wardrobe/ironing.js +0 -0
  65. package/{lib → dist}/commands/wardrobe/list.js +0 -0
  66. package/{lib → dist}/commands/wardrobe/show.js +0 -0
  67. package/{lib → dist}/commands/wardrobe/wear.js +0 -0
  68. package/{lib → dist}/components/elements/information.js +0 -0
  69. package/{lib → dist}/components/elements/steps.js +0 -0
  70. package/{lib → dist}/components/elements/title.js +0 -0
  71. package/{lib → dist}/components/finished.js +0 -0
  72. package/{lib → dist}/components/install.js +0 -0
  73. package/{lib → dist}/components/keyboard.js +0 -0
  74. package/{lib → dist}/components/location.js +0 -0
  75. package/{lib → dist}/components/network.js +0 -0
  76. package/{lib → dist}/components/partitions.js +0 -0
  77. package/{lib → dist}/components/summary.js +2 -2
  78. package/{lib → dist}/components/users.js +0 -0
  79. package/{lib → dist}/components/welcome.js +0 -0
  80. package/dist/dhcpd/dhcpd.js +222 -0
  81. package/dist/dhcpd/index.js +7 -0
  82. package/dist/dhcpd/packet/converters.js +377 -0
  83. package/dist/dhcpd/packet/options.js +2 -0
  84. package/dist/dhcpd/packet/types.js +2 -0
  85. package/dist/dhcpd/packet.js +251 -0
  86. package/dist/dhcpd/proxy.js +152 -0
  87. package/dist/dhcpd/server.js +152 -0
  88. package/dist/dhcpd/sprintf.js +170 -0
  89. package/dist/dhcpd/utils.js +190 -0
  90. package/{lib → dist}/index.js +0 -0
  91. package/{lib → dist}/interfaces/i-addons.js +0 -0
  92. package/{lib → dist}/interfaces/i-analyze.js +0 -0
  93. package/{lib → dist}/interfaces/i-app.js +0 -0
  94. package/{lib → dist}/interfaces/i-branding.js +0 -0
  95. package/{lib → dist}/interfaces/i-config-tools.js +0 -0
  96. package/{lib → dist}/interfaces/i-devices.js +0 -0
  97. package/{lib → dist}/interfaces/i-distro.js +0 -0
  98. package/{lib → dist}/interfaces/i-drive-list.js +0 -0
  99. package/{lib → dist}/interfaces/i-eggs-config.js +0 -0
  100. package/{lib → dist}/interfaces/i-exec.js +0 -0
  101. package/{lib → dist}/interfaces/i-initrd.js +0 -0
  102. package/{lib → dist}/interfaces/i-install.js +0 -0
  103. package/{lib → dist}/interfaces/i-installer.js +0 -0
  104. package/{lib → dist}/interfaces/i-krill-config.js +0 -0
  105. package/{lib → dist}/interfaces/i-krill.js +0 -0
  106. package/{lib → dist}/interfaces/i-materia.js +0 -0
  107. package/{lib → dist}/interfaces/i-net.js +0 -0
  108. package/{lib → dist}/interfaces/i-packages.js +0 -0
  109. package/{lib → dist}/interfaces/i-partitions.js +0 -0
  110. package/{lib/interfaces/i-remix.js → dist/interfaces/i-pxe-options.js} +0 -0
  111. package/{lib/interfaces/i-settings.js → dist/interfaces/i-remix.js} +0 -0
  112. package/{lib/interfaces/i-user.js → dist/interfaces/i-settings.js} +0 -0
  113. package/{lib/interfaces/i-workdir.js → dist/interfaces/i-user.js} +0 -0
  114. package/{lib/interfaces/i-xkb-model.js → dist/interfaces/i-workdir.js} +0 -0
  115. package/{lib/interfaces/index.js → dist/interfaces/i-xkb-model.js} +0 -0
  116. package/dist/interfaces/index.js +2 -0
  117. package/{lib → dist}/krill/krill-prepare.js +20 -4
  118. package/{lib → dist}/krill/krill-sequence.js +64 -62
  119. package/{lib → dist}/krill/modules/add-user.js +0 -0
  120. package/{lib → dist}/krill/modules/bootloader-config-ubuntu.js +0 -0
  121. package/{lib → dist}/krill/modules/bootloader-config.js +1 -1
  122. package/{lib → dist}/krill/modules/bootloader.js +0 -5
  123. package/{lib → dist}/krill/modules/change-password.js +0 -0
  124. package/{lib → dist}/krill/modules/del-live-user.js +0 -0
  125. package/{lib → dist}/krill/modules/fstab.js +0 -0
  126. package/{lib → dist}/krill/modules/grubcfg.js +0 -0
  127. package/{lib → dist}/krill/modules/hostname.js +2 -2
  128. package/{lib → dist}/krill/modules/initramfs-cfg.js +0 -0
  129. package/{lib → dist}/krill/modules/initramfs.js +0 -0
  130. package/{lib → dist}/krill/modules/locale-cfg.js +0 -0
  131. package/{lib → dist}/krill/modules/locale.js +1 -1
  132. package/{lib/krill/modules/set-keyboard.js → dist/krill/modules/m-keyboard.js} +7 -3
  133. package/{lib/krill/modules/set-timezone.js → dist/krill/modules/m-timezone.js} +2 -2
  134. package/{lib → dist}/krill/modules/machine-id.js +0 -0
  135. package/{lib → dist}/krill/modules/mkfs.js +0 -0
  136. package/{lib → dist}/krill/modules/mount-fs.js +0 -0
  137. package/{lib → dist}/krill/modules/mount-vfs.js +0 -0
  138. package/{lib → dist}/krill/modules/network-cfg.js +0 -0
  139. package/{lib → dist}/krill/modules/packages.js +0 -0
  140. package/{lib → dist}/krill/modules/partition.js +1 -1
  141. package/{lib → dist}/krill/modules/remove-installer-link.js +0 -0
  142. package/{lib → dist}/krill/modules/umount.js +0 -0
  143. package/{lib → dist}/krill/modules/unpackfs.js +0 -0
  144. package/{lib → dist}/lib/cli-autologin.js +0 -0
  145. package/{lib → dist}/lib/dependencies.js +0 -0
  146. package/{lib → dist}/lib/get_address.js +0 -0
  147. package/{lib → dist}/lib/get_dns.js +0 -0
  148. package/{lib → dist}/lib/get_domain.js +0 -0
  149. package/{lib → dist}/lib/get_gateway.js +0 -0
  150. package/{lib → dist}/lib/get_hostname.js +0 -0
  151. package/{lib → dist}/lib/get_netmask.js +0 -0
  152. package/{lib → dist}/lib/get_password.js +0 -0
  153. package/{lib → dist}/lib/get_root_password.js +0 -0
  154. package/{lib → dist}/lib/get_userfullname.js +0 -0
  155. package/{lib → dist}/lib/get_username.js +0 -0
  156. package/{lib → dist}/lib/select_address_type.js +0 -0
  157. package/{lib → dist}/lib/select_filesystem_type.js +0 -0
  158. package/{lib → dist}/lib/select_installation_device.js +0 -0
  159. package/{lib → dist}/lib/select_installation_mode.js +0 -0
  160. package/{lib → dist}/lib/select_interface.js +0 -0
  161. package/{lib → dist}/lib/select_keyboard_layout.js +0 -0
  162. package/{lib → dist}/lib/select_keyboard_model.js +0 -0
  163. package/{lib → dist}/lib/select_keyboard_option.js +0 -0
  164. package/{lib → dist}/lib/select_keyboard_variant.js +0 -0
  165. package/{lib → dist}/lib/select_languages.js +0 -0
  166. package/{lib → dist}/lib/select_regions.js +0 -0
  167. package/{lib → dist}/lib/select_user_swap_choice.js +0 -0
  168. package/{lib → dist}/lib/select_zones.js +0 -0
  169. package/{lib → dist}/lib/utils.js +1 -2
  170. package/ipxe/ipxe.efi +0 -0
  171. package/package.json +20 -17
  172. package/scripts/_eggs +11 -7
  173. package/scripts/eggs.bash +2 -2
  174. package/lib/classes/bleach.d.ts +0 -40
  175. package/lib/classes/compressors.d.ts +0 -24
  176. package/lib/classes/daddy.d.ts +0 -11
  177. package/lib/classes/distro.d.ts +0 -31
  178. package/lib/classes/family/archlinux.d.ts +0 -69
  179. package/lib/classes/family/debian.d.ts +0 -68
  180. package/lib/classes/family/fedora.d.ts +0 -63
  181. package/lib/classes/family/suse.d.ts +0 -63
  182. package/lib/classes/incubation/branding.d.ts +0 -8
  183. package/lib/classes/incubation/distros/bionic.d.ts +0 -29
  184. package/lib/classes/incubation/distros/buster.d.ts +0 -31
  185. package/lib/classes/incubation/distros/focal.d.ts +0 -29
  186. package/lib/classes/incubation/distros/jessie.d.ts +0 -32
  187. package/lib/classes/incubation/distros/rolling.d.ts +0 -31
  188. package/lib/classes/incubation/fisherman-helper/displaymanager.d.ts +0 -7
  189. package/lib/classes/incubation/fisherman-helper/packages.d.ts +0 -19
  190. package/lib/classes/incubation/fisherman.d.ts +0 -77
  191. package/lib/classes/incubation/incubator.d.ts +0 -35
  192. package/lib/classes/incubation/installer.d.ts +0 -15
  193. package/lib/classes/initrd.d.ts +0 -42
  194. package/lib/classes/keyboards.d.ts +0 -43
  195. package/lib/classes/locales.d.ts +0 -14
  196. package/lib/classes/n8.d.ts +0 -16
  197. package/lib/classes/ovary.d.ts +0 -179
  198. package/lib/classes/pacman.d.ts +0 -164
  199. package/lib/classes/pve-live.d.ts +0 -42
  200. package/lib/classes/pxe.d.ts +0 -64
  201. package/lib/classes/pxe.js +0 -376
  202. package/lib/classes/settings.d.ts +0 -55
  203. package/lib/classes/sources_list.d.ts +0 -27
  204. package/lib/classes/systemctl.d.ts +0 -46
  205. package/lib/classes/tailor.d.ts +0 -43
  206. package/lib/classes/tools.d.ts +0 -29
  207. package/lib/classes/users.d.ts +0 -21
  208. package/lib/classes/utils.d.ts +0 -299
  209. package/lib/classes/xdg.d.ts +0 -44
  210. package/lib/classes/yolk.d.ts +0 -26
  211. package/lib/commands/adapt.d.ts +0 -9
  212. package/lib/commands/analyze.d.ts +0 -25
  213. package/lib/commands/calamares.d.ts +0 -26
  214. package/lib/commands/config.d.ts +0 -34
  215. package/lib/commands/cuckoo.d.ts +0 -24
  216. package/lib/commands/cuckoo.js +0 -70
  217. package/lib/commands/dad.d.ts +0 -17
  218. package/lib/commands/export/deb.d.ts +0 -14
  219. package/lib/commands/export/docs.d.ts +0 -8
  220. package/lib/commands/export/iso.d.ts +0 -13
  221. package/lib/commands/install.d.ts +0 -26
  222. package/lib/commands/kill.d.ts +0 -20
  223. package/lib/commands/mom.d.ts +0 -14
  224. package/lib/commands/produce.d.ts +0 -28
  225. package/lib/commands/status.d.ts +0 -18
  226. package/lib/commands/syncfrom.d.ts +0 -42
  227. package/lib/commands/syncto.d.ts +0 -67
  228. package/lib/commands/tools/clean.d.ts +0 -15
  229. package/lib/commands/tools/skel.d.ts +0 -17
  230. package/lib/commands/tools/stat.d.ts +0 -14
  231. package/lib/commands/tools/yolk.d.ts +0 -23
  232. package/lib/commands/update.d.ts +0 -46
  233. package/lib/commands/wardrobe/get.d.ts +0 -17
  234. package/lib/commands/wardrobe/ironing.d.ts +0 -18
  235. package/lib/commands/wardrobe/list.d.ts +0 -17
  236. package/lib/commands/wardrobe/show.d.ts +0 -19
  237. package/lib/commands/wardrobe/wear.d.ts +0 -21
  238. package/lib/components/elements/information.d.ts +0 -4
  239. package/lib/components/elements/steps.d.ts +0 -6
  240. package/lib/components/elements/title.d.ts +0 -4
  241. package/lib/components/finished.d.ts +0 -8
  242. package/lib/components/install.d.ts +0 -8
  243. package/lib/components/keyboard.d.ts +0 -12
  244. package/lib/components/location.d.ts +0 -12
  245. package/lib/components/network.d.ts +0 -12
  246. package/lib/components/partitions.d.ts +0 -9
  247. package/lib/components/summary.d.ts +0 -16
  248. package/lib/components/users.d.ts +0 -20
  249. package/lib/components/welcome.d.ts +0 -6
  250. package/lib/index.d.ts +0 -1
  251. package/lib/interfaces/i-addons.d.ts +0 -8
  252. package/lib/interfaces/i-analyze.d.ts +0 -13
  253. package/lib/interfaces/i-app.d.ts +0 -7
  254. package/lib/interfaces/i-branding.d.ts +0 -29
  255. package/lib/interfaces/i-config-tools.d.ts +0 -11
  256. package/lib/interfaces/i-devices.d.ts +0 -13
  257. package/lib/interfaces/i-distro.d.ts +0 -19
  258. package/lib/interfaces/i-drive-list.d.ts +0 -29
  259. package/lib/interfaces/i-eggs-config.d.ts +0 -24
  260. package/lib/interfaces/i-exec.d.ts +0 -4
  261. package/lib/interfaces/i-initrd.d.ts +0 -6
  262. package/lib/interfaces/i-install.d.ts +0 -9
  263. package/lib/interfaces/i-installer.d.ts +0 -20
  264. package/lib/interfaces/i-krill-config.d.ts +0 -26
  265. package/lib/interfaces/i-krill.d.ts +0 -35
  266. package/lib/interfaces/i-materia.d.ts +0 -36
  267. package/lib/interfaces/i-net.d.ts +0 -9
  268. package/lib/interfaces/i-packages.d.ts +0 -10
  269. package/lib/interfaces/i-partitions.d.ts +0 -9
  270. package/lib/interfaces/i-remix.d.ts +0 -14
  271. package/lib/interfaces/i-settings.d.ts +0 -10
  272. package/lib/interfaces/i-user.d.ts +0 -7
  273. package/lib/interfaces/i-workdir.d.ts +0 -8
  274. package/lib/interfaces/i-xkb-model.d.ts +0 -17
  275. package/lib/interfaces/index.d.ts +0 -17
  276. package/lib/krill/krill-prepare.d.ts +0 -60
  277. package/lib/krill/krill-sequence.d.ts +0 -150
  278. package/lib/krill/modules/add-user.d.ts +0 -15
  279. package/lib/krill/modules/bootloader-config-arch.d.ts +0 -9
  280. package/lib/krill/modules/bootloader-config-arch.js +0 -13
  281. package/lib/krill/modules/bootloader-config-ubuntu.d.ts +0 -9
  282. package/lib/krill/modules/bootloader-config.d.ts +0 -9
  283. package/lib/krill/modules/bootloader.d.ts +0 -10
  284. package/lib/krill/modules/change-password.d.ts +0 -10
  285. package/lib/krill/modules/del-live-user.d.ts +0 -9
  286. package/lib/krill/modules/fstab.d.ts +0 -14
  287. package/lib/krill/modules/grubcfg.d.ts +0 -17
  288. package/lib/krill/modules/hostname.d.ts +0 -13
  289. package/lib/krill/modules/initramfs-cfg.d.ts +0 -14
  290. package/lib/krill/modules/initramfs.d.ts +0 -13
  291. package/lib/krill/modules/locale-cfg.d.ts +0 -10
  292. package/lib/krill/modules/locale.d.ts +0 -13
  293. package/lib/krill/modules/machine-id.d.ts +0 -15
  294. package/lib/krill/modules/mkfs.d.ts +0 -13
  295. package/lib/krill/modules/mount-fs.d.ts +0 -17
  296. package/lib/krill/modules/mount-vfs.d.ts +0 -17
  297. package/lib/krill/modules/network-cfg.d.ts +0 -19
  298. package/lib/krill/modules/packages.d.ts +0 -14
  299. package/lib/krill/modules/partition.d.ts +0 -20
  300. package/lib/krill/modules/remove-installer-link.d.ts +0 -13
  301. package/lib/krill/modules/set-keyboard.d.ts +0 -10
  302. package/lib/krill/modules/set-timezone.d.ts +0 -14
  303. package/lib/krill/modules/umount.d.ts +0 -14
  304. package/lib/krill/modules/unpackfs.d.ts +0 -13
  305. package/lib/lib/cli-autologin.d.ts +0 -27
  306. package/lib/lib/dependencies.d.ts +0 -49
  307. package/lib/lib/get_address.d.ts +0 -1
  308. package/lib/lib/get_dns.d.ts +0 -1
  309. package/lib/lib/get_domain.d.ts +0 -1
  310. package/lib/lib/get_gateway.d.ts +0 -1
  311. package/lib/lib/get_hostname.d.ts +0 -1
  312. package/lib/lib/get_netmask.d.ts +0 -1
  313. package/lib/lib/get_password.d.ts +0 -1
  314. package/lib/lib/get_root_password.d.ts +0 -1
  315. package/lib/lib/get_userfullname.d.ts +0 -1
  316. package/lib/lib/get_username.d.ts +0 -1
  317. package/lib/lib/select_address_type.d.ts +0 -1
  318. package/lib/lib/select_filesystem_type.d.ts +0 -1
  319. package/lib/lib/select_installation_device.d.ts +0 -1
  320. package/lib/lib/select_installation_mode.d.ts +0 -1
  321. package/lib/lib/select_interface.d.ts +0 -1
  322. package/lib/lib/select_keyboard_layout.d.ts +0 -4
  323. package/lib/lib/select_keyboard_model.d.ts +0 -4
  324. package/lib/lib/select_keyboard_option.d.ts +0 -4
  325. package/lib/lib/select_keyboard_variant.d.ts +0 -4
  326. package/lib/lib/select_languages.d.ts +0 -1
  327. package/lib/lib/select_regions.d.ts +0 -1
  328. package/lib/lib/select_user_swap_choice.d.ts +0 -1
  329. package/lib/lib/select_zones.d.ts +0 -1
  330. package/lib/lib/utils.d.ts +0 -43
@@ -1,24 +0,0 @@
1
- export interface IEggsConfig {
2
- version: string;
3
- snapshot_dir: string;
4
- snapshot_basename: string;
5
- snapshot_prefix: string;
6
- snapshot_excludes: string;
7
- user_opt: string;
8
- user_opt_passwd: string;
9
- root_passwd: string;
10
- theme: string;
11
- force_installer: boolean;
12
- make_efi: boolean;
13
- make_md5sum: boolean;
14
- make_isohybrid: boolean;
15
- compression: string;
16
- ssh_pass: boolean;
17
- timezone: string;
18
- locales_default: string;
19
- locales: string[];
20
- pmount_fixed: boolean;
21
- machine_id: string;
22
- vmlinuz: string;
23
- initrd_img: string;
24
- }
@@ -1,4 +0,0 @@
1
- export interface IExec {
2
- code: number;
3
- data: string;
4
- }
@@ -1,6 +0,0 @@
1
- export interface IInitrd {
2
- cryptoroot: boolean;
3
- crypttab: boolean;
4
- resume: boolean;
5
- zz_resume_auto: boolean;
6
- }
@@ -1,9 +0,0 @@
1
- export interface IInstall {
2
- distroTemplate: boolean;
3
- efi: boolean;
4
- calamares: boolean;
5
- configurationInstall: boolean;
6
- configurationRefresh: boolean;
7
- prerequisites: boolean;
8
- needApt: boolean;
9
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * name = 'calamares' oppure 'krill'
3
- * configuration = '/etc/calamares/' o '/etc/penguins-eggs.d/krill/'
4
- * modules = configuration + 'modules/'
5
- * modulesMultiarch = '/usr/lib/' + arch-linux-gnu + '/' + installer + '/'
6
- *
7
- * template = '/etc/penguins-eggs/' + .distro.codenameLikeId + '/' + installer + '/'
8
- * templateModules = template + '/modules/'
9
- * templateMultiarch = template + installer + '-modules/'
10
- */
11
- export interface IInstaller {
12
- name: string;
13
- configuration: string;
14
- modules: string;
15
- multiarch: string;
16
- multiarchModules: string;
17
- template: string;
18
- templateModules: string;
19
- templateMultiarch: string;
20
- }
@@ -1,26 +0,0 @@
1
- export interface IKrillConfig {
2
- language: string;
3
- region: string;
4
- zone: string;
5
- keyboardModel: string;
6
- keyboardLayout: string;
7
- keyboardVariant: string;
8
- keyboardOption: string;
9
- installationDevice: string;
10
- installationMode: string;
11
- filesystemType: string;
12
- userSwapChoice: string;
13
- name: string;
14
- fullname: string;
15
- password: string;
16
- rootPassword: string;
17
- autologin: boolean;
18
- hostname: string;
19
- iface: string;
20
- addressType: string;
21
- address: string;
22
- netmask: string;
23
- gateway: string;
24
- domain: string;
25
- dns: string;
26
- }
@@ -1,35 +0,0 @@
1
- export interface IWelcome {
2
- language: string;
3
- }
4
- export interface ILocation {
5
- language: string;
6
- region: string;
7
- zone: string;
8
- }
9
- export interface IKeyboard {
10
- keyboardModel: string;
11
- keyboardLayout: string;
12
- keyboardVariant: string;
13
- keyboardOption: string;
14
- }
15
- export interface IPartitions {
16
- installationDevice: string;
17
- installationMode: string;
18
- filesystemType: string;
19
- userSwapChoice: string;
20
- }
21
- export interface IUsers {
22
- name: string;
23
- fullname: string;
24
- password: string;
25
- rootPassword: string;
26
- autologin: boolean;
27
- hostname: string;
28
- }
29
- export interface ICalamaresModule {
30
- type: string;
31
- name: string;
32
- interface: string;
33
- command: string;
34
- timeout: number;
35
- }
@@ -1,36 +0,0 @@
1
- export interface IRepos {
2
- name: string;
3
- key: string;
4
- lines: string[];
5
- }
6
- export interface IMateria {
7
- name: string;
8
- author: string;
9
- description: string;
10
- release: string;
11
- distributions: string[];
12
- sequence: {
13
- repositories: {
14
- sources_list: string[];
15
- sources_list_d: string[];
16
- update: boolean;
17
- upgrade: boolean;
18
- };
19
- preinst: string[];
20
- dependencies: string[];
21
- packages: string[];
22
- packages_no_install_recommends: string[];
23
- try_packages: string[];
24
- try_packages_no_install_recommends: string[];
25
- debs: boolean;
26
- packages_python: string[];
27
- accessories: string[];
28
- try_accessories: string[];
29
- };
30
- customize: {
31
- dirs: boolean;
32
- hostname: boolean;
33
- scripts: string[];
34
- };
35
- reboot: boolean;
36
- }
@@ -1,9 +0,0 @@
1
- export interface INet {
2
- iface: string;
3
- addressType: string;
4
- address: string;
5
- netmask: string;
6
- gateway: string;
7
- domain: string;
8
- dns: string[];
9
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * calamares module packages
3
- */
4
- export interface IPackages {
5
- backend: string;
6
- operations: {
7
- remove: string[];
8
- try_install: string[];
9
- };
10
- }
@@ -1,9 +0,0 @@
1
- export declare type IPartitions = {
2
- efiSystemPartition: string;
3
- userSwapChoices: string[];
4
- drawNestedPartitions: boolean;
5
- alwaysShowPartitionLabels: boolean;
6
- initialPartitioningChoice: string;
7
- initialSwapChoice: string;
8
- defaultFileSystemType: string;
9
- };
@@ -1,14 +0,0 @@
1
- export interface IRemix {
2
- name: string;
3
- fullname: string;
4
- branding: string;
5
- versionName: string;
6
- versionNumber: string;
7
- kernel: string;
8
- pathHome: string;
9
- lowerdir: string;
10
- upperdir: string;
11
- workdir: string;
12
- merged: string;
13
- pathIso: string;
14
- }
@@ -1,10 +0,0 @@
1
- export interface ISettings {
2
- 'modules-search': string[];
3
- sequence: {
4
- show: string[];
5
- exec: string[];
6
- };
7
- branding: string;
8
- 'prompt-install': boolean;
9
- 'dont-chroot': boolean;
10
- }
@@ -1,7 +0,0 @@
1
- export interface IUser {
2
- name: string;
3
- fullname: string;
4
- password: string;
5
- rootpassword: string;
6
- hostname: string;
7
- }
@@ -1,8 +0,0 @@
1
- export interface IWorkDir {
2
- path: string;
3
- pathIso: string;
4
- lowerdir: string;
5
- upperdir: string;
6
- workdir: string;
7
- merged: string;
8
- }
@@ -1,17 +0,0 @@
1
- export interface IXkbModel {
2
- code: string;
3
- description: string;
4
- }
5
- export interface IXkbLayout {
6
- code: string;
7
- description: string;
8
- }
9
- export interface IXkbVariant {
10
- code: string;
11
- lang: string;
12
- description: string;
13
- }
14
- export interface IXkbOption {
15
- code: string;
16
- description: string;
17
- }
@@ -1,17 +0,0 @@
1
- export { IAddons, IMyAddons } from './i-addons';
2
- export { IDevice, IDevices } from './i-devices';
3
- export { IRemix } from './i-remix';
4
- export { IUser } from './i-user';
5
- export { IApp } from './i-app';
6
- export { IDistro } from './i-distro';
7
- export { INet } from './i-net';
8
- export { IInitrd } from './i-initrd';
9
- export { IWorkDir } from './i-workdir';
10
- export { IInstall } from './i-install';
11
- export { IExec } from './i-exec';
12
- export { IInstaller } from './i-installer';
13
- export { IEggsConfig } from './i-eggs-config';
14
- export { IBranding } from './i-branding';
15
- export { ISettings } from './i-settings';
16
- export { IPartitions } from './i-partitions';
17
- export { IMateria, IRepos } from './i-materia';
@@ -1,60 +0,0 @@
1
- /**
2
- * penguins-eggs: krill
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- */
8
- import { IKrillConfig } from '../interfaces/i-krill-config';
9
- import Locales from '../classes/locales';
10
- import Keyboards from '../classes/keyboards';
11
- import { INet } from '../interfaces';
12
- import { IWelcome, ILocation, IKeyboard, IPartitions, IUsers } from '../interfaces/i-krill';
13
- /**
14
- *
15
- */
16
- export default class Krill {
17
- krillConfig: IKrillConfig;
18
- locales: Locales;
19
- keyboards: Keyboards;
20
- /**
21
- * @param cryped
22
- */
23
- prepare(unattended?: boolean, ip?: boolean, cryped?: boolean, pve?: boolean, verbose?: boolean): Promise<void>;
24
- /**
25
- * WELCOME
26
- */
27
- welcome(): Promise<IWelcome>;
28
- /**
29
- * LOCATION
30
- */
31
- location(language: string): Promise<ILocation>;
32
- /**
33
- * KEYBOARD
34
- */
35
- keyboard(): Promise<IKeyboard>;
36
- /**
37
- * PARTITIONS
38
- */
39
- partitions(crypted?: boolean, pve?: boolean): Promise<IPartitions>;
40
- /**
41
- * USERS
42
- */
43
- users(): Promise<IUsers>;
44
- /**
45
- * Network
46
- */
47
- network(): Promise<INet>;
48
- /**
49
- * SUMMARY
50
- */
51
- summary(location: ILocation, keyboard: IKeyboard, partitions: IPartitions, users: IUsers, unattended?: boolean): Promise<void>;
52
- /**
53
- * INSTALL
54
- */
55
- install(location: ILocation, keyboard: IKeyboard, partitions: IPartitions, users: IUsers, network: INet, unattended?: boolean, verbose?: boolean): Promise<void>;
56
- /**
57
- * return true if pv exist
58
- */
59
- private pvExist;
60
- }
@@ -1,150 +0,0 @@
1
- /**
2
- * penguins-eggs: krill_sequence
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- */
8
- /**
9
- * Note: I'm using REACT here to get a TUI,
10
- * via ink library https://github.com/vadimdemedes/ink
11
- */
12
- /**
13
- * Ideally, I want to respect calamares way, remplementing the same (SEMPLIFIED) steps for CLI
14
- *
15
- * Phase 2 - install.
16
- *
17
- * - partition: partitions
18
- * - mount: mountFs, mountVfs
19
- * - unpackfs: unpackfs
20
- * - _restore: eggs syncfrom --rootdir /tmp/calamares-krill-root/
21
- * - sources-yolk: execCalamaresModule('sources-yolk')
22
- * - machineid: machineid
23
- * - fstab: fstab
24
- * - locale locale
25
- * - keyboard: keyboard
26
- * - localecfg: localecfg
27
- * - users: users
28
- * - displaymanager: autologin
29
- * - networkcfg: networkcfg
30
- * - hwclock:
31
- * - services-systemd:
32
- * - bootloader-config: execCalamaresModule('bootloader-config')
33
- * - grubcfg: grubcfg
34
- * - bootloader: bootloaded
35
- * - packages: removeInstaller
36
- * - luksbootkeyfile:
37
- * - plymouthcfg;
38
- * - initramfscfg: initramfscfg
39
- * - initramfs: initramfs
40
- * - removeuser: removeuser
41
- * - sources-yolk-unmount: execCalamaresModule('sources-yolk-unmount')
42
- * - umount: umountVfs, this.umountFs
43
- */
44
- import { IRemix, IDistro, INet } from '../interfaces';
45
- import Settings from '../classes/settings';
46
- import { IInstaller, IDevices } from '../interfaces';
47
- import { ILocation, IKeyboard, IPartitions, IUsers } from '../interfaces/i-krill';
48
- import partition from './modules/partition';
49
- import { mountFs, umountFs } from './modules/mount-fs';
50
- import { mountVfs, umountVfs } from './modules/mount-vfs';
51
- import unpackfs from './modules/unpackfs';
52
- import machineId from './modules/machine-id';
53
- import fstab from './modules/fstab';
54
- import locale from './modules/locale';
55
- import setKeyboard from './modules/set-keyboard';
56
- import localeCfg from './modules/locale-cfg';
57
- import addUser from './modules/add-user';
58
- import changePassword from './modules/change-password';
59
- import networkCfg from './modules/network-cfg';
60
- import bootloaderConfig from './modules/bootloader-config';
61
- import bootloaderConfigArch from './modules/bootloader-config-arch';
62
- import bootloaderConfigUbuntu from './modules/bootloader-config-ubuntu';
63
- import grubcfg from './modules/grubcfg';
64
- import bootloader from './modules/bootloader';
65
- import packages from './modules/packages';
66
- import removeInstallerLink from './modules/remove-installer-link';
67
- import initramfsCfg from './modules/initramfs-cfg';
68
- import initramfs from './modules/initramfs';
69
- import delLiveUser from './modules/del-live-user';
70
- import setTimezone from './modules/set-timezone';
71
- import umount from './modules/umount';
72
- import mkfs from './modules/mkfs';
73
- import hostname from './modules/hostname';
74
- /**
75
- * hatching: installazione o cova!!!
76
- */
77
- export default class Sequence {
78
- partition: typeof partition;
79
- mountFs: typeof mountFs;
80
- mountVfs: typeof mountVfs;
81
- unpackfs: typeof unpackfs;
82
- machineId: typeof machineId;
83
- fstab: typeof fstab;
84
- locale: typeof locale;
85
- setKeyboard: typeof setKeyboard;
86
- localeCfg: typeof localeCfg;
87
- addUser: typeof addUser;
88
- changePassword: typeof changePassword;
89
- networkCfg: typeof networkCfg;
90
- bootloaderConfig: typeof bootloaderConfig;
91
- bootloaderConfigArch: typeof bootloaderConfigArch;
92
- bootloaderConfigUbuntu: typeof bootloaderConfigUbuntu;
93
- grubcfg: typeof grubcfg;
94
- bootloader: typeof bootloader;
95
- packages: typeof packages;
96
- removeInstallerLink: typeof removeInstallerLink;
97
- initramfsCfg: typeof initramfsCfg;
98
- initramfs: typeof initramfs;
99
- delLiveUser: typeof delLiveUser;
100
- umountFs: typeof umountFs;
101
- umountVfs: typeof umountVfs;
102
- setTimezone: typeof setTimezone;
103
- umount: typeof umount;
104
- mkfs: typeof mkfs;
105
- hostname: typeof hostname;
106
- installer: IInstaller;
107
- installTarget: string;
108
- verbose: boolean;
109
- echo: {};
110
- efi: boolean;
111
- devices: IDevices;
112
- users: IUsers;
113
- network: INet;
114
- partitions: IPartitions;
115
- language: string;
116
- region: string;
117
- zone: string;
118
- keyboardModel: string;
119
- keyboardLayout: string;
120
- keyboardVariant: string;
121
- toNull: string;
122
- settings: Settings;
123
- remix: IRemix;
124
- distro: IDistro;
125
- luksName: string;
126
- luksFile: string;
127
- luksDevice: string;
128
- luksMountpoint: string;
129
- personalFile: string;
130
- unattended: boolean;
131
- /**
132
- * constructor
133
- */
134
- constructor(location: ILocation, keyboard: IKeyboard, partitions: IPartitions, users: IUsers, network: INet);
135
- /**
136
- * install
137
- * @param verbose
138
- * @param umount
139
- * @returns
140
- */
141
- install(unattended?: boolean, verbose?: boolean): Promise<void>;
142
- /**
143
- *
144
- */
145
- execCalamaresModule(name: string): Promise<void>;
146
- /**
147
- * only show the result
148
- */
149
- finished(): Promise<void>;
150
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- *
7
- * @param this
8
- * @param name
9
- * @param password
10
- * @param fullName
11
- * @param roomNumber
12
- * @param workPhone
13
- * @param homePhone
14
- */
15
- export default function addUser(this: Sequence, name?: string, password?: string, fullName?: string, roomNumber?: string, workPhone?: string, homePhone?: string): Promise<void>;
@@ -1,9 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- *
7
- * @param this
8
- */
9
- export default function bootloaderConfigArch(this: Sequence): Promise<void>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- /**
3
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /**
7
- *
8
- * @param this
9
- */
10
- async function bootloaderConfigArch() {
11
- console.log('bootloader Arch to do!');
12
- }
13
- exports.default = bootloaderConfigArch;
@@ -1,9 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- *
7
- * @param this
8
- */
9
- export default function bootloaderConfigUbuntu(this: Sequence): Promise<void>;
@@ -1,9 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- *
7
- * @param this
8
- */
9
- export default function bootloaderConfig(this: Sequence): Promise<void>;
@@ -1,10 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- * bootloader
7
- * @param target
8
- * @param options
9
- */
10
- export default function bootloader(this: Sequence): Promise<void>;
@@ -1,10 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- * changePassword
7
- * @param name
8
- * @param newPassword
9
- */
10
- export default function changePassword(this: Sequence, name?: string, newPassword?: string): Promise<void>;
@@ -1,9 +0,0 @@
1
- /**
2
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
- */
4
- import Sequence from '../krill-sequence';
5
- /**
6
- * delUser
7
- * va corretto con users.conf di calamares
8
- */
9
- export default function delLiveUser(this: Sequence): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module fstab
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
8
- */
9
- import Sequence from '../krill-sequence';
10
- /**
11
- * fstab()
12
- * @param devices
13
- */
14
- export default function fstab(this: Sequence, installDevice: string, crypted?: boolean): Promise<void>;
@@ -1,17 +0,0 @@
1
- /**
2
- * krill: module grubcfg
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
8
- */
9
- import Sequence from '../krill-sequence';
10
- /**
11
- * grubcfg
12
- * - open /etc/default/grub
13
- * - find GRUB_CMDLINE_LINUX_DEFAULT=
14
- * - replace with GRUB_CMDLINE_LINUX_DEFAULT=
15
- * 's/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT=/g'
16
- */
17
- export default function grubcfg(this: Sequence): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module hostname
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
8
- */
9
- import Sequence from '../krill-sequence';
10
- /**
11
- * hostname
12
- */
13
- export default function hostname(this: Sequence): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module initramfs-cfgs
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
8
- */
9
- import Sequence from '../krill-sequence';
10
- /**
11
- *
12
- * @param this
13
- */
14
- export default function initramfsCfg(this: Sequence, installDevice: string): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module initramfs
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
8
- */
9
- import Sequence from '../krill-sequence';
10
- /**
11
- * initramfs()
12
- */
13
- export default function initramfs(this: Sequence): Promise<void>;