penguins-eggs 8.1.3 → 9.0.16

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 (323) hide show
  1. package/README.md +332 -168
  2. package/addons/README.md +78 -84
  3. package/addons/{pve → blissos}/theme/applications/install-debian.desktop +0 -0
  4. package/addons/{deblinux → blissos}/theme/artwork/install-debian.png +0 -0
  5. package/addons/blissos/theme/calamares/branding/blissos-logo.png +0 -0
  6. package/addons/{guadalinex → blissos}/theme/calamares/branding/branding.desc +0 -0
  7. package/addons/blissos/theme/calamares/branding/languages.png +0 -0
  8. package/addons/blissos/theme/calamares/branding/show.qml +75 -0
  9. package/addons/blissos/theme/calamares/branding/slide1.png +0 -0
  10. package/addons/blissos/theme/calamares/branding/slide2.png +0 -0
  11. package/addons/blissos/theme/calamares/branding/slide3.png +0 -0
  12. package/addons/blissos/theme/calamares/branding/welcome.png +0 -0
  13. package/addons/{guadalinex → blissos}/theme/calamares/modules/partition.yml +1 -1
  14. package/{conf/distros/buster/grub/theme.cfg → addons/blissos/theme/livecd/grub.theme.cfg} +10 -9
  15. package/{conf/distros/buster/isolinux/stdmenu.template.cfg → addons/blissos/theme/livecd/isolinux.theme.cfg} +4 -0
  16. package/addons/blissos/theme/livecd/splash.png +0 -0
  17. package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
  18. package/addons/eggs/theme/calamares/branding/show.qml +1 -1
  19. package/addons/eggs/theme/livecd/README.md +19 -6
  20. package/addons/eggs/theme/livecd/{theme.cfg → grub.theme.cfg} +13 -12
  21. package/addons/eggs/theme/livecd/isolinux.theme.cfg +46 -0
  22. package/addons/eggs/theme/livecd/splash.png +0 -0
  23. package/addons/{ufficiozero/theme/livecd/theme.cfg → neon/theme/livecd/grub.theme.cfg} +13 -12
  24. package/addons/neon/theme/livecd/isolinux.theme.cfg +46 -0
  25. package/addons/neon/theme/livecd/splash.png +0 -0
  26. package/addons/templates/grub.template +28 -0
  27. package/addons/templates/isolinux.template +29 -0
  28. package/addons/ufficiozero/theme/applications/install-debian.desktop +17 -2
  29. package/bin/dev +17 -0
  30. package/bin/dev.cmd +3 -0
  31. package/bin/run +2 -4
  32. package/conf/distros/bionic/calamares/settings.yml +5 -5
  33. package/conf/distros/bookworm/README.md +9 -0
  34. package/conf/distros/bullseye/README.md +6 -8
  35. package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +1 -1
  36. package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.working.sh +1 -1
  37. package/conf/distros/buster/calamares/modules/shellprocess_eggs-cleanup.yml +6 -0
  38. package/conf/distros/buster/calamares/settings.yml +14 -3
  39. package/conf/distros/chimaera/README.md +3 -0
  40. package/conf/distros/daedalus/README.md +3 -0
  41. package/conf/distros/focal/calamares/settings.yml +2 -2
  42. package/conf/distros/hirsute/README.md +1 -1
  43. package/conf/distros/impish/README.md +9 -0
  44. package/conf/distros/jammy/README.md +9 -0
  45. package/conf/distros/jessie/krill/krill-modules/sources-yolk/sources-yolk.sh +1 -1
  46. package/conf/distros/rolling/README.md +3 -0
  47. package/conf/distros/rolling/calamares/calamares-modules/remove-link/module.yml +9 -0
  48. package/conf/distros/rolling/calamares/calamares-modules/remove-link/remove-link.sh +3 -0
  49. package/conf/distros/rolling/calamares/modules/displaymanager.yml +22 -0
  50. package/conf/distros/rolling/calamares/modules/finished.yml +6 -0
  51. package/conf/distros/rolling/calamares/modules/fstab.yml +13 -0
  52. package/conf/distros/rolling/calamares/modules/locale.yml +97 -0
  53. package/conf/distros/rolling/calamares/modules/luksopenswaphookcfg.yml +6 -0
  54. package/conf/distros/rolling/calamares/modules/mount.yml +38 -0
  55. package/conf/distros/rolling/calamares/modules/packages.yml +8 -0
  56. package/conf/distros/rolling/calamares/modules/removeuser.yml +15 -0
  57. package/conf/distros/rolling/calamares/modules/unpackfs.yml +7 -0
  58. package/conf/distros/rolling/calamares/modules/users.yml +20 -0
  59. package/conf/distros/rolling/calamares/modules/welcome.yml +19 -0
  60. package/conf/distros/{bullseye → rolling}/calamares/settings.yml +17 -12
  61. package/conf/distros/thirtyfive/README.md +3 -0
  62. package/conf/distros/tumbleweed/README.md +3 -0
  63. package/conf/eggs.yaml +3 -3
  64. package/conf/exclude.list +12 -7
  65. package/conf/tools.yaml +1 -1
  66. package/lib/classes/basket.js +24 -20
  67. package/lib/classes/bleach.js +19 -19
  68. package/lib/classes/compressors.js +15 -14
  69. package/lib/classes/daddy.js +44 -31
  70. package/lib/classes/distro.d.ts +3 -2
  71. package/lib/classes/distro.js +314 -175
  72. package/lib/classes/family/archlinux.d.ts +69 -0
  73. package/lib/classes/family/archlinux.js +182 -0
  74. package/lib/classes/family/debian.d.ts +64 -0
  75. package/lib/classes/family/debian.js +227 -0
  76. package/lib/classes/family/fedora.d.ts +63 -0
  77. package/lib/classes/family/fedora.js +169 -0
  78. package/lib/classes/family/suse.d.ts +63 -0
  79. package/lib/classes/family/suse.js +169 -0
  80. package/lib/classes/i18n.js +16 -16
  81. package/lib/classes/incubation/branding.js +5 -4
  82. package/lib/classes/incubation/distros/bionic.js +1 -2
  83. package/lib/classes/incubation/distros/buster.js +2 -2
  84. package/lib/classes/incubation/distros/focal.js +3 -2
  85. package/lib/classes/incubation/distros/jessie.js +1 -25
  86. package/lib/classes/incubation/distros/{bullseye.d.ts → rolling.d.ts} +3 -3
  87. package/lib/classes/incubation/distros/{bullseye.js → rolling.js} +15 -16
  88. package/lib/classes/incubation/fisherman-helper/displaymanager.js +2 -7
  89. package/lib/classes/incubation/fisherman-helper/packages.js +31 -32
  90. package/lib/classes/incubation/fisherman.d.ts +17 -17
  91. package/lib/classes/incubation/fisherman.js +84 -71
  92. package/lib/classes/incubation/incubator.js +116 -74
  93. package/lib/classes/incubation/installer.d.ts +2 -2
  94. package/lib/classes/incubation/installer.js +6 -20
  95. package/lib/classes/initrd.d.ts +1 -1
  96. package/lib/classes/initrd.js +37 -30
  97. package/lib/classes/krill_install.d.ts +4 -4
  98. package/lib/classes/krill_install.js +166 -162
  99. package/lib/classes/krill_prepare.d.ts +6 -2
  100. package/lib/classes/krill_prepare.js +73 -60
  101. package/lib/classes/n8.js +6 -11
  102. package/lib/classes/ovary.d.ts +34 -25
  103. package/lib/classes/ovary.js +771 -688
  104. package/lib/classes/pacman.d.ts +55 -56
  105. package/lib/classes/pacman.js +524 -436
  106. package/lib/classes/pve-live.js +6 -6
  107. package/lib/classes/settings.js +47 -56
  108. package/lib/classes/systemctl.d.ts +6 -6
  109. package/lib/classes/systemctl.js +7 -7
  110. package/lib/classes/tools.d.ts +1 -1
  111. package/lib/classes/tools.js +10 -10
  112. package/lib/classes/users.d.ts +21 -0
  113. package/lib/classes/users.js +129 -0
  114. package/lib/classes/utils.d.ts +10 -13
  115. package/lib/classes/utils.js +128 -107
  116. package/lib/classes/xdg.js +112 -91
  117. package/lib/classes/yolk.js +38 -31
  118. package/lib/commands/adapt.d.ts +3 -3
  119. package/lib/commands/adapt.js +12 -12
  120. package/lib/commands/analyze.d.ts +25 -0
  121. package/lib/commands/analyze.js +74 -0
  122. package/lib/commands/bro.d.ts +14 -0
  123. package/lib/commands/bro.js +31 -0
  124. package/lib/commands/calamares.d.ts +7 -7
  125. package/lib/commands/calamares.js +22 -54
  126. package/lib/commands/config.d.ts +5 -5
  127. package/lib/commands/config.js +69 -79
  128. package/lib/commands/dad.d.ts +5 -5
  129. package/lib/commands/dad.js +11 -11
  130. package/lib/commands/export/deb.d.ts +8 -8
  131. package/lib/commands/export/deb.js +16 -16
  132. package/lib/commands/export/docs.d.ts +2 -2
  133. package/lib/commands/export/docs.js +9 -9
  134. package/lib/commands/export/iso.d.ts +4 -4
  135. package/lib/commands/export/iso.js +12 -17
  136. package/lib/commands/info.d.ts +9 -3
  137. package/lib/commands/info.js +14 -164
  138. package/lib/commands/install.d.ts +5 -5
  139. package/lib/commands/install.js +28 -42
  140. package/lib/commands/kill.d.ts +3 -3
  141. package/lib/commands/kill.js +11 -13
  142. package/lib/commands/mom.d.ts +2 -2
  143. package/lib/commands/mom.js +8 -8
  144. package/lib/commands/produce.d.ts +14 -14
  145. package/lib/commands/produce.js +48 -46
  146. package/lib/commands/remove.d.ts +5 -5
  147. package/lib/commands/remove.js +46 -57
  148. package/lib/commands/syncfrom.d.ts +37 -0
  149. package/lib/commands/syncfrom.js +156 -0
  150. package/lib/commands/syncto.d.ts +48 -0
  151. package/lib/commands/syncto.js +219 -0
  152. package/lib/commands/tools/clean.d.ts +3 -3
  153. package/lib/commands/tools/clean.js +10 -12
  154. package/lib/commands/tools/locales.d.ts +4 -4
  155. package/lib/commands/tools/locales.js +8 -8
  156. package/lib/commands/tools/skel.d.ts +4 -4
  157. package/lib/commands/tools/skel.js +10 -15
  158. package/lib/commands/tools/stat.d.ts +7 -4
  159. package/lib/commands/tools/stat.js +20 -13
  160. package/lib/commands/tools/yolk.d.ts +3 -3
  161. package/lib/commands/tools/yolk.js +13 -13
  162. package/lib/commands/update.d.ts +5 -10
  163. package/lib/commands/update.js +56 -72
  164. package/lib/components/elements/information.d.ts +4 -0
  165. package/lib/components/elements/information.js +166 -0
  166. package/lib/components/elements/steps.js +1 -1
  167. package/lib/components/elements/title.js +7 -10
  168. package/lib/components/finished.js +5 -5
  169. package/lib/components/install.js +5 -5
  170. package/lib/components/keyboard.js +5 -5
  171. package/lib/components/location.js +5 -5
  172. package/lib/components/network.js +5 -5
  173. package/lib/components/partitions.d.ts +2 -1
  174. package/lib/components/partitions.js +9 -7
  175. package/lib/components/summary.js +5 -5
  176. package/lib/components/users.js +6 -6
  177. package/lib/components/welcome.js +6 -6
  178. package/lib/index.d.ts +1 -1
  179. package/lib/index.js +2 -2
  180. package/lib/interfaces/i-analyze.d.ts +13 -0
  181. package/lib/interfaces/i-analyze.js +18 -0
  182. package/lib/interfaces/i-distro.d.ts +3 -2
  183. package/lib/interfaces/i-krill.d.ts +1 -0
  184. package/lib/interfaces/i-settings.d.ts +2 -2
  185. package/lib/lib/cli-autologin.d.ts +19 -2
  186. package/lib/lib/cli-autologin.js +114 -39
  187. package/lib/lib/dependencies.d.ts +9 -6
  188. package/lib/lib/dependencies.js +22 -13
  189. package/lib/lib/get_address.js +2 -2
  190. package/lib/lib/get_dns.js +2 -2
  191. package/lib/lib/get_domain.js +2 -2
  192. package/lib/lib/get_gateway.js +2 -2
  193. package/lib/lib/get_hostname.js +2 -2
  194. package/lib/lib/get_netmask.js +2 -2
  195. package/lib/lib/get_password.js +3 -2
  196. package/lib/lib/get_root_password.js +2 -2
  197. package/lib/lib/get_userfullname.js +2 -2
  198. package/lib/lib/get_username.js +2 -2
  199. package/lib/lib/select_address_type.js +2 -5
  200. package/lib/lib/select_filesystem_type.js +5 -14
  201. package/lib/lib/select_installation_device.js +3 -3
  202. package/lib/lib/select_interface.js +1 -1
  203. package/lib/lib/select_keyboard_layout.js +2 -10
  204. package/lib/lib/select_languages.js +2 -2
  205. package/lib/lib/select_regions.js +1 -12
  206. package/lib/lib/select_user_swap_choice.js +4 -4
  207. package/lib/lib/select_zones.js +483 -62
  208. package/manpages/doc/man/eggs.html +508 -0
  209. package/manpages/doc/man/eggs.roll.gz +0 -0
  210. package/oclif.manifest.json +1 -1
  211. package/package.json +115 -107
  212. package/scripts/_eggs +275 -0
  213. package/scripts/bros/waydroid-helper.sh +92 -0
  214. package/scripts/eggs.bash +68 -19
  215. package/scripts/mom-cli.sh +6 -5
  216. package/scripts/not-used/eggs-cleanup.sh +7 -0
  217. package/scripts/not-used/install-eggs-ppa.sh +2 -0
  218. package/scripts/{mkinitramfs → not-used/mkinitramfs} +0 -0
  219. package/scripts/{pve-live.sh → not-used/pve-live.sh} +0 -0
  220. package/addons/debian/theme/applications/install-debian.desktop +0 -13
  221. package/addons/debian/theme/artwork/install-debian.png +0 -0
  222. package/addons/debian/theme/branding/branding.desc +0 -27
  223. package/addons/debian/theme/branding/debian-logo.png +0 -0
  224. package/addons/debian/theme/branding/show.qml +0 -51
  225. package/addons/debian/theme/branding/slide1.png +0 -0
  226. package/addons/debian/theme/branding/welcome.png +0 -0
  227. package/addons/deblinux/theme/README.md +0 -16
  228. package/addons/deblinux/theme/applications/install-debian.desktop +0 -13
  229. package/addons/deblinux/theme/calamares/branding/branding.desc +0 -23
  230. package/addons/deblinux/theme/calamares/branding/deblinux-logo.png +0 -0
  231. package/addons/deblinux/theme/calamares/branding/show.qml +0 -46
  232. package/addons/deblinux/theme/calamares/branding/slide1.png +0 -0
  233. package/addons/deblinux/theme/calamares/branding/welcome.png +0 -0
  234. package/addons/deblinux/theme/calamares/modules/partition.yml +0 -233
  235. package/addons/eggs/theme/calamares/branding/4tation.png +0 -0
  236. package/addons/eggs/theme/livecd/grub.template.cfg +0 -60
  237. package/addons/eggs/theme/livecd/menu.template.cfg +0 -54
  238. package/addons/guadalinex/theme/README.md +0 -9
  239. package/addons/guadalinex/theme/applications/install-debian.desktop +0 -28
  240. package/addons/guadalinex/theme/artwork/install-debian.png +0 -0
  241. package/addons/guadalinex/theme/calamares/branding/guadalinex-logo.png +0 -0
  242. package/addons/guadalinex/theme/calamares/branding/show.qml +0 -85
  243. package/addons/guadalinex/theme/calamares/branding/slide1.png +0 -0
  244. package/addons/guadalinex/theme/calamares/branding/slide2.png +0 -0
  245. package/addons/guadalinex/theme/calamares/branding/slide3.png +0 -0
  246. package/addons/guadalinex/theme/calamares/branding/slide4.png +0 -0
  247. package/addons/guadalinex/theme/calamares/branding/slide5.png +0 -0
  248. package/addons/guadalinex/theme/calamares/branding/slide6.png +0 -0
  249. package/addons/guadalinex/theme/calamares/branding/slide7.png +0 -0
  250. package/addons/guadalinex/theme/calamares/branding/welcome.png +0 -0
  251. package/addons/guadalinex/theme/livecd/menu.template.cfg +0 -54
  252. package/addons/guadalinex/theme/livecd/splash.png +0 -0
  253. package/addons/guadalinex/theme/livecd/theme.cfg +0 -42
  254. package/addons/openos/theme/applications/Install-OpenOS-Neon_RLTS-Desktop.png +0 -0
  255. package/addons/openos/theme/applications/install-debian.desktop +0 -24
  256. package/addons/openos/theme/artwork/install-debian.png +0 -0
  257. package/addons/openos/theme/calamares/branding/branding.desc +0 -28
  258. package/addons/openos/theme/calamares/branding/openos-logo.png +0 -0
  259. package/addons/openos/theme/calamares/branding/show.qml +0 -203
  260. package/addons/openos/theme/calamares/branding/slide1.png +0 -0
  261. package/addons/openos/theme/calamares/branding/slide10.png +0 -0
  262. package/addons/openos/theme/calamares/branding/slide11.png +0 -0
  263. package/addons/openos/theme/calamares/branding/slide12.png +0 -0
  264. package/addons/openos/theme/calamares/branding/slide13.png +0 -0
  265. package/addons/openos/theme/calamares/branding/slide14.png +0 -0
  266. package/addons/openos/theme/calamares/branding/slide15.png +0 -0
  267. package/addons/openos/theme/calamares/branding/slide16.png +0 -0
  268. package/addons/openos/theme/calamares/branding/slide2.png +0 -0
  269. package/addons/openos/theme/calamares/branding/slide3.png +0 -0
  270. package/addons/openos/theme/calamares/branding/slide4.png +0 -0
  271. package/addons/openos/theme/calamares/branding/slide5.png +0 -0
  272. package/addons/openos/theme/calamares/branding/slide6.png +0 -0
  273. package/addons/openos/theme/calamares/branding/slide7.png +0 -0
  274. package/addons/openos/theme/calamares/branding/slide8.png +0 -0
  275. package/addons/openos/theme/calamares/branding/slide9.png +0 -0
  276. package/addons/openos/theme/calamares/branding/welcome.png +0 -0
  277. package/addons/openos/theme/calamares/branding.desc +0 -24
  278. package/addons/openos/theme/calamares/lang/calamares-default_ar.qm +0 -0
  279. package/addons/openos/theme/calamares/lang/calamares-default_en.qm +0 -0
  280. package/addons/openos/theme/calamares/lang/calamares-default_eo.qm +0 -0
  281. package/addons/openos/theme/calamares/lang/calamares-default_fr.qm +0 -0
  282. package/addons/openos/theme/calamares/lang/calamares-default_nl.qm +0 -0
  283. package/addons/openos/theme/calamares/modules/partition.yml +0 -233
  284. package/addons/openos/theme/livecd/grub.template.cfg +0 -60
  285. package/addons/openos/theme/livecd/menu.template.cfg +0 -54
  286. package/addons/openos/theme/livecd/splash.png +0 -0
  287. package/addons/openos/theme/livecd/theme.cfg +0 -42
  288. package/addons/pve/theme/applications/penguins-pve.desktop +0 -24
  289. package/addons/pve/theme/artwork/install-debian.png +0 -0
  290. package/addons/pve/theme/calamares/branding/branding.desc +0 -1
  291. package/addons/pve/theme/calamares/branding/pve-logo.png +0 -0
  292. package/addons/pve/theme/calamares/branding/show.qml +0 -227
  293. package/addons/pve/theme/calamares/branding/slide1.png +0 -0
  294. package/addons/pve/theme/calamares/branding/slide2.png +0 -0
  295. package/addons/pve/theme/calamares/branding/slide3.png +0 -0
  296. package/addons/pve/theme/calamares/branding/slide4.png +0 -0
  297. package/addons/pve/theme/calamares/branding/slide5.png +0 -0
  298. package/addons/pve/theme/calamares/branding/slide6.png +0 -0
  299. package/addons/pve/theme/calamares/branding/slide7.png +0 -0
  300. package/addons/pve/theme/calamares/branding/slide8.png +0 -0
  301. package/addons/pve/theme/calamares/branding/slide9.png +0 -0
  302. package/addons/pve/theme/calamares/branding/welcome.png +0 -0
  303. package/addons/pve/theme/calamares/modules/partition.yml +0 -233
  304. package/addons/pve/theme/livecd/README.md +0 -8
  305. package/addons/pve/theme/livecd/grub.template.cfg +0 -60
  306. package/addons/pve/theme/livecd/menu.template.cfg +0 -54
  307. package/addons/pve/theme/livecd/splash.png +0 -0
  308. package/addons/pve/theme/livecd/theme.cfg +0 -42
  309. package/addons/ufficiozero/theme/artwork/install-debian.png +0 -0
  310. package/addons/ufficiozero/theme/livecd/README.md +0 -8
  311. package/addons/ufficiozero/theme/livecd/grub.template.cfg +0 -60
  312. package/addons/ufficiozero/theme/livecd/menu.template.cfg +0 -54
  313. package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -28
  314. package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/module.yml +0 -8
  315. package/conf/distros/buster/grub/grub.template.cfg +0 -58
  316. package/conf/distros/buster/grub/loopback.cfg +0 -1
  317. package/conf/distros/buster/isolinux/isolinux.template.cfg +0 -8
  318. package/conf/distros/buster/isolinux/menu.template.cfg +0 -56
  319. package/conf/distros/focal/grub/grub.template.cfg +0 -67
  320. package/conf/distros/focal/isolinux/menu.template.cfg +0 -54
  321. package/lib/classes/incubation/distros/beowulf.d.ts +0 -30
  322. package/lib/classes/incubation/distros/beowulf.js +0 -69
  323. package/manpages/doc/man/eggs.1.gz +0 -0
@@ -1,7 +1,11 @@
1
1
  import { INet } from '../interfaces';
2
2
  import { IWelcome, ILocation, IKeyboard, IPartitions, IUsers } from '../interfaces/i-krill';
3
3
  export default class Krill {
4
- prepare(): Promise<void>;
4
+ /**
5
+ *
6
+ * @param cryped
7
+ */
8
+ prepare(cryped?: boolean): Promise<void>;
5
9
  /**
6
10
  * WELCOME
7
11
  */
@@ -17,7 +21,7 @@ export default class Krill {
17
21
  /**
18
22
  * PARTITIONS
19
23
  */
20
- partitions(): Promise<IPartitions>;
24
+ partitions(crypted?: boolean): Promise<IPartitions>;
21
25
  /**
22
26
  * USERS
23
27
  */
@@ -1,46 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const react_1 = (0, tslib_1.__importDefault)(require("react"));
5
5
  const ink_1 = require("ink");
6
- const utils_1 = tslib_1.__importDefault(require("./utils"));
7
- const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
8
- const fs_1 = tslib_1.__importDefault(require("fs"));
6
+ const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
7
+ const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
8
+ const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
9
9
  // libraries
10
10
  const exec = require('../lib/utils').exec;
11
- const welcome_1 = tslib_1.__importDefault(require("../components/welcome"));
12
- const location_1 = tslib_1.__importDefault(require("../components/location"));
13
- const partitions_1 = tslib_1.__importDefault(require("../components/partitions"));
14
- const keyboard_1 = tslib_1.__importDefault(require("../components/keyboard"));
15
- const users_1 = tslib_1.__importDefault(require("../components/users"));
16
- const network_1 = tslib_1.__importDefault(require("../components/network"));
17
- const summary_1 = tslib_1.__importDefault(require("../components/summary"));
18
- const select_languages_1 = tslib_1.__importDefault(require("../lib/select_languages"));
19
- const select_regions_1 = tslib_1.__importDefault(require("../lib/select_regions"));
20
- const select_zones_1 = tslib_1.__importDefault(require("../lib/select_zones"));
21
- const select_installation_device_1 = tslib_1.__importDefault(require("../lib/select_installation_device"));
22
- const select_installation_mode_1 = tslib_1.__importDefault(require("../lib/select_installation_mode"));
23
- const select_user_swap_choice_1 = tslib_1.__importDefault(require("../lib/select_user_swap_choice"));
24
- const select_filesystem_type_1 = tslib_1.__importDefault(require("../lib/select_filesystem_type"));
25
- const get_username_1 = tslib_1.__importDefault(require("../lib/get_username"));
26
- const get_userfullname_1 = tslib_1.__importDefault(require("../lib/get_userfullname"));
27
- const get_hostname_1 = tslib_1.__importDefault(require("../lib/get_hostname"));
28
- const get_password_1 = tslib_1.__importDefault(require("../lib/get_password"));
29
- const select_keyboard_layout_1 = tslib_1.__importDefault(require("../lib/select_keyboard_layout"));
30
- const select_interface_1 = tslib_1.__importDefault(require("../lib/select_interface"));
31
- const select_address_type_1 = tslib_1.__importDefault(require("../lib/select_address_type"));
32
- const get_address_1 = tslib_1.__importDefault(require("../lib/get_address"));
33
- const get_netmask_1 = tslib_1.__importDefault(require("../lib/get_netmask"));
34
- const get_gateway_1 = tslib_1.__importDefault(require("../lib/get_gateway"));
35
- const get_domain_1 = tslib_1.__importDefault(require("../lib/get_domain"));
36
- const get_dns_1 = tslib_1.__importDefault(require("../lib/get_dns"));
37
- const krill_install_1 = tslib_1.__importDefault(require("./krill_install"));
11
+ const welcome_1 = (0, tslib_1.__importDefault)(require("../components/welcome"));
12
+ const location_1 = (0, tslib_1.__importDefault)(require("../components/location"));
13
+ const partitions_1 = (0, tslib_1.__importDefault)(require("../components/partitions"));
14
+ const keyboard_1 = (0, tslib_1.__importDefault)(require("../components/keyboard"));
15
+ const users_1 = (0, tslib_1.__importDefault)(require("../components/users"));
16
+ const network_1 = (0, tslib_1.__importDefault)(require("../components/network"));
17
+ const summary_1 = (0, tslib_1.__importDefault)(require("../components/summary"));
18
+ const select_languages_1 = (0, tslib_1.__importDefault)(require("../lib/select_languages"));
19
+ const select_regions_1 = (0, tslib_1.__importDefault)(require("../lib/select_regions"));
20
+ const select_zones_1 = (0, tslib_1.__importDefault)(require("../lib/select_zones"));
21
+ const select_installation_device_1 = (0, tslib_1.__importDefault)(require("../lib/select_installation_device"));
22
+ const select_installation_mode_1 = (0, tslib_1.__importDefault)(require("../lib/select_installation_mode"));
23
+ const select_user_swap_choice_1 = (0, tslib_1.__importDefault)(require("../lib/select_user_swap_choice"));
24
+ const select_filesystem_type_1 = (0, tslib_1.__importDefault)(require("../lib/select_filesystem_type"));
25
+ const get_username_1 = (0, tslib_1.__importDefault)(require("../lib/get_username"));
26
+ const get_userfullname_1 = (0, tslib_1.__importDefault)(require("../lib/get_userfullname"));
27
+ const get_hostname_1 = (0, tslib_1.__importDefault)(require("../lib/get_hostname"));
28
+ const get_password_1 = (0, tslib_1.__importDefault)(require("../lib/get_password"));
29
+ const select_keyboard_layout_1 = (0, tslib_1.__importDefault)(require("../lib/select_keyboard_layout"));
30
+ const select_interface_1 = (0, tslib_1.__importDefault)(require("../lib/select_interface"));
31
+ const select_address_type_1 = (0, tslib_1.__importDefault)(require("../lib/select_address_type"));
32
+ const get_address_1 = (0, tslib_1.__importDefault)(require("../lib/get_address"));
33
+ const get_netmask_1 = (0, tslib_1.__importDefault)(require("../lib/get_netmask"));
34
+ const get_gateway_1 = (0, tslib_1.__importDefault)(require("../lib/get_gateway"));
35
+ const get_domain_1 = (0, tslib_1.__importDefault)(require("../lib/get_domain"));
36
+ const get_dns_1 = (0, tslib_1.__importDefault)(require("../lib/get_dns"));
37
+ const krill_install_1 = (0, tslib_1.__importDefault)(require("./krill_install"));
38
38
  class Krill {
39
- async prepare() {
39
+ /**
40
+ *
41
+ * @param cryped
42
+ */
43
+ async prepare(cryped = false) {
40
44
  const oWelcome = await this.welcome();
41
45
  const oLocation = await this.location(oWelcome.language);
42
46
  const oKeyboard = await this.keyboard();
43
- const oPartitions = await this.partitions();
47
+ const oPartitions = await this.partitions(cryped);
44
48
  const oUsers = await this.users();
45
49
  const oNetwork = await this.network();
46
50
  await this.summary(oLocation, oKeyboard, oPartitions);
@@ -62,7 +66,7 @@ class Krill {
62
66
  }
63
67
  welcomeElem = react_1.default.createElement(welcome_1.default, { language: language });
64
68
  redraw(welcomeElem);
65
- language = await select_languages_1.default();
69
+ language = await (0, select_languages_1.default)();
66
70
  }
67
71
  return { language: language };
68
72
  }
@@ -84,10 +88,10 @@ class Krill {
84
88
  }
85
89
  locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
86
90
  redraw(locationElem);
87
- region = await select_regions_1.default();
91
+ region = await (0, select_regions_1.default)();
88
92
  locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
89
93
  redraw(locationElem);
90
- zone = await select_zones_1.default(region);
94
+ zone = await (0, select_zones_1.default)(region);
91
95
  }
92
96
  return {
93
97
  language: language,
@@ -117,7 +121,7 @@ class Krill {
117
121
  keyboardLayout = '';
118
122
  keyboardVariant = '';
119
123
  }
120
- keyboardLayout = await select_keyboard_layout_1.default();
124
+ keyboardLayout = await (0, select_keyboard_layout_1.default)();
121
125
  }
122
126
  return {
123
127
  keyboardModel: keyboardModel,
@@ -128,39 +132,48 @@ class Krill {
128
132
  /**
129
133
  * PARTITIONS
130
134
  */
131
- async partitions() {
135
+ async partitions(crypted = false) {
132
136
  let installationDevice = '/dev/sda';
133
137
  let installationMode = 'standard';
138
+ if (crypted) {
139
+ installationMode = 'full-encrypted';
140
+ }
141
+ let luksPassphrase = 'evolution';
134
142
  let filesystemType = 'ext4';
135
143
  let userSwapChoice = 'small';
136
144
  let partitionsElem;
137
145
  while (true) {
138
- partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
146
+ partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
139
147
  if (await confirm(partitionsElem, "Confirm Partitions datas?")) {
140
148
  break;
141
149
  }
142
150
  else {
143
151
  installationDevice = '';
144
- installationMode = '';
152
+ installationMode = 'standard';
153
+ if (crypted) {
154
+ installationMode = 'full-encrypted';
155
+ }
156
+ luksPassphrase = 'evolution';
145
157
  filesystemType = '';
146
158
  userSwapChoice = '';
147
159
  }
148
- partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
160
+ partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
149
161
  redraw(partitionsElem);
150
- installationDevice = await select_installation_device_1.default();
151
- partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
162
+ installationDevice = await (0, select_installation_device_1.default)();
163
+ partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
152
164
  redraw(partitionsElem);
153
- installationMode = await select_installation_mode_1.default();
154
- partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
165
+ installationMode = await (0, select_installation_mode_1.default)();
166
+ partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
155
167
  redraw(partitionsElem);
156
- filesystemType = await select_filesystem_type_1.default();
157
- partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
168
+ filesystemType = await (0, select_filesystem_type_1.default)();
169
+ partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
158
170
  redraw(partitionsElem);
159
- userSwapChoice = await select_user_swap_choice_1.default();
171
+ userSwapChoice = await (0, select_user_swap_choice_1.default)();
160
172
  }
161
173
  return {
162
174
  installationDevice: installationDevice,
163
175
  installationMode: installationMode,
176
+ luksPassphrase: luksPassphrase,
164
177
  filesystemType: filesystemType,
165
178
  userSwapChoice: userSwapChoice
166
179
  };
@@ -184,16 +197,16 @@ class Krill {
184
197
  }
185
198
  usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
186
199
  redraw(usersElem);
187
- name = await get_username_1.default(name);
200
+ name = await (0, get_username_1.default)(name);
188
201
  usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
189
202
  redraw(usersElem);
190
- fullname = await get_userfullname_1.default(fullname);
203
+ fullname = await (0, get_userfullname_1.default)(fullname);
191
204
  usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
192
205
  redraw(usersElem);
193
- password = await get_password_1.default(password);
206
+ password = await (0, get_password_1.default)(password);
194
207
  usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
195
208
  redraw(usersElem);
196
- hostname = await get_hostname_1.default(hostname);
209
+ hostname = await (0, get_hostname_1.default)(hostname);
197
210
  }
198
211
  return {
199
212
  name: name,
@@ -230,14 +243,14 @@ class Krill {
230
243
  if (await confirm(networkElem, "Confirm Network datas?")) {
231
244
  break;
232
245
  }
233
- i.iface = await select_interface_1.default(i.iface, ifaces);
234
- i.addressType = await select_address_type_1.default();
246
+ i.iface = await (0, select_interface_1.default)(i.iface, ifaces);
247
+ i.addressType = await (0, select_address_type_1.default)();
235
248
  if (i.addressType === 'static') {
236
- i.address = await get_address_1.default(i.address);
237
- i.netmask = await get_netmask_1.default(i.netmask);
238
- i.gateway = await get_gateway_1.default(i.gateway);
239
- i.domain = await get_domain_1.default(i.domain);
240
- i.dns = (await get_dns_1.default(dnsString)).split(';');
249
+ i.address = await (0, get_address_1.default)(i.address);
250
+ i.netmask = await (0, get_netmask_1.default)(i.netmask);
251
+ i.gateway = await (0, get_gateway_1.default)(i.gateway);
252
+ i.domain = await (0, get_domain_1.default)(i.domain);
253
+ i.dns = (await (0, get_dns_1.default)(dnsString)).split(';');
241
254
  dnsString = '';
242
255
  for (let c = 0; c < i.dns.length; c++) {
243
256
  dnsString += i.dns[c].trim();
@@ -296,7 +309,7 @@ function redraw(elem) {
296
309
  opt.patchConsole = false;
297
310
  opt.debug = false;
298
311
  shelljs_1.default.exec('clear');
299
- ink_1.render(elem, opt);
312
+ (0, ink_1.render)(elem, opt);
300
313
  }
301
314
  function netmask2CIDR(mask) {
302
315
  const countCharOccurences = (string, char) => string.split(char).length - 1;
package/lib/classes/n8.js CHANGED
@@ -6,7 +6,8 @@
6
6
  * license: MIT
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const fs = require("fs");
9
+ const tslib_1 = require("tslib");
10
+ const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
10
11
  class n8 {
11
12
  /**
12
13
  *
@@ -15,21 +16,21 @@ class n8 {
15
16
  static isDirectory(name) {
16
17
  // console.log (`isDirectory: ${name}`)
17
18
  const path = '/' + name;
18
- const isDirectory = fs.existsSync(path) && fs.lstatSync(path).isDirectory();
19
+ const isDirectory = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isDirectory();
19
20
  // console.log(`path: ${path} isDirectory: ${isDirectory}`)
20
21
  return isDirectory;
21
22
  }
22
23
  static isFile(name) {
23
24
  // console.log (`isFile: ${name}`)
24
25
  const path = '/' + name;
25
- const isFile = fs.existsSync(path) && fs.lstatSync(path).isFile();
26
+ const isFile = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isFile();
26
27
  // console.log(`path: ${path} isFile: ${isFile}`)
27
28
  return isFile;
28
29
  }
29
30
  static isSymbolicLink(name) {
30
31
  // console.log (`isSymbolicLink: ${name}`)
31
32
  const path = '/' + name;
32
- const isSymbolicLink = fs.existsSync(path) && fs.lstatSync(path).isSymbolicLink();
33
+ const isSymbolicLink = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isSymbolicLink();
33
34
  // console.log(`path: ${path} isSymbolicLink: ${isSymbolicLink}`)
34
35
  return isSymbolicLink;
35
36
  }
@@ -37,13 +38,7 @@ class n8 {
37
38
  // const util = require('util')
38
39
  // console.log(util.inspect(dir, false, null, true /* enable colors */))
39
40
  let dirname = '';
40
- if (process.versions.node.split('.')[0] === '8') {
41
- dirname = JSON.stringify(dir).replace(`"`, ``).replace(`"`, ``);
42
- }
43
- else {
44
- // se Node>8 restituisce dirent.name
45
- dirname = dir.name;
46
- }
41
+ dirname = process.versions.node.split('.')[0] === '8' ? JSON.stringify(dir).replace('"', '').replace('"', '') : dir.name;
47
42
  return dirname;
48
43
  }
49
44
  }
@@ -1,6 +1,7 @@
1
1
  import { IMyAddons } from '../interfaces';
2
2
  import Incubator from './incubation/incubator';
3
3
  import Settings from './settings';
4
+ import Users from './users';
4
5
  /**
5
6
  * Ovary:
6
7
  */
@@ -8,6 +9,7 @@ export default class Ovary {
8
9
  toNull: string;
9
10
  incubator: Incubator;
10
11
  settings: Settings;
12
+ familyId: string;
11
13
  snapshot_prefix: string;
12
14
  snapshot_basename: string;
13
15
  theme: string;
@@ -42,8 +44,8 @@ export default class Ovary {
42
44
  */
43
45
  editLiveFs(verbose?: boolean): Promise<void>;
44
46
  /**
45
- * syslinux
46
- */
47
+ * syslinux
48
+ */
47
49
  syslinux(verbose?: boolean): Promise<void>;
48
50
  /**
49
51
  * async isolinux
@@ -52,7 +54,17 @@ export default class Ovary {
52
54
  /**
53
55
  * copy kernel
54
56
  */
55
- copyKernel(verbose?: boolean): Promise<void>;
57
+ kernelCopy(verbose?: boolean): Promise<void>;
58
+ /**
59
+ * necessita di verbose
60
+ */
61
+ initrdCreate(verbose?: boolean): Promise<void>;
62
+ /**
63
+ *
64
+ * @param verbose
65
+ * @returns
66
+ */
67
+ initrdCopy(verbose?: boolean): Promise<void>;
56
68
  /**
57
69
  * squashFs: crea in live filesystem.squashfs
58
70
  */
@@ -77,10 +89,6 @@ export default class Ovary {
77
89
  * - normal solo la creazione della directory, nessun mount
78
90
  * - merged creazione della directory e mount ro
79
91
  * - mergedAndOverlay creazione directory, overlay e mount rw
80
- *
81
- * @param dir
82
- *
83
- * @returns merged
84
92
  */
85
93
  merged(dir: string): boolean;
86
94
  /**
@@ -104,16 +112,6 @@ export default class Ovary {
104
112
  * @param verbose
105
113
  */
106
114
  ubindVfs(verbose?: boolean): Promise<void>;
107
- /**
108
- *
109
- * @param verbose
110
- */
111
- getUsersDatasSize(verbose?: boolean): Promise<number>;
112
- /**
113
- *
114
- * @param verbose
115
- */
116
- copyUsersDatas(verbose?: boolean): Promise<void>;
117
115
  /**
118
116
  *
119
117
  * @param verbose
@@ -128,7 +126,7 @@ export default class Ovary {
128
126
  /**
129
127
  *
130
128
  */
131
- createAutostart(theme: string | undefined, myAddons: IMyAddons, verbose?: boolean): Promise<void>;
129
+ createXdgAutostart(theme: string | undefined, myAddons: IMyAddons, verbose?: boolean): Promise<void>;
132
130
  /**
133
131
  * Creazione link desktop per lxde
134
132
  * @param name
@@ -143,21 +141,32 @@ export default class Ovary {
143
141
  addRemoveExclusion(add: boolean, exclusion: string): void;
144
142
  /**
145
143
  * makeEfi
146
- * Create /boot and /efi for UEFI
147
- */
144
+ */
148
145
  makeEfi(theme?: string, verbose?: boolean): Promise<void>;
149
146
  /**
150
- * info Debian GNU/Linux 10.8.0 "Buster" - Official i386 NETINST 20210206-10:54
151
- * mkisofs xorriso -as mkisofs -r -checksum_algorithm_iso md5,sha1,sha256,sha512 -V 'Debian 10.8.0 i386 n' -o /srv/cdbuilder.debian.org/dst/deb-cd/out/2busteri386/debian-10.8.0-i386-NETINST-1.iso -jigdo-jigdo /srv/cdbuilder.debian.org/dst/deb-cd/out/2busteri386/debian-10.8.0-i386-NETINST-1.jigdo -jigdo-template /srv/cdbuilder.debian.org/dst/deb-cd/out/2busteri386/debian-10.8.0-i386-NETINST-1.template -jigdo-map Debian=/srv/cdbuilder.debian.org/src/ftp/debian/ -jigdo-exclude boot1 -md5-list /srv/cdbuilder.debian.org/src/deb-cd/tmp/2busteri386/buster/md5-check -jigdo-min-file-size 1024 -jigdo-exclude 'README*' -jigdo-exclude /doc/ -jigdo-exclude /md5sum.txt -jigdo-exclude /.disk/ -jigdo-exclude /pics/ -jigdo-exclude 'Release*' -jigdo-exclude 'Packages*' -jigdo-exclude 'Sources*' -J -joliet-long -cache-inodes -isohybrid-mbr syslinux/usr/lib/ISOLINUX/isohdpfx.bin -b isolinux/isolinux.bin -c isolinux/boot.cat -boot-load-size 4 -boot-info-table -no-emul-boot -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat -isohybrid-apm-hfsplus boot1 CD1
147
+ * makeDotDisk
148
+ * create .disk/info, .disk/mksquashfs, .disk/mkiso
149
+ * return mkiso
150
+ */
151
+ makeDotDisk(backup?: boolean, verbose?: boolean): string;
152
+ /**
153
+ *
154
+ * @param backup
155
+ * @returns cmd 4 mkiso
152
156
  */
153
- makeDotDisk(backup?: boolean, verbose?: boolean): Promise<void>;
157
+ xorrisoCommand(backup?: boolean): string;
154
158
  /**
155
- * makeIsoImage
159
+ * makeIso
160
+ * cmd: cmd 4 xorirriso
156
161
  */
157
- makeIso(backup?: boolean, scriptOnly?: boolean, verbose?: boolean): Promise<void>;
162
+ makeIso(cmd: string, scriptOnly?: boolean, verbose?: boolean): Promise<void>;
158
163
  /**
159
164
  * finished = show the results
160
165
  * @param scriptOnly
161
166
  */
162
167
  finished(scriptOnly?: boolean): void;
168
+ /**
169
+ * fill
170
+ */
171
+ usersFill(): Promise<Users[]>;
163
172
  }