penguins-eggs 9.2.5 → 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 (334) hide show
  1. package/.oclif.manifest.json +1 -0
  2. package/README.md +34 -30
  3. package/conf/distros/jessie/krill/settings.yml +48 -9
  4. package/conf/distros/kinetic/README.md +41 -0
  5. package/conf/tools.yaml +1 -1
  6. package/{lib → dist}/classes/bleach.js +0 -0
  7. package/{lib → dist}/classes/compressors.js +0 -0
  8. package/{lib → dist}/classes/daddy.js +0 -0
  9. package/{lib → dist}/classes/distro.js +16 -30
  10. package/{lib → dist}/classes/family/archlinux.js +0 -0
  11. package/{lib → dist}/classes/family/debian.js +0 -0
  12. package/{lib → dist}/classes/family/fedora.js +0 -0
  13. package/{lib → dist}/classes/family/suse.js +0 -0
  14. package/{lib → dist}/classes/incubation/branding.js +0 -0
  15. package/{lib → dist}/classes/incubation/distros/bionic.js +0 -0
  16. package/{lib → dist}/classes/incubation/distros/buster.js +0 -0
  17. package/{lib → dist}/classes/incubation/distros/focal.js +0 -0
  18. package/{lib → dist}/classes/incubation/distros/jessie.js +1 -1
  19. package/{lib → dist}/classes/incubation/distros/rolling.js +0 -0
  20. package/{lib → dist}/classes/incubation/fisherman-helper/displaymanager.js +0 -0
  21. package/{lib → dist}/classes/incubation/fisherman-helper/packages.js +0 -0
  22. package/{lib → dist}/classes/incubation/fisherman.js +1 -1
  23. package/{lib → dist}/classes/incubation/incubator.js +9 -19
  24. package/{lib → dist}/classes/incubation/installer.js +0 -0
  25. package/{lib → dist}/classes/initrd.js +0 -0
  26. package/{lib → dist}/classes/keyboards.js +0 -0
  27. package/{lib → dist}/classes/locales.js +0 -0
  28. package/{lib → dist}/classes/n8.js +0 -0
  29. package/dist/classes/network.js +99 -0
  30. package/{lib → dist}/classes/ovary.js +0 -0
  31. package/{lib → dist}/classes/pacman.js +16 -1
  32. package/{lib → dist}/classes/pve-live.js +0 -0
  33. package/dist/classes/pxe.js +337 -0
  34. package/{lib → dist}/classes/settings.js +0 -0
  35. package/{lib → dist}/classes/sources_list.js +0 -0
  36. package/{lib → dist}/classes/systemctl.js +0 -0
  37. package/{lib → dist}/classes/tailor.js +0 -0
  38. package/{lib → dist}/classes/tools.js +0 -0
  39. package/{lib → dist}/classes/users.js +0 -0
  40. package/{lib → dist}/classes/utils.js +82 -17
  41. package/{lib → dist}/classes/xdg.js +24 -26
  42. package/{lib → dist}/classes/yolk.js +0 -0
  43. package/{lib → dist}/commands/adapt.js +0 -0
  44. package/{lib → dist}/commands/analyze.js +0 -0
  45. package/{lib → dist}/commands/calamares.js +0 -0
  46. package/{lib → dist}/commands/config.js +0 -0
  47. package/dist/commands/cuckoo.js +63 -0
  48. package/{lib → dist}/commands/dad.js +0 -0
  49. package/{lib → dist}/commands/export/deb.js +0 -0
  50. package/{lib → dist}/commands/export/docs.js +0 -0
  51. package/{lib → dist}/commands/export/iso.js +0 -0
  52. package/{lib → dist}/commands/install.js +27 -4
  53. package/{lib → dist}/commands/kill.js +0 -0
  54. package/{lib → dist}/commands/mom.js +0 -0
  55. package/{lib → dist}/commands/produce.js +0 -0
  56. package/{lib → dist}/commands/status.js +0 -0
  57. package/{lib → dist}/commands/syncfrom.js +0 -0
  58. package/{lib → dist}/commands/syncto.js +0 -0
  59. package/{lib → dist}/commands/tools/clean.js +0 -0
  60. package/{lib → dist}/commands/tools/skel.js +0 -0
  61. package/{lib → dist}/commands/tools/stat.js +0 -0
  62. package/{lib → dist}/commands/tools/yolk.js +0 -0
  63. package/{lib → dist}/commands/update.js +0 -0
  64. package/{lib → dist}/commands/wardrobe/get.js +0 -0
  65. package/{lib → dist}/commands/wardrobe/ironing.js +0 -0
  66. package/{lib → dist}/commands/wardrobe/list.js +0 -0
  67. package/{lib → dist}/commands/wardrobe/show.js +0 -0
  68. package/{lib → dist}/commands/wardrobe/wear.js +0 -0
  69. package/{lib → dist}/components/elements/information.js +0 -0
  70. package/{lib → dist}/components/elements/steps.js +0 -0
  71. package/{lib → dist}/components/elements/title.js +0 -0
  72. package/{lib → dist}/components/finished.js +0 -0
  73. package/{lib → dist}/components/install.js +0 -0
  74. package/{lib → dist}/components/keyboard.js +0 -0
  75. package/{lib → dist}/components/location.js +0 -0
  76. package/{lib → dist}/components/network.js +0 -0
  77. package/{lib → dist}/components/partitions.js +0 -0
  78. package/{lib → dist}/components/summary.js +2 -2
  79. package/{lib → dist}/components/users.js +0 -0
  80. package/{lib → dist}/components/welcome.js +0 -0
  81. package/dist/dhcpd/dhcpd.js +222 -0
  82. package/dist/dhcpd/index.js +7 -0
  83. package/dist/dhcpd/packet/converters.js +377 -0
  84. package/dist/dhcpd/packet/options.js +2 -0
  85. package/dist/dhcpd/packet/types.js +2 -0
  86. package/dist/dhcpd/packet.js +251 -0
  87. package/dist/dhcpd/proxy.js +152 -0
  88. package/dist/dhcpd/server.js +152 -0
  89. package/dist/dhcpd/sprintf.js +170 -0
  90. package/dist/dhcpd/utils.js +190 -0
  91. package/{lib → dist}/index.js +0 -0
  92. package/{lib → dist}/interfaces/i-addons.js +0 -0
  93. package/{lib → dist}/interfaces/i-analyze.js +0 -0
  94. package/{lib → dist}/interfaces/i-app.js +0 -0
  95. package/{lib → dist}/interfaces/i-branding.js +0 -0
  96. package/{lib → dist}/interfaces/i-config-tools.js +0 -0
  97. package/{lib → dist}/interfaces/i-devices.js +0 -0
  98. package/{lib → dist}/interfaces/i-distro.js +0 -0
  99. package/{lib → dist}/interfaces/i-drive-list.js +0 -0
  100. package/{lib → dist}/interfaces/i-eggs-config.js +0 -0
  101. package/{lib → dist}/interfaces/i-exec.js +0 -0
  102. package/{lib → dist}/interfaces/i-initrd.js +0 -0
  103. package/{lib → dist}/interfaces/i-install.js +0 -0
  104. package/{lib → dist}/interfaces/i-installer.js +0 -0
  105. package/{lib → dist}/interfaces/i-krill-config.js +0 -0
  106. package/{lib → dist}/interfaces/i-krill.js +0 -0
  107. package/{lib → dist}/interfaces/i-materia.js +0 -0
  108. package/{lib → dist}/interfaces/i-net.js +0 -0
  109. package/{lib → dist}/interfaces/i-packages.js +0 -0
  110. package/{lib → dist}/interfaces/i-partitions.js +0 -0
  111. package/{lib/interfaces/i-remix.js → dist/interfaces/i-pxe-options.js} +0 -0
  112. package/{lib/interfaces/i-settings.js → dist/interfaces/i-remix.js} +0 -0
  113. package/{lib/interfaces/i-user.js → dist/interfaces/i-settings.js} +0 -0
  114. package/{lib/interfaces/i-workdir.js → dist/interfaces/i-user.js} +0 -0
  115. package/{lib/interfaces/i-xkb-model.js → dist/interfaces/i-workdir.js} +0 -0
  116. package/{lib/interfaces/index.js → dist/interfaces/i-xkb-model.js} +0 -0
  117. package/dist/interfaces/index.js +2 -0
  118. package/{lib → dist}/krill/krill-prepare.js +25 -6
  119. package/{lib → dist}/krill/krill-sequence.js +69 -77
  120. package/{lib → dist}/krill/modules/add-user.js +0 -0
  121. package/{lib → dist}/krill/modules/bootloader-config-ubuntu.js +0 -0
  122. package/{lib → dist}/krill/modules/bootloader-config.js +1 -1
  123. package/{lib → dist}/krill/modules/bootloader.js +0 -5
  124. package/{lib → dist}/krill/modules/change-password.js +0 -0
  125. package/{lib → dist}/krill/modules/del-live-user.js +0 -0
  126. package/{lib → dist}/krill/modules/fstab.js +0 -0
  127. package/{lib → dist}/krill/modules/grubcfg.js +0 -0
  128. package/dist/krill/modules/hostname.js +48 -0
  129. package/{lib → dist}/krill/modules/initramfs-cfg.js +0 -0
  130. package/{lib → dist}/krill/modules/initramfs.js +0 -0
  131. package/{lib → dist}/krill/modules/locale-cfg.js +0 -0
  132. package/{lib → dist}/krill/modules/locale.js +1 -1
  133. package/{lib/krill/modules/set-keyboard.js → dist/krill/modules/m-keyboard.js} +12 -4
  134. package/{lib/krill/modules/set-timezone.js → dist/krill/modules/m-timezone.js} +2 -2
  135. package/{lib → dist}/krill/modules/machine-id.js +0 -0
  136. package/{lib → dist}/krill/modules/mkfs.js +0 -0
  137. package/{lib → dist}/krill/modules/mount-fs.js +0 -0
  138. package/{lib → dist}/krill/modules/mount-vfs.js +0 -0
  139. package/{lib → dist}/krill/modules/network-cfg.js +0 -0
  140. package/{lib → dist}/krill/modules/packages.js +0 -0
  141. package/{lib → dist}/krill/modules/partition.js +25 -14
  142. package/{lib → dist}/krill/modules/remove-installer-link.js +0 -0
  143. package/{lib → dist}/krill/modules/umount.js +0 -0
  144. package/{lib → dist}/krill/modules/unpackfs.js +0 -0
  145. package/{lib → dist}/lib/cli-autologin.js +1 -1
  146. package/{lib → dist}/lib/dependencies.js +0 -0
  147. package/{lib → dist}/lib/get_address.js +0 -0
  148. package/{lib → dist}/lib/get_dns.js +0 -0
  149. package/{lib → dist}/lib/get_domain.js +0 -0
  150. package/{lib → dist}/lib/get_gateway.js +0 -0
  151. package/{lib → dist}/lib/get_hostname.js +0 -0
  152. package/{lib → dist}/lib/get_netmask.js +0 -0
  153. package/{lib → dist}/lib/get_password.js +0 -0
  154. package/{lib → dist}/lib/get_root_password.js +0 -0
  155. package/{lib → dist}/lib/get_userfullname.js +0 -0
  156. package/{lib → dist}/lib/get_username.js +0 -0
  157. package/{lib → dist}/lib/select_address_type.js +0 -0
  158. package/{lib → dist}/lib/select_filesystem_type.js +0 -0
  159. package/{lib → dist}/lib/select_installation_device.js +0 -0
  160. package/{lib → dist}/lib/select_installation_mode.js +0 -0
  161. package/{lib → dist}/lib/select_interface.js +0 -0
  162. package/{lib → dist}/lib/select_keyboard_layout.js +0 -0
  163. package/{lib → dist}/lib/select_keyboard_model.js +0 -0
  164. package/{lib → dist}/lib/select_keyboard_option.js +0 -0
  165. package/{lib → dist}/lib/select_keyboard_variant.js +0 -0
  166. package/{lib → dist}/lib/select_languages.js +0 -0
  167. package/{lib → dist}/lib/select_regions.js +0 -0
  168. package/{lib → dist}/lib/select_user_swap_choice.js +0 -0
  169. package/{lib → dist}/lib/select_zones.js +0 -0
  170. package/{lib → dist}/lib/utils.js +1 -2
  171. package/ipxe/ipxe.efi +0 -0
  172. package/package.json +20 -17
  173. package/scripts/_eggs +11 -7
  174. package/scripts/eggs.bash +2 -2
  175. package/lib/classes/bleach.d.ts +0 -40
  176. package/lib/classes/compressors.d.ts +0 -24
  177. package/lib/classes/daddy.d.ts +0 -11
  178. package/lib/classes/distro.d.ts +0 -31
  179. package/lib/classes/family/archlinux.d.ts +0 -69
  180. package/lib/classes/family/debian.d.ts +0 -68
  181. package/lib/classes/family/fedora.d.ts +0 -63
  182. package/lib/classes/family/suse.d.ts +0 -63
  183. package/lib/classes/incubation/branding.d.ts +0 -8
  184. package/lib/classes/incubation/distros/bionic.d.ts +0 -29
  185. package/lib/classes/incubation/distros/buster.d.ts +0 -31
  186. package/lib/classes/incubation/distros/focal.d.ts +0 -29
  187. package/lib/classes/incubation/distros/jessie.d.ts +0 -32
  188. package/lib/classes/incubation/distros/rolling.d.ts +0 -31
  189. package/lib/classes/incubation/fisherman-helper/displaymanager.d.ts +0 -7
  190. package/lib/classes/incubation/fisherman-helper/packages.d.ts +0 -19
  191. package/lib/classes/incubation/fisherman.d.ts +0 -77
  192. package/lib/classes/incubation/incubator.d.ts +0 -35
  193. package/lib/classes/incubation/installer.d.ts +0 -15
  194. package/lib/classes/initrd.d.ts +0 -42
  195. package/lib/classes/keyboards.d.ts +0 -43
  196. package/lib/classes/locales.d.ts +0 -14
  197. package/lib/classes/n8.d.ts +0 -16
  198. package/lib/classes/ovary.d.ts +0 -179
  199. package/lib/classes/pacman.d.ts +0 -164
  200. package/lib/classes/pve-live.d.ts +0 -42
  201. package/lib/classes/pxe.d.ts +0 -64
  202. package/lib/classes/pxe.js +0 -352
  203. package/lib/classes/settings.d.ts +0 -55
  204. package/lib/classes/sources_list.d.ts +0 -27
  205. package/lib/classes/systemctl.d.ts +0 -46
  206. package/lib/classes/tailor.d.ts +0 -43
  207. package/lib/classes/tools.d.ts +0 -29
  208. package/lib/classes/users.d.ts +0 -21
  209. package/lib/classes/utils.d.ts +0 -299
  210. package/lib/classes/xdg.d.ts +0 -44
  211. package/lib/classes/yolk.d.ts +0 -26
  212. package/lib/commands/adapt.d.ts +0 -9
  213. package/lib/commands/analyze.d.ts +0 -25
  214. package/lib/commands/calamares.d.ts +0 -26
  215. package/lib/commands/config.d.ts +0 -34
  216. package/lib/commands/cuckoo.d.ts +0 -24
  217. package/lib/commands/cuckoo.js +0 -70
  218. package/lib/commands/dad.d.ts +0 -17
  219. package/lib/commands/export/deb.d.ts +0 -14
  220. package/lib/commands/export/docs.d.ts +0 -8
  221. package/lib/commands/export/iso.d.ts +0 -13
  222. package/lib/commands/install.d.ts +0 -25
  223. package/lib/commands/kill.d.ts +0 -20
  224. package/lib/commands/mom.d.ts +0 -14
  225. package/lib/commands/produce.d.ts +0 -28
  226. package/lib/commands/status.d.ts +0 -18
  227. package/lib/commands/syncfrom.d.ts +0 -42
  228. package/lib/commands/syncto.d.ts +0 -67
  229. package/lib/commands/tools/clean.d.ts +0 -15
  230. package/lib/commands/tools/skel.d.ts +0 -17
  231. package/lib/commands/tools/stat.d.ts +0 -14
  232. package/lib/commands/tools/yolk.d.ts +0 -23
  233. package/lib/commands/update.d.ts +0 -46
  234. package/lib/commands/wardrobe/get.d.ts +0 -17
  235. package/lib/commands/wardrobe/ironing.d.ts +0 -18
  236. package/lib/commands/wardrobe/list.d.ts +0 -17
  237. package/lib/commands/wardrobe/show.d.ts +0 -19
  238. package/lib/commands/wardrobe/wear.d.ts +0 -21
  239. package/lib/components/elements/information.d.ts +0 -4
  240. package/lib/components/elements/steps.d.ts +0 -6
  241. package/lib/components/elements/title.d.ts +0 -4
  242. package/lib/components/finished.d.ts +0 -8
  243. package/lib/components/install.d.ts +0 -8
  244. package/lib/components/keyboard.d.ts +0 -12
  245. package/lib/components/location.d.ts +0 -12
  246. package/lib/components/network.d.ts +0 -12
  247. package/lib/components/partitions.d.ts +0 -9
  248. package/lib/components/summary.d.ts +0 -16
  249. package/lib/components/users.d.ts +0 -20
  250. package/lib/components/welcome.d.ts +0 -6
  251. package/lib/index.d.ts +0 -1
  252. package/lib/interfaces/i-addons.d.ts +0 -8
  253. package/lib/interfaces/i-analyze.d.ts +0 -13
  254. package/lib/interfaces/i-app.d.ts +0 -7
  255. package/lib/interfaces/i-branding.d.ts +0 -29
  256. package/lib/interfaces/i-config-tools.d.ts +0 -11
  257. package/lib/interfaces/i-devices.d.ts +0 -13
  258. package/lib/interfaces/i-distro.d.ts +0 -19
  259. package/lib/interfaces/i-drive-list.d.ts +0 -29
  260. package/lib/interfaces/i-eggs-config.d.ts +0 -24
  261. package/lib/interfaces/i-exec.d.ts +0 -4
  262. package/lib/interfaces/i-initrd.d.ts +0 -6
  263. package/lib/interfaces/i-install.d.ts +0 -9
  264. package/lib/interfaces/i-installer.d.ts +0 -20
  265. package/lib/interfaces/i-krill-config.d.ts +0 -26
  266. package/lib/interfaces/i-krill.d.ts +0 -35
  267. package/lib/interfaces/i-materia.d.ts +0 -36
  268. package/lib/interfaces/i-net.d.ts +0 -9
  269. package/lib/interfaces/i-packages.d.ts +0 -10
  270. package/lib/interfaces/i-partitions.d.ts +0 -9
  271. package/lib/interfaces/i-remix.d.ts +0 -14
  272. package/lib/interfaces/i-settings.d.ts +0 -10
  273. package/lib/interfaces/i-user.d.ts +0 -7
  274. package/lib/interfaces/i-workdir.d.ts +0 -8
  275. package/lib/interfaces/i-xkb-model.d.ts +0 -17
  276. package/lib/interfaces/index.d.ts +0 -17
  277. package/lib/krill/krill-prepare.d.ts +0 -60
  278. package/lib/krill/krill-sequence.d.ts +0 -151
  279. package/lib/krill/modules/add-user.d.ts +0 -15
  280. package/lib/krill/modules/bootloader-config-arch.d.ts +0 -9
  281. package/lib/krill/modules/bootloader-config-arch.js +0 -13
  282. package/lib/krill/modules/bootloader-config-ubuntu.d.ts +0 -9
  283. package/lib/krill/modules/bootloader-config.d.ts +0 -9
  284. package/lib/krill/modules/bootloader.d.ts +0 -10
  285. package/lib/krill/modules/change-password.d.ts +0 -10
  286. package/lib/krill/modules/del-live-user.d.ts +0 -9
  287. package/lib/krill/modules/fstab.d.ts +0 -14
  288. package/lib/krill/modules/grubcfg.d.ts +0 -17
  289. package/lib/krill/modules/hostname.d.ts +0 -13
  290. package/lib/krill/modules/hostname.js +0 -18
  291. package/lib/krill/modules/hosts.d.ts +0 -14
  292. package/lib/krill/modules/hosts.js +0 -35
  293. package/lib/krill/modules/initramfs-cfg.d.ts +0 -14
  294. package/lib/krill/modules/initramfs.d.ts +0 -13
  295. package/lib/krill/modules/locale-cfg.d.ts +0 -10
  296. package/lib/krill/modules/locale.d.ts +0 -13
  297. package/lib/krill/modules/machine-id.d.ts +0 -15
  298. package/lib/krill/modules/mkfs.d.ts +0 -13
  299. package/lib/krill/modules/mount-fs.d.ts +0 -17
  300. package/lib/krill/modules/mount-vfs.d.ts +0 -17
  301. package/lib/krill/modules/network-cfg.d.ts +0 -19
  302. package/lib/krill/modules/packages.d.ts +0 -14
  303. package/lib/krill/modules/partition.d.ts +0 -20
  304. package/lib/krill/modules/remove-installer-link.d.ts +0 -13
  305. package/lib/krill/modules/set-keyboard.d.ts +0 -10
  306. package/lib/krill/modules/set-timezone.d.ts +0 -14
  307. package/lib/krill/modules/umount.d.ts +0 -14
  308. package/lib/krill/modules/unpackfs.d.ts +0 -13
  309. package/lib/lib/cli-autologin.d.ts +0 -27
  310. package/lib/lib/dependencies.d.ts +0 -49
  311. package/lib/lib/get_address.d.ts +0 -1
  312. package/lib/lib/get_dns.d.ts +0 -1
  313. package/lib/lib/get_domain.d.ts +0 -1
  314. package/lib/lib/get_gateway.d.ts +0 -1
  315. package/lib/lib/get_hostname.d.ts +0 -1
  316. package/lib/lib/get_netmask.d.ts +0 -1
  317. package/lib/lib/get_password.d.ts +0 -1
  318. package/lib/lib/get_root_password.d.ts +0 -1
  319. package/lib/lib/get_userfullname.d.ts +0 -1
  320. package/lib/lib/get_username.d.ts +0 -1
  321. package/lib/lib/select_address_type.d.ts +0 -1
  322. package/lib/lib/select_filesystem_type.d.ts +0 -1
  323. package/lib/lib/select_installation_device.d.ts +0 -1
  324. package/lib/lib/select_installation_mode.d.ts +0 -1
  325. package/lib/lib/select_interface.d.ts +0 -1
  326. package/lib/lib/select_keyboard_layout.d.ts +0 -4
  327. package/lib/lib/select_keyboard_model.d.ts +0 -4
  328. package/lib/lib/select_keyboard_option.d.ts +0 -4
  329. package/lib/lib/select_keyboard_variant.d.ts +0 -4
  330. package/lib/lib/select_languages.d.ts +0 -1
  331. package/lib/lib/select_regions.d.ts +0 -1
  332. package/lib/lib/select_user_swap_choice.d.ts +0 -1
  333. package/lib/lib/select_zones.d.ts +0 -1
  334. package/lib/lib/utils.d.ts +0 -43
@@ -1,151 +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
- import hosts from './modules/hosts';
75
- /**
76
- * hatching: installazione o cova!!!
77
- */
78
- export default class Sequence {
79
- partition: typeof partition;
80
- mountFs: typeof mountFs;
81
- mountVfs: typeof mountVfs;
82
- unpackfs: typeof unpackfs;
83
- machineId: typeof machineId;
84
- fstab: typeof fstab;
85
- locale: typeof locale;
86
- setKeyboard: typeof setKeyboard;
87
- localeCfg: typeof localeCfg;
88
- addUser: typeof addUser;
89
- changePassword: typeof changePassword;
90
- networkCfg: typeof networkCfg;
91
- bootloaderConfig: typeof bootloaderConfig;
92
- bootloaderConfigArch: typeof bootloaderConfigArch;
93
- bootloaderConfigUbuntu: typeof bootloaderConfigUbuntu;
94
- grubcfg: typeof grubcfg;
95
- bootloader: typeof bootloader;
96
- packages: typeof packages;
97
- removeInstallerLink: typeof removeInstallerLink;
98
- initramfsCfg: typeof initramfsCfg;
99
- initramfs: typeof initramfs;
100
- delLiveUser: typeof delLiveUser;
101
- umountFs: typeof umountFs;
102
- umountVfs: typeof umountVfs;
103
- setTimezone: typeof setTimezone;
104
- umount: typeof umount;
105
- mkfs: typeof mkfs;
106
- hostname: typeof hostname;
107
- hosts: typeof hosts;
108
- installer: IInstaller;
109
- installTarget: string;
110
- verbose: boolean;
111
- echo: {};
112
- efi: boolean;
113
- devices: IDevices;
114
- users: IUsers;
115
- network: INet;
116
- partitions: IPartitions;
117
- language: string;
118
- region: string;
119
- zone: string;
120
- keyboardModel: string;
121
- keyboardLayout: string;
122
- keyboardVariant: string;
123
- toNull: string;
124
- settings: Settings;
125
- remix: IRemix;
126
- distro: IDistro;
127
- luksName: string;
128
- luksFile: string;
129
- luksDevice: string;
130
- luksMountpoint: string;
131
- personalFile: string;
132
- /**
133
- * constructor
134
- */
135
- constructor(location: ILocation, keyboard: IKeyboard, partitions: IPartitions, users: IUsers, network: INet);
136
- /**
137
- * install
138
- * @param verbose
139
- * @param umount
140
- * @returns
141
- */
142
- install(unattended?: boolean, verbose?: boolean): Promise<void>;
143
- /**
144
- *
145
- */
146
- execCalamaresModule(name: string): Promise<void>;
147
- /**
148
- * only show the result
149
- */
150
- finished(unattended?: boolean): Promise<void>;
151
- }
@@ -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,18 +0,0 @@
1
- "use strict";
2
- /**
3
- * krill: module hostname
4
- *
5
- * author: Piero Proietti
6
- * mail: piero.proietti@gmail.com
7
- *
8
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const utils_1 = require("../../lib/utils");
12
- /**
13
- * hostname
14
- */
15
- async function hostname() {
16
- await (0, utils_1.exec)(`echo ${this.installTarget + '/etc/hostname'} > ${this.users.hostname} `, this.echo);
17
- }
18
- exports.default = hostname;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module hosts
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
- * hosts
12
- * @param this
13
- */
14
- export default function hosts(this: Sequence): Promise<void>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- /**
3
- * krill: module hosts
4
- *
5
- * author: Piero Proietti
6
- * mail: piero.proietti@gmail.com
7
- *
8
- * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const tslib_1 = require("tslib");
12
- const fs_1 = tslib_1.__importDefault(require("fs"));
13
- /**
14
- * hosts
15
- * @param this
16
- */
17
- async function hosts() {
18
- const file = this.installTarget + '/etc/hosts';
19
- let text = '127.0.0.1 localhost localhost.localdomain\n';
20
- if (this.network.addressType === 'static') {
21
- text += `${this.network.address} ${this.users.hostname} pvelocalhost\n`;
22
- }
23
- else {
24
- text += `127.0.1.1 ${this.users.hostname} \n`;
25
- }
26
- text += `# The following lines are desirable for IPv6 capable hosts\n`;
27
- text += `:: 1 ip6 - localhost ip6 - loopback\n`;
28
- text += `fe00:: 0 ip6 - localnet\n`;
29
- text += `ff00:: 0 ip6 - mcastprefix\n`;
30
- text += `ff02:: 1 ip6 - allnodes\n`;
31
- text += `ff02:: 2 ip6 - allrouters\n`;
32
- text += `ff02:: 3 ip6 - allhosts\n`;
33
- fs_1.default.writeFileSync(file, text);
34
- }
35
- exports.default = hosts;
@@ -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>;
@@ -1,10 +0,0 @@
1
- /**
2
- * krill: module locale-cfg
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
- export default function localeCfg(this: Sequence): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module locale
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
- * locale
12
- */
13
- export default function locale(this: Sequence): Promise<void>;
@@ -1,15 +0,0 @@
1
- /**
2
- * krill: module machine-id
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
- * On Ubuntu
12
- * /etc/machine-id must exist to be re-created
13
- * https://unix.stackexchange.com/questions/402999/is-it-ok-to-change-etc-machine-id
14
- */
15
- export default function machineId(this: Sequence): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module mkfs
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
- * mkfs
12
- */
13
- export default function mkfs(this: Sequence): Promise<boolean>;
@@ -1,17 +0,0 @@
1
- /**
2
- * krill: module mount-fs
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
- * mountFs
12
- */
13
- export declare function mountFs(this: Sequence): Promise<boolean>;
14
- /**
15
- * umountFs
16
- */
17
- export declare function umountFs(this: Sequence): Promise<boolean>;
@@ -1,17 +0,0 @@
1
- /**
2
- * krill: module mount-vfs
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
- * mountvfs()
12
- */
13
- export declare function mountVfs(this: Sequence): Promise<void>;
14
- /**
15
- *
16
- */
17
- export declare function umountVfs(this: Sequence): Promise<void>;
@@ -1,19 +0,0 @@
1
- /**
2
- * krill: module network-cfg
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
- * networkcfg
13
- *
14
- * we have:
15
- * - debian: /etc/network/interface
16
- * - ubuntu: netplan
17
- * - manjaro: ? // ip address add 192.168.61/24 + dev enp6s18
18
- */
19
- export default function networkCfg(this: Sequence): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module packages (use /etc/calamares/modules/packages.conf)
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 packages(this: Sequence): Promise<void>;
@@ -1,20 +0,0 @@
1
- /**
2
- * krill: module partitions
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 partition(this: Sequence): Promise<boolean>;
15
- /**
16
- *
17
- * @param installDevice
18
- * @returns
19
- */
20
- export declare function lvmPartInfo(installDevice?: string): Promise<[string, number, number, number]>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module removeInstallerLink
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
- * removeInstallerLink
12
- */
13
- export default function removeInstallerLink(this: Sequence): Promise<void>;
@@ -1,10 +0,0 @@
1
- /**
2
- * krill: module setKeyboard
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
- export default function setKeyboard(this: Sequence): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module setTimezone
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 setTimezone(this: Sequence): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * krill: module umount
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 mountpoint
13
- */
14
- export default function umount(this: Sequence, mountPoint?: string): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * krill: module unpackfs
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
- * unpackfs
12
- */
13
- export default function unpackfs(this: Sequence): Promise<void>;
@@ -1,27 +0,0 @@
1
- export declare function addAutologin(distro: string, version: string, user: string, userPasswd: string, rootPasswd: string, chroot?: string): Promise<void>;
2
- /**
3
- *
4
- * @param chroot
5
- * @param user
6
- */
7
- export declare function remove(chroot?: string): Promise<void>;
8
- /**
9
- *
10
- * @param chroot
11
- */
12
- export declare function addMotd(distro: string, version: string, user: string, userPasswd: string, rootPasswd: string, chroot?: string): Promise<void>;
13
- /**
14
- *
15
- * @param distro
16
- * @param version
17
- * @param user
18
- * @param userPasswd
19
- * @param rootPasswd
20
- * @param chroot
21
- */
22
- export declare function addIssue(distro: string, version: string, user: string, userPasswd: string, rootPasswd: string, chroot?: string): Promise<void>;
23
- /**
24
- *
25
- * @param path
26
- */
27
- export declare function msgRemove(path: string): Promise<void>;