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
@@ -13,8 +13,7 @@ const tslib_1 = require("tslib");
13
13
  const utils_1 = require("../../lib/utils");
14
14
  const utils_2 = tslib_1.__importDefault(require("../../classes/utils"));
15
15
  const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
16
- // import React from 'react';
17
- // import { render, RenderOptions } from 'ink'
16
+ const os_1 = tslib_1.__importDefault(require("os"));
18
17
  /**
19
18
  *
20
19
  * @param this
@@ -33,6 +32,18 @@ async function partition() {
33
32
  p = 'p';
34
33
  }
35
34
  const installMode = this.partitions.installationMode;
35
+ let swapSize = Math.round(os_1.default.totalmem() / 1073741824) * 1024;
36
+ if (this.partitions.userSwapChoice === 'none') {
37
+ swapSize = 256;
38
+ }
39
+ else if (this.partitions.userSwapChoice === 'small') {
40
+ }
41
+ else if (this.partitions.userSwapChoice === 'suspend') {
42
+ swapSize *= 2;
43
+ }
44
+ else if (this.partitions.userSwapChoice === 'file') {
45
+ swapSize = 0;
46
+ }
36
47
  if (installMode === 'standard' && !this.efi) {
37
48
  /**
38
49
  * ===========================================================================================
@@ -40,8 +51,8 @@ async function partition() {
40
51
  * ===========================================================================================
41
52
  */
42
53
  await (0, utils_1.exec)(`parted --script ${installDevice} mklabel msdos`, this.echo);
43
- await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary linux-swap 1MiB 8192MiB`, this.echo); //dev/sda1 swap
44
- await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 8192MiB 100%`, this.echo); //dev/sda2 root
54
+ await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary linux-swap 1MiB ${swapSize + 1}MiB`, this.echo); //dev/sda1 swap
55
+ await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 ${swapSize + 1}MiB 100%`, this.echo); //dev/sda2 root
45
56
  await (0, utils_1.exec)(`parted ${installDevice} set 1 boot on`, this.echo);
46
57
  await (0, utils_1.exec)(`parted ${installDevice} set 1 esp on`, this.echo);
47
58
  // SWAP
@@ -65,9 +76,9 @@ async function partition() {
65
76
  * ===========================================================================================
66
77
  */
67
78
  await (0, utils_1.exec)(`parted --script ${installDevice} mklabel msdos`, this.echo);
68
- await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 1MiB 512MiB`, this.echo); // sda1
69
- await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary linux-swap 512MiB 8704MiB`, this.echo); // sda2
70
- await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 8704MiB 100%`, this.echo); // sda3
79
+ await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 1MiB 512MiB`, this.echo); // sda1
80
+ await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary linux-swap 512MiB ${swapSize + 512}MiB`, this.echo); // sda2
81
+ await (0, utils_1.exec)(`parted --script --align optimal ${installDevice} mkpart primary ext4 ${swapSize + 512}MiB 100%`, this.echo); // sda3
71
82
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 boot on`, this.echo); // sda1
72
83
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 esp on`, this.echo); // sda1
73
84
  // BOOT 512M
@@ -120,9 +131,9 @@ async function partition() {
120
131
  * ===========================================================================================
121
132
  */
122
133
  await (0, utils_1.exec)(`parted --script ${installDevice} mklabel gpt`, this.echo);
123
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart efi fat32 34s 256MiB`, this.echo); // sda1 EFI
124
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart swap linux-swap 768MiB 8960MiB`, this.echo); // sda2 swap
125
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart root ext4 8960MiB 100%`, this.echo); // sda3 root
134
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart efi fat32 34s 256MiB`, this.echo); // sda1 EFI
135
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart swap linux-swap 256MiB ${swapSize + 256}Mib`, this.echo); // sda2 swap
136
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart root ext4 ${swapSize + 256}MiB 100%`, this.echo); // sda3 root
126
137
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 boot on`, this.echo); // sda1
127
138
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 esp on`, this.echo); // sda1
128
139
  this.devices.efi.name = `${installDevice}${p}1`;
@@ -147,10 +158,10 @@ async function partition() {
147
158
  * ===========================================================================================
148
159
  */
149
160
  await (0, utils_1.exec)(`parted --script ${installDevice} mklabel gpt`, this.echo);
150
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart efi fat32 34s 256MiB`, this.echo); // sda1 EFI
151
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart boot ext4 256MiB 768MiB`, this.echo); // sda2 boot
152
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart swap linux-swap 768MiB 8960MiB`, this.echo); // sda3 swap
153
- await (0, utils_1.exec)(`parted --script ${installDevice} mkpart root ext4 8960MiB 100%`, this.echo); // sda4 root
161
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart efi fat32 34s 256MiB`, this.echo); // sda1 EFI
162
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart boot ext4 256MiB 768MiB`, this.echo); // sda2 boot
163
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart swap linux-swap 768MiB ${swapSize + 768}MiB`, this.echo); // sda3 swap
164
+ await (0, utils_1.exec)(`parted --script ${installDevice} mkpart root ext4 ${swapSize + 768}MiB 100%`, this.echo); // sda4 root
154
165
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 boot on`, this.echo); // sda1
155
166
  await (0, utils_1.exec)(`parted --script ${installDevice} set 1 esp on`, this.echo); // sda1
156
167
  // EFI 256M
File without changes
File without changes
@@ -110,7 +110,7 @@ exports.remove = remove;
110
110
  */
111
111
  async function addMotd(distro, version, user, userPasswd, rootPasswd, chroot = '/') {
112
112
  const fileMotd = `${chroot}/etc/motd`;
113
- let installer = 'sudo eggs krill';
113
+ let installer = 'sudo eggs install';
114
114
  if (pacman_1.default.packageIsInstalled('calamares')) {
115
115
  if (pacman_1.default.packageIsInstalled('plasma-desktop')) {
116
116
  installer = 'startplasma-wayland to run GUI and launch calamares, or from terminal sudo eggs krill -c';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -33,7 +33,6 @@ async function exec(command, { echo = false, ignore = false, capture = false } =
33
33
  * That should play nicely with oclif/core.
34
34
  */
35
35
  return new Promise((resolve, reject) => {
36
- var _a;
37
36
  if (echo) {
38
37
  console.log(command);
39
38
  }
@@ -44,7 +43,7 @@ async function exec(command, { echo = false, ignore = false, capture = false } =
44
43
  // child.stdout.on('data', (data: string) => {
45
44
  let stdout = '';
46
45
  if (capture) {
47
- (_a = child.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
46
+ child.stdout?.on('data', (data) => {
48
47
  stdout += data;
49
48
  });
50
49
  }
package/ipxe/ipxe.efi ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "penguins-eggs",
3
3
  "description": "Perri's Brewery edition: remaster your system and distribuite it",
4
- "version": "9.2.5",
4
+ "version": "9.2.9",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
@@ -9,13 +9,13 @@
9
9
  "bugs": "https://github.com/pieroproietti/penguins-eggs/issues",
10
10
  "dependencies": {
11
11
  "@oclif/core": "^1",
12
- "@oclif/plugin-autocomplete": "1.3.0",
12
+ "@oclif/plugin-autocomplete": "1.3.2",
13
13
  "@oclif/plugin-help": "^5.1.12",
14
14
  "@oclif/plugin-not-found": "^2.3.1",
15
15
  "@oclif/plugin-version": "^1.1.1",
16
16
  "@oclif/plugin-warn-if-update-available": "^2.0.4",
17
17
  "@oclif/test": "^2.1.0",
18
- "axios": "^0.27.2",
18
+ "axios": "^1.1.2",
19
19
  "chalk": "^4.1.2",
20
20
  "ink": "^3.2.0",
21
21
  "ink-big-text": "^1.2.0",
@@ -25,17 +25,22 @@
25
25
  "mustache": "^4.2.0",
26
26
  "netmask": "^2.0.2",
27
27
  "node-static": "^0.7.11",
28
+ "penguins-oclif": "^9.1.37",
28
29
  "react": "^17.0.2",
29
30
  "shelljs": "0.8.5",
30
- "tslib": "^2.4.0"
31
+ "tftp": "^0.1.2",
32
+ "tslib": "^2.4.0",
33
+ "typescript": "^4.7.4"
31
34
  },
32
35
  "devDependencies": {
36
+ "@tsconfig/recommended": "^1.0.1",
33
37
  "@types/chai": "^4.3.1",
38
+ "@types/ini": "^1.3.31",
34
39
  "@types/ink-big-text": "^1.2.1",
35
40
  "@types/ink-gradient": "^2.0.1",
36
- "@types/inquirer": "^8.2.1",
41
+ "@types/inquirer": "^9.0.2",
37
42
  "@types/js-yaml": "^4.0.5",
38
- "@types/mocha": "^9.1.1",
43
+ "@types/mocha": "^10.0.0",
39
44
  "@types/mustache": "^4.1.3",
40
45
  "@types/netmask": "^1.0.30",
41
46
  "@types/node": "^18.6.3",
@@ -44,33 +49,32 @@
44
49
  "@types/shelljs": "^0.8.11",
45
50
  "@typescript-eslint/parser": "^5.27.1",
46
51
  "chai": "^4.3.6",
47
- "eslint": "^7.32.0",
52
+ "eslint": "^7",
48
53
  "eslint-config-oclif": "^4.0.0",
49
54
  "eslint-config-oclif-typescript": "^1.0.2",
50
55
  "globby": "^11",
51
56
  "mocha": "^10.0.0",
52
57
  "nyc": "^15.1.0",
53
- "penguins-oclif": "^9.1.37",
54
58
  "perrisbrewery": "^9.1.37",
55
59
  "ts-node": "^10.8.1",
56
- "typedoc": "^0.23.10",
57
- "typescript": "^4.7.4"
60
+ "typedoc": "^0.23.10"
58
61
  },
59
62
  "peerDependencies": {
60
63
  "@typescript-eslint/parser": "^5.0.0",
61
- "@typescript-eslint/plugin": "^5.0.0",
62
- "typescript": "^4.6.0"
64
+ "@typescript-eslint/plugin": "^5.0.0"
63
65
  },
64
66
  "dirname": "eggs",
65
67
  "engines": {
66
- "node": ">=14.0.0"
68
+ "node": ">=16.0.0"
67
69
  },
68
70
  "files": [
71
+ ".oclif.manifest.json",
69
72
  "/addons",
70
73
  "/assets",
71
74
  "/bin",
72
75
  "/conf",
73
- "/lib",
76
+ "/dist",
77
+ "/ipxe",
74
78
  "/manpages",
75
79
  "mkinitcpio",
76
80
  "/scripts"
@@ -83,10 +87,10 @@
83
87
  "systemback"
84
88
  ],
85
89
  "license": "MIT",
86
- "main": "./lib/index.js",
90
+ "main": "./dist/index.js",
87
91
  "oclif": {
88
92
  "bin": "eggs",
89
- "commands": "./lib/commands",
93
+ "commands": "./dist/commands",
90
94
  "plugins": [
91
95
  "@oclif/plugin-autocomplete",
92
96
  "@oclif/plugin-help",
@@ -104,7 +108,6 @@
104
108
  },
105
109
  "repository": "https://github.com/pieroproietti/penguins-eggs",
106
110
  "shortName": "eggs",
107
- "types": "lib/index.d.ts",
108
111
  "scripts": {
109
112
  "build": "tsc -p .",
110
113
  "deb": "oclif pack:deb && pb deb ./",
package/scripts/_eggs CHANGED
@@ -11,7 +11,7 @@ _eggs () {
11
11
  "analyze:analyze for syncto"
12
12
  "calamares:calamares or install or configure it"
13
13
  "config:Configure and install prerequisites deb packages to run it"
14
- "cuckoo:cuckoo start a PXE boot server serving the live image"
14
+ "cuckoo:PXE start with proxy-dhcp"
15
15
  "dad:ask help from daddy - configuration helper"
16
16
  "export\:deb:export deb/docs/iso to the destination host"
17
17
  "export\:docs:remove and export docType documentation of the sources in the destination host"
@@ -76,9 +76,7 @@ config)
76
76
 
77
77
  cuckoo)
78
78
  _command_flags=(
79
- "--real[start a real dhcp server]"
80
- "--help[Show CLI help.]"
81
- "--verbose[verbose]"
79
+ "--from=-[Who is saying hello]:"
82
80
  )
83
81
  ;;
84
82
 
@@ -119,11 +117,17 @@ export:iso)
119
117
 
120
118
  install)
121
119
  _command_flags=(
122
- "--unattended[unattended CLI installation]"
123
- "--crypted[crypted CLI installation]"
120
+ "--unattended[Unattended installation]"
121
+ "--ip[hostname as ip, eg: ip-192-168-1-33]"
122
+ "--random[Add random to hostname, eg: colibri-ay412dt]"
123
+ "--domain=-[Domain name, defult: .local]:"
124
+ "--suspend[Swap suspend: RAM x 2]"
125
+ "--small[Swap small: RAM]"
126
+ "--none[Swap none: 256M]"
127
+ "--crypted[Crypted CLI installation]"
124
128
  "--pve[Proxmox VE install]"
125
129
  "--help[Show CLI help.]"
126
- "--verbose[verbose]"
130
+ "--verbose[Verbose]"
127
131
  )
128
132
  ;;
129
133
 
package/scripts/eggs.bash CHANGED
@@ -15,12 +15,12 @@ adapt --verbose --help
15
15
  analyze --help --verbose
16
16
  calamares --help --verbose --install --release --remove --theme
17
17
  config --nointeractive --clean --help --verbose
18
- cuckoo --real --help --verbose
18
+ cuckoo --from
19
19
  dad --help --clean --default --verbose
20
20
  export:deb --help --clean --amd64 --i386 --armel --arm64 --all
21
21
  export:docs --help
22
22
  export:iso --help --backup --clean
23
- install --unattended --crypted --pve --help --verbose
23
+ install --unattended --ip --random --domain --suspend --small --none --crypted --pve --help --verbose
24
24
  kill --help --verbose
25
25
  mom --help
26
26
  produce --prefix --basename --backup --clone --fast --normal --max --verbose --yolk --script --help --theme --addons --release
@@ -1,40 +0,0 @@
1
- /**
2
- * penguins-eggs: Bleach.ts
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- */
7
- /**
8
- * Bleach:
9
- */
10
- export default class Bleach {
11
- /**
12
- * clean
13
- * @param verbose
14
- */
15
- clean(verbose?: boolean): Promise<void>;
16
- /**
17
- * cleanApt
18
- * @param verbose
19
- */
20
- private cleanApt;
21
- /**
22
- * cleanHistory
23
- * @param verbose
24
- */
25
- private cleanHistory;
26
- /**
27
- * cleanJournal
28
- * @param verbose
29
- */
30
- private cleanJournal;
31
- /**
32
- * cleanSystemCache
33
- * @param verbose
34
- */
35
- private cleanSystemCache;
36
- }
37
- /**
38
- * Elenco pulitori bleachbit
39
- * Solo quelli pertinenti root
40
- */
@@ -1,24 +0,0 @@
1
- export default class Compressors {
2
- isEnabled: {
3
- error: boolean;
4
- gzip: boolean;
5
- lzma: boolean;
6
- lzo: boolean;
7
- lz4: boolean;
8
- xz: boolean;
9
- zstd: boolean;
10
- };
11
- source: string;
12
- dest: string;
13
- populate(): Promise<void>;
14
- fast(): string;
15
- normal(): string;
16
- /**
17
- * max
18
- * @returns
19
- */
20
- max(): string;
21
- private prepareCheck;
22
- private removeCheck;
23
- private check;
24
- }
@@ -1,11 +0,0 @@
1
- import Settings from '../classes/settings';
2
- import { IEggsConfig } from '../interfaces';
3
- export default class Daddy {
4
- settings: Settings;
5
- helpMe(loadDefault?: boolean, verbose?: boolean): Promise<void>;
6
- /**
7
- *
8
- * @param c
9
- */
10
- editConfig(c: IEggsConfig): Promise<string>;
11
- }
@@ -1,31 +0,0 @@
1
- /**
2
- * penguins-eggs: Distro.ts
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- */
7
- import { IRemix, IDistro } from '../interfaces';
8
- /**
9
- * Classe
10
- */
11
- declare class Distro implements IDistro {
12
- familyId: string;
13
- distroId: string;
14
- distroLike: string;
15
- codenameId: string;
16
- codenameLikeId: string;
17
- releaseId: string;
18
- releaseLike: string;
19
- usrLibPath: string;
20
- isolinuxPath: string;
21
- syslinuxPath: string;
22
- pxelinuxPath: string;
23
- liveMediumPath: string;
24
- mountpointSquashFs: string;
25
- homeUrl: string;
26
- supportUrl: string;
27
- bugReportUrl: string;
28
- isCalamaresAvailable: boolean;
29
- constructor(remix?: IRemix);
30
- }
31
- export default Distro;
@@ -1,69 +0,0 @@
1
- /**
2
- * penguins-eggs-v8
3
- * author: Piero Proietti
4
- * email: piero.proietti@gmail.com
5
- * license: MIT
6
- */
7
- /**
8
- * Utils: general porpourse utils
9
- * @remarks all the utilities
10
- */
11
- export default class Archlinux {
12
- static packs4calamares: string[];
13
- /**
14
- * check if it's installed xorg
15
- * @returns true if xorg is installed
16
- */
17
- static isInstalledXorg(): boolean;
18
- /**
19
- * check if it's installed wayland
20
- * @returns true if wayland
21
- */
22
- static isInstalledWayland(): boolean;
23
- /**
24
- * Crea array pacchetti da installare/rimuovere
25
- */
26
- static packages(remove?: boolean, verbose?: boolean): string[];
27
- /**
28
- *
29
- */
30
- static prerequisitesInstall(verbose?: boolean): Promise<boolean>;
31
- /**
32
- * Torna verso se calamares è installato
33
- */
34
- static calamaresCheck(): Promise<boolean>;
35
- /**
36
- *
37
- */
38
- static calamaresInstall(verbose?: boolean): Promise<void>;
39
- /**
40
- * calamaresPolicies
41
- */
42
- static calamaresPolicies(): Promise<void>;
43
- /**
44
- *
45
- */
46
- static calamaresRemove(verbose?: boolean): Promise<boolean>;
47
- /**
48
- * restuisce VERO se il pacchetto è installato
49
- * @param packageName
50
- */
51
- static packageIsInstalled(packageName: string): boolean;
52
- /**
53
- * Install the package packageName
54
- * @param packageName {string} Pacchetto Debian da installare
55
- * @returns {boolean} True if success
56
- */
57
- static packageInstall(packageName: string): Promise<boolean>;
58
- /**
59
- * restuisce VERO se il pacchetto è installato
60
- * @param packageName
61
- */
62
- static packageAptAvailable(packageName: string): Promise<boolean>;
63
- /**
64
- *
65
- * @param packageName
66
- * @returns
67
- */
68
- static packageAptLast(packageName: string): Promise<string>;
69
- }
@@ -1,68 +0,0 @@
1
- /**
2
- * penguins-eggs-v8
3
- * author: Piero Proietti
4
- * email: piero.proietti@gmail.com
5
- * license: MIT
6
- */
7
- /**
8
- * Utils: general porpourse utils
9
- * @remarks all the utilities
10
- */
11
- export default class Debian {
12
- static debs4calamares: string[];
13
- /**
14
- * check if it's installed xorg
15
- * @returns true if xorg is installed
16
- */
17
- static isInstalledXorg(): boolean;
18
- /**
19
- * check if it's installed wayland
20
- * @returns true if wayland
21
- */
22
- static isInstalledWayland(): boolean;
23
- /**
24
- * Crea array packages dei pacchetti da installare
25
- */
26
- static packages(remove?: boolean, verbose?: boolean): string[];
27
- /**
28
- *
29
- */
30
- static prerequisitesInstall(verbose?: boolean): Promise<boolean>;
31
- /**
32
- * Torna verso se calamares è installato
33
- */
34
- static calamaresCheck(): Promise<boolean>;
35
- /**
36
- *
37
- */
38
- static liveInstallerPolicies(): Promise<void>;
39
- /**
40
- *
41
- */
42
- static calamaresInstall(verbose?: boolean): Promise<void>;
43
- /**
44
- * calamaresPolicies
45
- */
46
- static calamaresPolicies(): Promise<void>;
47
- /**
48
- *
49
- */
50
- static calamaresRemove(verbose?: boolean): Promise<boolean>;
51
- /**
52
- * restuisce VERO se il pacchetto è installato
53
- * @param debPackage
54
- */
55
- static packageIsInstalled(debPackage: string): boolean;
56
- /**
57
- * Install the package packageName
58
- * @param packageName {string} Pacchetto Debian da installare
59
- * @returns {boolean} True if success
60
- */
61
- static packageInstall(packageName: string): Promise<boolean>;
62
- /**
63
- * restuisce VERO se il pacchetto è installato
64
- * @param debPackage
65
- */
66
- static packageAptAvailable(packageName: string): Promise<boolean>;
67
- static packageAptLast(debPackage: string): Promise<string>;
68
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * penguins-eggs-v8
3
- * author: Piero Proietti
4
- * email: piero.proietti@gmail.com
5
- * license: MIT
6
- */
7
- /**
8
- * Utils: general porpourse utils
9
- * @remarks all the utilities
10
- */
11
- export default class Fedora {
12
- static packs4calamares: string[];
13
- /**
14
- * check if it's installed xorg
15
- * @returns true if xorg is installed
16
- */
17
- static isInstalledXorg(): boolean;
18
- /**
19
- * check if it's installed wayland
20
- * @returns true if wayland
21
- */
22
- static isInstalledWayland(): boolean;
23
- /**
24
- * Crea array pacchetti da installare/rimuovere
25
- */
26
- static packages(remove?: boolean, verbose?: boolean): string[];
27
- /**
28
- *
29
- */
30
- static prerequisitesInstall(verbose?: boolean): Promise<boolean>;
31
- /**
32
- * Torna verso se calamares è installato
33
- */
34
- static calamaresCheck(): Promise<boolean>;
35
- /**
36
- *
37
- */
38
- static calamaresInstall(verbose?: boolean): Promise<void>;
39
- /**
40
- * calamaresPolicies
41
- */
42
- static calamaresPolicies(): Promise<void>;
43
- /**
44
- *
45
- */
46
- static calamaresRemove(verbose?: boolean): Promise<boolean>;
47
- /**
48
- * restuisce VERO se il pacchetto è installato
49
- * @param packageName
50
- */
51
- static packageIsInstalled(packageName: string): boolean;
52
- /**
53
- * Install the package packageName
54
- * @param packageName {string} Pacchetto da installare
55
- * @returns {boolean} True if success
56
- */
57
- static packageInstall(packageName: string): Promise<boolean>;
58
- /**
59
- * restuisce VERO se il pacchetto è installato
60
- * @param packageName
61
- */
62
- static packageAvailable(packageName: string): Promise<boolean>;
63
- }