penguins-eggs 8.17.4 → 9.0.2

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 (264) hide show
  1. package/README.md +235 -155
  2. package/addons/README.md +78 -84
  3. package/addons/{pve → blissos}/theme/applications/install-debian.desktop +0 -0
  4. package/addons/{pve → blissos}/theme/artwork/install-debian.png +0 -0
  5. package/addons/blissos/theme/calamares/branding/blissos-logo.png +0 -0
  6. package/addons/{pve → 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/{pve → blissos}/theme/calamares/modules/partition.yml +2 -2
  14. package/addons/blissos/theme/livecd/README.md +23 -0
  15. package/addons/blissos/theme/livecd/grub.template.cfg +34 -0
  16. package/addons/blissos/theme/livecd/grub.theme.cfg +46 -0
  17. package/addons/blissos/theme/livecd/isolinux.template.cfg +29 -0
  18. package/addons/blissos/theme/livecd/isolinux.theme.cfg +45 -0
  19. package/addons/blissos/theme/livecd/splash.png +0 -0
  20. package/addons/debian/theme/README.md +23 -0
  21. package/addons/debian/theme/{branding → calamares/branding}/branding.desc +0 -0
  22. package/addons/debian/theme/{branding → calamares/branding}/debian-logo.png +0 -0
  23. package/addons/debian/theme/{branding → calamares/branding}/show.qml +0 -0
  24. package/addons/debian/theme/{branding → calamares/branding}/slide1.png +0 -0
  25. package/addons/debian/theme/{branding → calamares/branding}/welcome.png +0 -0
  26. package/addons/debian/theme/calamares/modules/partition.yml +233 -0
  27. package/addons/debian/theme/livecd/README.md +23 -0
  28. package/addons/debian/theme/livecd/grub.template.cfg +34 -0
  29. package/addons/{pve/theme/livecd/theme.cfg → debian/theme/livecd/grub.theme.cfg} +4 -0
  30. package/addons/debian/theme/livecd/isolinux.template.cfg +30 -0
  31. package/{conf/distros/buster/isolinux/stdmenu.template.cfg → addons/debian/theme/livecd/isolinux.theme.cfg} +4 -0
  32. package/addons/debian/theme/livecd/splash.png +0 -0
  33. package/addons/deblinux/theme/README.md +19 -12
  34. package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
  35. package/addons/eggs/theme/livecd/README.md +21 -6
  36. package/addons/eggs/theme/livecd/grub.template.cfg +11 -37
  37. package/addons/eggs/theme/livecd/{theme.cfg → grub.theme.cfg} +5 -1
  38. package/addons/eggs/theme/livecd/isolinux.template.cfg +29 -0
  39. package/addons/eggs/theme/livecd/isolinux.theme.cfg +46 -0
  40. package/addons/eggs/theme/livecd/splash.png +0 -0
  41. package/addons/guadalinex/theme/livecd/README.md +23 -0
  42. package/addons/guadalinex/theme/livecd/{menu.template.cfg → isolinux.template.cfg} +12 -3
  43. package/addons/guadalinex/theme/livecd/{theme.cfg → isolinux.theme.cfg} +0 -0
  44. package/addons/neon/theme/livecd/README.md +23 -0
  45. package/addons/neon/theme/livecd/grub.template.cfg +34 -0
  46. package/addons/{ufficiozero/theme/livecd/theme.cfg → neon/theme/livecd/grub.theme.cfg} +5 -1
  47. package/addons/neon/theme/livecd/isolinux.template.cfg +29 -0
  48. package/addons/neon/theme/livecd/isolinux.theme.cfg +46 -0
  49. package/addons/neon/theme/livecd/splash.pcx +0 -0
  50. package/addons/neon/theme/livecd/splash.png +0 -0
  51. package/addons/openos/theme/livecd/README.md +23 -0
  52. package/addons/openos/theme/livecd/{theme.cfg → grub.theme.cfg} +0 -0
  53. package/addons/openos/theme/livecd/{menu.template.cfg → isolinux.template.cfg} +11 -3
  54. package/addons/openos/theme/livecd/isolinux.theme.cfg +45 -0
  55. package/addons/ufficiozero/theme/applications/install-debian.desktop +17 -2
  56. package/bin/dev +17 -0
  57. package/bin/dev.cmd +3 -0
  58. package/bin/run +2 -4
  59. package/conf/distros/bionic/calamares/settings.yml +5 -5
  60. package/conf/distros/bookworm/README.md +9 -0
  61. package/conf/distros/bullseye/README.md +6 -8
  62. package/conf/distros/buster/calamares/modules/shellprocess_eggs-cleanup.yml +6 -0
  63. package/conf/distros/buster/calamares/settings.yml +14 -3
  64. package/conf/distros/chimaera/README.md +3 -0
  65. package/conf/distros/daedalus/README.md +3 -0
  66. package/conf/distros/focal/calamares/settings.yml +2 -2
  67. package/conf/distros/jammy/README.md +9 -0
  68. package/conf/distros/rolling/README.md +3 -0
  69. package/conf/distros/rolling/calamares/calamares-modules/remove-link/module.yml +9 -0
  70. package/conf/distros/rolling/calamares/calamares-modules/remove-link/remove-link.sh +3 -0
  71. package/conf/distros/rolling/calamares/modules/displaymanager.yml +22 -0
  72. package/conf/distros/rolling/calamares/modules/finished.yml +6 -0
  73. package/conf/distros/rolling/calamares/modules/fstab.yml +13 -0
  74. package/conf/distros/rolling/calamares/modules/locale.yml +97 -0
  75. package/conf/distros/rolling/calamares/modules/luksopenswaphookcfg.yml +6 -0
  76. package/conf/distros/rolling/calamares/modules/mount.yml +38 -0
  77. package/conf/distros/rolling/calamares/modules/packages.yml +8 -0
  78. package/conf/distros/rolling/calamares/modules/removeuser.yml +15 -0
  79. package/conf/distros/rolling/calamares/modules/unpackfs.yml +7 -0
  80. package/conf/distros/rolling/calamares/modules/users.yml +20 -0
  81. package/conf/distros/rolling/calamares/modules/welcome.yml +19 -0
  82. package/conf/distros/{bullseye → rolling}/calamares/settings.yml +17 -12
  83. package/conf/distros/thirtyfive/README.md +3 -0
  84. package/conf/distros/tumbleweed/README.md +3 -0
  85. package/conf/eggs.yaml +1 -1
  86. package/conf/exclude.list +2 -4
  87. package/conf/tools.yaml +1 -1
  88. package/lib/classes/basket.js +24 -28
  89. package/lib/classes/bleach.js +17 -17
  90. package/lib/classes/compressors.js +15 -14
  91. package/lib/classes/daddy.js +38 -31
  92. package/lib/classes/distro.d.ts +3 -2
  93. package/lib/classes/distro.js +288 -179
  94. package/lib/classes/family/archlinux.d.ts +69 -0
  95. package/lib/classes/family/archlinux.js +181 -0
  96. package/lib/classes/family/debian.d.ts +64 -0
  97. package/lib/classes/family/debian.js +227 -0
  98. package/lib/classes/family/fedora.d.ts +63 -0
  99. package/lib/classes/family/fedora.js +169 -0
  100. package/lib/classes/family/suse.d.ts +63 -0
  101. package/lib/classes/family/suse.js +169 -0
  102. package/lib/classes/i18n.js +16 -16
  103. package/lib/classes/incubation/branding.js +5 -4
  104. package/lib/classes/incubation/distros/bionic.js +1 -2
  105. package/lib/classes/incubation/distros/buster.js +2 -2
  106. package/lib/classes/incubation/distros/focal.js +3 -2
  107. package/lib/classes/incubation/distros/jessie.js +1 -25
  108. package/lib/classes/incubation/distros/{bullseye.d.ts → rolling.d.ts} +3 -3
  109. package/lib/classes/incubation/distros/{bullseye.js → rolling.js} +15 -16
  110. package/lib/classes/incubation/fisherman-helper/displaymanager.js +2 -7
  111. package/lib/classes/incubation/fisherman-helper/packages.js +31 -32
  112. package/lib/classes/incubation/fisherman.d.ts +17 -17
  113. package/lib/classes/incubation/fisherman.js +84 -71
  114. package/lib/classes/incubation/incubator.js +116 -78
  115. package/lib/classes/incubation/installer.d.ts +2 -2
  116. package/lib/classes/incubation/installer.js +6 -20
  117. package/lib/classes/initrd.d.ts +1 -1
  118. package/lib/classes/initrd.js +37 -30
  119. package/lib/classes/krill_install.js +135 -132
  120. package/lib/classes/krill_prepare.js +51 -51
  121. package/lib/classes/n8.js +6 -11
  122. package/lib/classes/ovary.d.ts +29 -11
  123. package/lib/classes/ovary.js +711 -605
  124. package/lib/classes/pacman.d.ts +53 -58
  125. package/lib/classes/pacman.js +512 -431
  126. package/lib/classes/pve-live.js +6 -6
  127. package/lib/classes/settings.js +46 -55
  128. package/lib/classes/systemctl.d.ts +6 -6
  129. package/lib/classes/systemctl.js +7 -7
  130. package/lib/classes/tools.d.ts +1 -1
  131. package/lib/classes/tools.js +10 -10
  132. package/lib/classes/utils.d.ts +9 -12
  133. package/lib/classes/utils.js +127 -106
  134. package/lib/classes/xdg.js +94 -90
  135. package/lib/classes/yolk.js +36 -29
  136. package/lib/commands/adapt.d.ts +3 -3
  137. package/lib/commands/adapt.js +12 -12
  138. package/lib/commands/bro.d.ts +14 -0
  139. package/lib/commands/bro.js +31 -0
  140. package/lib/commands/calamares.d.ts +7 -7
  141. package/lib/commands/calamares.js +21 -46
  142. package/lib/commands/config.d.ts +5 -5
  143. package/lib/commands/config.js +68 -75
  144. package/lib/commands/dad.d.ts +5 -5
  145. package/lib/commands/dad.js +11 -11
  146. package/lib/commands/export/deb.d.ts +8 -8
  147. package/lib/commands/export/deb.js +16 -16
  148. package/lib/commands/export/docs.d.ts +2 -2
  149. package/lib/commands/export/docs.js +9 -9
  150. package/lib/commands/export/iso.d.ts +4 -4
  151. package/lib/commands/export/iso.js +12 -17
  152. package/lib/commands/info.d.ts +9 -3
  153. package/lib/commands/info.js +14 -164
  154. package/lib/commands/install.d.ts +4 -4
  155. package/lib/commands/install.js +19 -14
  156. package/lib/commands/kill.d.ts +3 -3
  157. package/lib/commands/kill.js +11 -13
  158. package/lib/commands/mom.d.ts +2 -2
  159. package/lib/commands/mom.js +8 -8
  160. package/lib/commands/produce.d.ts +14 -14
  161. package/lib/commands/produce.js +42 -45
  162. package/lib/commands/remove.d.ts +5 -5
  163. package/lib/commands/remove.js +46 -57
  164. package/lib/commands/tools/clean.d.ts +3 -3
  165. package/lib/commands/tools/clean.js +10 -12
  166. package/lib/commands/tools/locales.d.ts +4 -4
  167. package/lib/commands/tools/locales.js +8 -8
  168. package/lib/commands/tools/skel.d.ts +4 -4
  169. package/lib/commands/tools/skel.js +10 -15
  170. package/lib/commands/tools/stat.d.ts +7 -4
  171. package/lib/commands/tools/stat.js +20 -13
  172. package/lib/commands/tools/yolk.d.ts +3 -3
  173. package/lib/commands/tools/yolk.js +12 -12
  174. package/lib/commands/update.d.ts +5 -10
  175. package/lib/commands/update.js +56 -72
  176. package/lib/components/elements/information.d.ts +4 -0
  177. package/lib/components/elements/information.js +166 -0
  178. package/lib/components/elements/steps.js +1 -1
  179. package/lib/components/elements/title.js +7 -10
  180. package/lib/components/finished.js +5 -5
  181. package/lib/components/install.js +5 -5
  182. package/lib/components/keyboard.js +5 -5
  183. package/lib/components/location.js +5 -5
  184. package/lib/components/network.js +5 -5
  185. package/lib/components/partitions.js +5 -5
  186. package/lib/components/summary.js +5 -5
  187. package/lib/components/users.js +6 -6
  188. package/lib/components/welcome.js +6 -6
  189. package/lib/index.d.ts +1 -1
  190. package/lib/index.js +2 -2
  191. package/lib/interfaces/i-distro.d.ts +3 -2
  192. package/lib/interfaces/i-settings.d.ts +2 -2
  193. package/lib/lib/cli-autologin.d.ts +19 -2
  194. package/lib/lib/cli-autologin.js +114 -39
  195. package/lib/lib/dependencies.d.ts +9 -6
  196. package/lib/lib/dependencies.js +22 -13
  197. package/lib/lib/get_address.js +2 -2
  198. package/lib/lib/get_dns.js +2 -2
  199. package/lib/lib/get_domain.js +2 -2
  200. package/lib/lib/get_gateway.js +2 -2
  201. package/lib/lib/get_hostname.js +2 -2
  202. package/lib/lib/get_netmask.js +2 -2
  203. package/lib/lib/get_password.js +2 -2
  204. package/lib/lib/get_root_password.js +2 -2
  205. package/lib/lib/get_userfullname.js +2 -2
  206. package/lib/lib/get_username.js +2 -2
  207. package/lib/lib/select_address_type.js +2 -5
  208. package/lib/lib/select_filesystem_type.js +5 -14
  209. package/lib/lib/select_installation_device.js +3 -3
  210. package/lib/lib/select_interface.js +1 -1
  211. package/lib/lib/select_keyboard_layout.js +2 -10
  212. package/lib/lib/select_languages.js +2 -2
  213. package/lib/lib/select_regions.js +1 -12
  214. package/lib/lib/select_user_swap_choice.js +4 -4
  215. package/lib/lib/select_zones.js +483 -62
  216. package/oclif.manifest.json +1 -1
  217. package/package.json +115 -107
  218. package/scripts/bros/waydroid-helper.sh +92 -0
  219. package/scripts/eggs.bash +65 -35
  220. package/scripts/not-used/eggs-cleanup.sh +7 -0
  221. package/scripts/{install-eggs-ppa.sh → not-used/install-eggs-ppa.sh} +0 -0
  222. package/scripts/{mkinitramfs → not-used/mkinitramfs} +0 -0
  223. package/scripts/{pve-live.sh → not-used/pve-live.sh} +0 -0
  224. package/addons/eggs/theme/livecd/menu.template.cfg +0 -54
  225. package/addons/pve/theme/applications/penguins-pve.desktop +0 -24
  226. package/addons/pve/theme/calamares/branding/pve-logo.png +0 -0
  227. package/addons/pve/theme/calamares/branding/show.qml +0 -227
  228. package/addons/pve/theme/calamares/branding/slide1.png +0 -0
  229. package/addons/pve/theme/calamares/branding/slide2.png +0 -0
  230. package/addons/pve/theme/calamares/branding/slide3.png +0 -0
  231. package/addons/pve/theme/calamares/branding/slide4.png +0 -0
  232. package/addons/pve/theme/calamares/branding/slide5.png +0 -0
  233. package/addons/pve/theme/calamares/branding/slide6.png +0 -0
  234. package/addons/pve/theme/calamares/branding/slide7.png +0 -0
  235. package/addons/pve/theme/calamares/branding/slide8.png +0 -0
  236. package/addons/pve/theme/calamares/branding/slide9.png +0 -0
  237. package/addons/pve/theme/calamares/branding/welcome.png +0 -0
  238. package/addons/pve/theme/livecd/README.md +0 -8
  239. package/addons/pve/theme/livecd/grub.template.cfg +0 -60
  240. package/addons/pve/theme/livecd/menu.template.cfg +0 -54
  241. package/addons/pve/theme/livecd/splash.png +0 -0
  242. package/addons/ufficiozero/theme/artwork/install-debian.png +0 -0
  243. package/addons/ufficiozero/theme/livecd/README.md +0 -8
  244. package/addons/ufficiozero/theme/livecd/grub.template.cfg +0 -60
  245. package/addons/ufficiozero/theme/livecd/menu.template.cfg +0 -54
  246. package/changelog.md +0 -154
  247. package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -28
  248. package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/module.yml +0 -8
  249. package/conf/distros/buster/grub/grub.template.cfg +0 -58
  250. package/conf/distros/buster/grub/loopback.cfg +0 -1
  251. package/conf/distros/buster/grub/theme.cfg +0 -42
  252. package/conf/distros/buster/isolinux/isolinux.template.cfg +0 -8
  253. package/conf/distros/buster/isolinux/menu.template.cfg +0 -56
  254. package/conf/distros/focal/grub/grub.template.cfg +0 -67
  255. package/conf/distros/focal/isolinux/menu.template.cfg +0 -54
  256. package/lib/classes/incubation/distros/beowulf.d.ts +0 -30
  257. package/lib/classes/incubation/distros/beowulf.js +0 -69
  258. package/lib/classes/krill_install_compare.d.ts +0 -200
  259. package/lib/classes/krill_install_compare.js +0 -1110
  260. package/manpages/doc/man/eggs.1.gz +0 -0
  261. package/scripts/python-minimal-deb/anti-python-minimal +0 -7
  262. package/scripts/python-minimal-deb/python-minimal_99_all.deb +0 -0
  263. package/scripts/python-minimal-deb/python-minimal_99_amd64.buildinfo +0 -168
  264. package/scripts/python-minimal-deb/python-minimal_99_amd64.changes +0 -25
@@ -8,22 +8,22 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const tslib_1 = require("tslib");
11
- const settings_1 = tslib_1.__importDefault(require("./settings"));
12
- const react_1 = tslib_1.__importDefault(require("react"));
11
+ const settings_1 = (0, tslib_1.__importDefault)(require("./settings"));
12
+ const react_1 = (0, tslib_1.__importDefault)(require("react"));
13
13
  const ink_1 = require("ink");
14
- const install_1 = tslib_1.__importDefault(require("../components/install"));
15
- const finished_1 = tslib_1.__importDefault(require("../components/finished"));
16
- const fs = require("fs");
17
- const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
14
+ const install_1 = (0, tslib_1.__importDefault)(require("../components/install"));
15
+ const finished_1 = (0, tslib_1.__importDefault)(require("../components/finished"));
16
+ const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
17
+ const js_yaml_1 = (0, tslib_1.__importDefault)(require("js-yaml"));
18
18
  const shx = require("shelljs");
19
- const utils_1 = tslib_1.__importDefault(require("./utils"));
19
+ const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
20
20
  const cliAutologin = require("../lib/cli-autologin");
21
- const pacman_1 = tslib_1.__importDefault(require("./pacman"));
21
+ const pacman_1 = (0, tslib_1.__importDefault)(require("./pacman"));
22
22
  const installer_1 = require("./incubation/installer");
23
- const xdg_1 = tslib_1.__importDefault(require("./xdg"));
24
- const distro_1 = tslib_1.__importDefault(require("./distro"));
23
+ const xdg_1 = (0, tslib_1.__importDefault)(require("./xdg"));
24
+ const distro_1 = (0, tslib_1.__importDefault)(require("./distro"));
25
25
  const child_process_1 = require("child_process");
26
- const exec = require('../lib/utils').exec;
26
+ const utils_2 = require("../lib/utils");
27
27
  /**
28
28
  * hatching: installazione o cova!!!
29
29
  */
@@ -50,7 +50,7 @@ class Hatching {
50
50
  this.settings = {};
51
51
  this.remix = {};
52
52
  this.distro = {};
53
- this.installer = installer_1.installer();
53
+ this.installer = (0, installer_1.installer)();
54
54
  this.settings = new settings_1.default();
55
55
  this.language = location.language;
56
56
  this.region = location.region;
@@ -67,7 +67,7 @@ class Hatching {
67
67
  this.devices.data = {};
68
68
  this.devices.swap = {};
69
69
  this.distro = new distro_1.default(this.remix);
70
- this.efi = fs.existsSync('/sys/firmware/efi/efivars');
70
+ this.efi = fs_1.default.existsSync('/sys/firmware/efi/efivars');
71
71
  }
72
72
  /**
73
73
  * install
@@ -142,7 +142,7 @@ class Hatching {
142
142
  /**
143
143
  * RESTORE USERS DATA
144
144
  */
145
- if (fs.existsSync('/run/live/medium/live/luks-users-data')) {
145
+ if (fs_1.default.existsSync('/run/live/medium/live/luks-users-data')) {
146
146
  message = "Restore users data from backup ";
147
147
  percent = 0.37;
148
148
  try {
@@ -291,7 +291,7 @@ class Hatching {
291
291
  *
292
292
  * create user
293
293
  */
294
- if (!fs.existsSync('/run/live/medium/live/luks-users-data')) {
294
+ if (!fs_1.default.existsSync('/run/live/medium/live/luks-users-data')) {
295
295
  message = "Adding user ";
296
296
  percent = 0.73;
297
297
  try {
@@ -315,7 +315,7 @@ class Hatching {
315
315
  redraw(react_1.default.createElement(install_1.default, { message: message, percent: percent }));
316
316
  }
317
317
  // await checkIt(message)
318
- if (await pacman_1.default.isGui()) {
318
+ if (pacman_1.default.isInstalledGui()) {
319
319
  try {
320
320
  message = "autologin GUI";
321
321
  percent = 0.80;
@@ -339,6 +339,9 @@ class Hatching {
339
339
  redraw(react_1.default.createElement(install_1.default, { message: message, percent: percent }));
340
340
  }
341
341
  }
342
+ // eggs-cleanup forced
343
+ await cliAutologin.msgRemove(`${this.installTarget}/etc/motd`);
344
+ await cliAutologin.msgRemove(`${this.installTarget}/etc/issue`);
342
345
  // await checkIt(message)
343
346
  message = "remove installer";
344
347
  percent = 0.87;
@@ -391,12 +394,12 @@ class Hatching {
391
394
  */
392
395
  async setTimezone() {
393
396
  const echo = { echo: false, ignore: false };
394
- if (fs.existsSync('/etc/localtime')) {
397
+ if (fs_1.default.existsSync('/etc/localtime')) {
395
398
  const cmd = `chroot ${this.installTarget} unlink /etc/localtime`;
396
- await exec(cmd, echo);
399
+ await (0, utils_2.exec)(cmd, echo);
397
400
  }
398
401
  const cmd = `chroot ${this.installTarget} ln -sf /usr/share/zoneinfo/${this.region}/${this.zone} /etc/localtime`;
399
- await exec(cmd, echo);
402
+ await (0, utils_2.exec)(cmd, echo);
400
403
  }
401
404
  /**
402
405
  *
@@ -415,9 +418,9 @@ adduser ${name} \
415
418
  --shell /bin/bash \
416
419
  --disabled-password \
417
420
  --gecos "${fullName},${roomNumber},${workPhone},${homePhone}"`;
418
- await exec(cmd, echo);
419
- await exec(`echo ${name}:${password} | chroot ${this.installTarget} chpasswd `, echo);
420
- await exec(`chroot ${this.installTarget} usermod -aG sudo ${name}`, echo);
421
+ await (0, utils_2.exec)(cmd, echo);
422
+ await (0, utils_2.exec)(`echo ${name}:${password} | chroot ${this.installTarget} chpasswd `, echo);
423
+ await (0, utils_2.exec)(`chroot ${this.installTarget} usermod -aG sudo ${name}`, echo);
421
424
  }
422
425
  /**
423
426
  * changePassword
@@ -427,7 +430,7 @@ adduser ${name} \
427
430
  async changePassword(name = 'live', newPassword = 'evolution') {
428
431
  const echo = utils_1.default.setEcho(this.verbose);
429
432
  const cmd = `echo ${name}:${newPassword} | chroot ${this.installTarget} chpasswd `;
430
- await exec(cmd, echo);
433
+ await (0, utils_2.exec)(cmd, echo);
431
434
  }
432
435
  /**
433
436
  * delUser
@@ -438,7 +441,7 @@ adduser ${name} \
438
441
  if (utils_1.default.isLive()) {
439
442
  const user = this.settings.config.user_opt;
440
443
  const cmd = `chroot ${this.installTarget} deluser --remove-home ${user}`;
441
- await exec(cmd, echo);
444
+ await (0, utils_2.exec)(cmd, echo);
442
445
  }
443
446
  }
444
447
  /**
@@ -447,9 +450,9 @@ adduser ${name} \
447
450
  * @param options
448
451
  */
449
452
  async bootloader() {
450
- await exec('chroot ' + this.installTarget + ' grub-install ' + this.partitions.installationDevice); // + this.toNull
451
- await exec('chroot ' + this.installTarget + ' update-grub'); // + this.toNull
452
- await exec('sleep 1'); // + this.toNull
453
+ await (0, utils_2.exec)('chroot ' + this.installTarget + ' grub-install ' + this.partitions.installationDevice); // + this.toNull
454
+ await (0, utils_2.exec)('chroot ' + this.installTarget + ' update-grub'); // + this.toNull
455
+ await (0, utils_2.exec)('sleep 1'); // + this.toNull
453
456
  }
454
457
  /**
455
458
  *
@@ -471,8 +474,8 @@ adduser ${name} \
471
474
  */
472
475
  async initramfs() {
473
476
  const echo = { echo: false, ignore: false };
474
- await exec('chroot ' + this.installTarget + ' mkinitramfs -o ~/initrd.img-$(uname -r)', echo);
475
- await exec('chroot ' + this.installTarget + ' mv ~/initrd.img-$(uname -r) /boot', echo);
477
+ await (0, utils_2.exec)('chroot ' + this.installTarget + ' mkinitramfs -o ~/initrd.img-$(uname -r)', echo);
478
+ await (0, utils_2.exec)('chroot ' + this.installTarget + ' mv ~/initrd.img-$(uname -r) /boot', echo);
476
479
  }
477
480
  /**
478
481
  * fstab()
@@ -536,7 +539,7 @@ adduser ${name} \
536
539
  const echo = { echo: false, ignore: false };
537
540
  const cmd = 'chroot ' + this.installTarget + ' ' + 'setupcon ' + this.toNull;
538
541
  try {
539
- await exec(cmd, echo);
542
+ await (0, utils_2.exec)(cmd, echo);
540
543
  }
541
544
  catch (error) {
542
545
  console.log(error);
@@ -578,8 +581,8 @@ adduser ${name} \
578
581
  const echo = { echo: false, ignore: false };
579
582
  const file = this.installTarget + '/etc/hostname';
580
583
  const text = this.users.hostname;
581
- await exec(`rm ${file} `, echo);
582
- fs.writeFileSync(file, text);
584
+ await (0, utils_2.exec)(`rm ${file} `, echo);
585
+ fs_1.default.writeFileSync(file, text);
583
586
  }
584
587
  /**
585
588
  * hosts
@@ -600,7 +603,7 @@ adduser ${name} \
600
603
  text += `ff02:: 1 ip6 - allnodes\n`;
601
604
  text += `ff02:: 2 ip6 - allrouters\n`;
602
605
  text += `ff02:: 3 ip6 - allhosts\n`;
603
- fs.writeFileSync(file, text);
606
+ fs_1.default.writeFileSync(file, text);
604
607
  }
605
608
  /**
606
609
  * removeInstaller
@@ -609,8 +612,8 @@ adduser ${name} \
609
612
  let file = `${this.installTarget}/usr/bin/penguins-links-add.sh`;
610
613
  let lines = [];
611
614
  let content = '';
612
- if (fs.existsSync(file)) {
613
- lines = fs.readFileSync(file, { encoding: 'utf8', flag: 'r' }).split('\n');
615
+ if (fs_1.default.existsSync(file)) {
616
+ lines = fs_1.default.readFileSync(file, { encoding: 'utf8', flag: 'r' }).split('\n');
614
617
  for (let i = 0; i < lines.length; i++) {
615
618
  if (lines[i]) {
616
619
  if (lines[i].search('penguins-krill.desktop') !== -1) {
@@ -626,15 +629,15 @@ adduser ${name} \
626
629
  }
627
630
  }
628
631
  }
629
- fs.writeFileSync(file, content);
632
+ fs_1.default.writeFileSync(file, content);
630
633
  }
631
634
  /**
632
635
  * unpackfs
633
636
  */
634
637
  async unpackfs() {
635
638
  const echo = utils_1.default.setEcho(this.verbose);
636
- const cmd = 'unsquashfs -d ' + this.installTarget + ' -f ' + this.distro.squashFs;
637
- await exec(cmd);
639
+ const cmd = 'unsquashfs -d ' + this.installTarget + ' -f ' + this.distro.mountpointSquashFs;
640
+ await (0, utils_2.exec)(cmd);
638
641
  }
639
642
  /**
640
643
  * syncfs
@@ -685,7 +688,7 @@ adduser ${name} \
685
688
  --info=progress2 \
686
689
  ${f} \
687
690
  / ${this.installTarget}`;
688
- await exec(cmd.trim());
691
+ await (0, utils_2.exec)(cmd.trim());
689
692
  }
690
693
  /**
691
694
  *
@@ -693,21 +696,21 @@ adduser ${name} \
693
696
  async restoreUsersData() {
694
697
  utils_1.default.warning('Opening volume luks-users-data and map it in /dev/mapper/eggs-users-data.');
695
698
  utils_1.default.warning('You will insert the same passphrase you choose during the backup production');
696
- child_process_1.execSync('sudo cryptsetup luksOpen /run/live/medium/live/luks-users-data eggs-users-data', { stdio: 'inherit' });
699
+ (0, child_process_1.execSync)('sudo cryptsetup luksOpen /run/live/medium/live/luks-users-data eggs-users-data', { stdio: 'inherit' });
697
700
  utils_1.default.warning('mounting volume eggs-users-data in /mnt');
698
- child_process_1.execSync('sudo mount /dev/mapper/eggs-users-data /mnt', { stdio: 'inherit' });
701
+ (0, child_process_1.execSync)('sudo mount /dev/mapper/eggs-users-data /mnt', { stdio: 'inherit' });
699
702
  utils_1.default.warning('removing live user in the installed system');
700
- child_process_1.execSync('rm -rf /tmp/calamares-krill-root/home/*', { stdio: 'inherit' });
703
+ (0, child_process_1.execSync)('rm -rf /tmp/calamares-krill-root/home/*', { stdio: 'inherit' });
701
704
  utils_1.default.warning('copying users home in the installed system');
702
- child_process_1.execSync('rsync -a /mnt/home/ /tmp/calamares-krill-root/home/', { stdio: 'inherit' });
705
+ (0, child_process_1.execSync)('rsync -a /mnt/home/ /tmp/calamares-krill-root/home/', { stdio: 'inherit' });
703
706
  utils_1.default.warning('copying users accounts in the installed system');
704
- child_process_1.execSync('cp /mnt/etc/passwd /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
705
- child_process_1.execSync('cp /mnt/etc/shadow /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
706
- child_process_1.execSync('cp /mnt/etc/group /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
707
+ (0, child_process_1.execSync)('cp /mnt/etc/passwd /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
708
+ (0, child_process_1.execSync)('cp /mnt/etc/shadow /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
709
+ (0, child_process_1.execSync)('cp /mnt/etc/group /tmp/calamares-krill-root/etc/', { stdio: 'inherit' });
707
710
  utils_1.default.warning('unmount /mnt');
708
- child_process_1.execSync('umount /mnt', { stdio: 'inherit' });
711
+ (0, child_process_1.execSync)('umount /mnt', { stdio: 'inherit' });
709
712
  utils_1.default.warning('closing eggs-users-data');
710
- child_process_1.execSync('cryptsetup luksClose eggs-users-data', { stdio: 'inherit' });
713
+ (0, child_process_1.execSync)('cryptsetup luksClose eggs-users-data', { stdio: 'inherit' });
711
714
  }
712
715
  /**
713
716
  * mkfs
@@ -716,7 +719,7 @@ adduser ${name} \
716
719
  const echo = { echo: false, ignore: false };
717
720
  const result = true;
718
721
  if (this.efi) {
719
- await exec(`mkdosfs -F 32 -I ${this.devices.efi.name}` + this.toNull, echo);
722
+ await (0, utils_2.exec)(`mkdosfs -F 32 -I ${this.devices.efi.name}` + this.toNull, echo);
720
723
  }
721
724
  if (this.devices.boot.name !== 'none') {
722
725
  // controllare se non vada !== undefined
@@ -724,16 +727,16 @@ adduser ${name} \
724
727
  this.devices.boot.fsType = `ext2`;
725
728
  this.devices.boot.mountPoint = '/boot';
726
729
  }
727
- await exec('mke2fs -Ft ' + this.devices.boot.fsType + ' ' + this.devices.boot.name + this.toNull, echo);
730
+ await (0, utils_2.exec)('mke2fs -Ft ' + this.devices.boot.fsType + ' ' + this.devices.boot.name + this.toNull, echo);
728
731
  }
729
732
  if (this.devices.root.name !== 'none') {
730
- await exec('mke2fs -Ft ' + this.devices.root.fsType + ' ' + this.devices.root.name + this.toNull, echo);
733
+ await (0, utils_2.exec)('mke2fs -Ft ' + this.devices.root.fsType + ' ' + this.devices.root.name + this.toNull, echo);
731
734
  }
732
735
  if (this.devices.data.name !== 'none') {
733
- await exec('mke2fs -Ft ' + this.devices.data.fsType + ' ' + this.devices.data.name + this.toNull, echo);
736
+ await (0, utils_2.exec)('mke2fs -Ft ' + this.devices.data.fsType + ' ' + this.devices.data.name + this.toNull, echo);
734
737
  }
735
738
  if (this.devices.swap.name !== 'none') {
736
- await exec('mkswap ' + this.devices.swap.name + this.toNull, echo);
739
+ await (0, utils_2.exec)('mkswap ' + this.devices.swap.name + this.toNull, echo);
737
740
  }
738
741
  return result;
739
742
  }
@@ -742,30 +745,30 @@ adduser ${name} \
742
745
  */
743
746
  async mount() {
744
747
  const echo = { echo: false, ignore: false };
745
- if (!fs.existsSync(this.installTarget)) {
746
- await exec(`mkdir ${this.installTarget}` + this.toNull, echo);
748
+ if (!fs_1.default.existsSync(this.installTarget)) {
749
+ await (0, utils_2.exec)(`mkdir ${this.installTarget}` + this.toNull, echo);
747
750
  }
748
751
  // root
749
- await exec(`mount ${this.devices.root.name} ${this.installTarget}${this.devices.root.mountPoint}` + this.toNull, echo);
750
- await exec(`tune2fs -c 0 -i 0 ${this.devices.root.name}` + this.toNull, echo);
751
- await exec(`rm -rf ${this.installTarget}/lost+found` + this.toNull, echo);
752
+ await (0, utils_2.exec)(`mount ${this.devices.root.name} ${this.installTarget}${this.devices.root.mountPoint}` + this.toNull, echo);
753
+ await (0, utils_2.exec)(`tune2fs -c 0 -i 0 ${this.devices.root.name}` + this.toNull, echo);
754
+ await (0, utils_2.exec)(`rm -rf ${this.installTarget}/lost+found` + this.toNull, echo);
752
755
  // boot
753
756
  if (this.devices.boot.name !== `none`) {
754
- await exec(`mkdir ${this.installTarget}/boot -p` + this.toNull);
755
- await exec(`mount ${this.devices.boot.name} ${this.installTarget}${this.devices.boot.mountPoint}` + this.toNull, echo);
756
- await exec(`tune2fs -c 0 -i 0 ${this.devices.boot.name}` + this.toNull, echo);
757
+ await (0, utils_2.exec)(`mkdir ${this.installTarget}/boot -p` + this.toNull);
758
+ await (0, utils_2.exec)(`mount ${this.devices.boot.name} ${this.installTarget}${this.devices.boot.mountPoint}` + this.toNull, echo);
759
+ await (0, utils_2.exec)(`tune2fs -c 0 -i 0 ${this.devices.boot.name}` + this.toNull, echo);
757
760
  }
758
761
  // data
759
762
  if (this.devices.data.name !== `none`) {
760
- await exec(`mkdir ${this.installTarget}${this.devices.data.mountPoint} -p` + this.toNull);
761
- await exec(`mount ${this.devices.data.name} ${this.installTarget}${this.devices.data.mountPoint}` + this.toNull, echo);
762
- await exec(`tune2fs -c 0 -i 0 ${this.devices.data.name}` + this.toNull, echo);
763
+ await (0, utils_2.exec)(`mkdir ${this.installTarget}${this.devices.data.mountPoint} -p` + this.toNull);
764
+ await (0, utils_2.exec)(`mount ${this.devices.data.name} ${this.installTarget}${this.devices.data.mountPoint}` + this.toNull, echo);
765
+ await (0, utils_2.exec)(`tune2fs -c 0 -i 0 ${this.devices.data.name}` + this.toNull, echo);
763
766
  }
764
767
  // efi
765
768
  if (this.efi) {
766
- if (!fs.existsSync(this.installTarget + this.devices.efi.mountPoint)) {
767
- await exec(`mkdir ${this.installTarget}${this.devices.efi.mountPoint} -p` + this.toNull, echo);
768
- await exec(`mount ${this.devices.efi.name} ${this.installTarget}${this.devices.efi.mountPoint}` + this.toNull, echo);
769
+ if (!fs_1.default.existsSync(this.installTarget + this.devices.efi.mountPoint)) {
770
+ await (0, utils_2.exec)(`mkdir ${this.installTarget}${this.devices.efi.mountPoint} -p` + this.toNull, echo);
771
+ await (0, utils_2.exec)(`mount ${this.devices.efi.name} ${this.installTarget}${this.devices.efi.mountPoint}` + this.toNull, echo);
769
772
  }
770
773
  }
771
774
  return true;
@@ -776,19 +779,19 @@ adduser ${name} \
776
779
  async umount() {
777
780
  const echo = { echo: false, ignore: false };
778
781
  if (this.efi) {
779
- await exec(`umount ${this.installTarget}/boot/efi` + this.toNull, echo);
780
- await exec('sleep 1', echo);
782
+ await (0, utils_2.exec)(`umount ${this.installTarget}/boot/efi` + this.toNull, echo);
783
+ await (0, utils_2.exec)('sleep 1', echo);
781
784
  }
782
785
  // data
783
786
  if (this.devices.data.name !== `none`) {
784
- await exec(`umount ${this.devices.data.name}` + this.toNull, echo);
787
+ await (0, utils_2.exec)(`umount ${this.devices.data.name}` + this.toNull, echo);
785
788
  }
786
789
  // root
787
790
  if (this.devices.boot.name !== `none`) {
788
- await exec(`umount ${this.devices.boot.name}` + this.toNull, echo);
791
+ await (0, utils_2.exec)(`umount ${this.devices.boot.name}` + this.toNull, echo);
789
792
  }
790
- await exec(`umount ${this.devices.root.name}` + this.toNull, echo);
791
- await exec('sleep 1', echo);
793
+ await (0, utils_2.exec)(`umount ${this.devices.root.name}` + this.toNull, echo);
794
+ await (0, utils_2.exec)('sleep 1', echo);
792
795
  return true;
793
796
  }
794
797
  /**
@@ -796,15 +799,15 @@ adduser ${name} \
796
799
  */
797
800
  async mountvfs() {
798
801
  const echo = { echo: true, ignore: true };
799
- await exec('mkdir ' + this.installTarget + '/dev' + this.toNull);
800
- await exec('mkdir ' + this.installTarget + '/dev/pts' + this.toNull);
801
- await exec('mkdir ' + this.installTarget + '/proc' + this.toNull);
802
- await exec('mkdir ' + this.installTarget + '/sys' + this.toNull);
803
- await exec('mkdir ' + this.installTarget + '/run' + this.toNull);
804
- await exec(`mount -o bind /dev ${this.installTarget}/dev` + this.toNull, echo);
805
- await exec(`mount -o bind /dev/pts ${this.installTarget}/dev/pts` + this.toNull, echo);
806
- await exec(`mount -o bind /proc ${this.installTarget}/proc` + this.toNull, echo);
807
- await exec(`mount -o bind /sys ${this.installTarget}/sys` + this.toNull, echo);
802
+ await (0, utils_2.exec)('mkdir ' + this.installTarget + '/dev' + this.toNull);
803
+ await (0, utils_2.exec)('mkdir ' + this.installTarget + '/dev/pts' + this.toNull);
804
+ await (0, utils_2.exec)('mkdir ' + this.installTarget + '/proc' + this.toNull);
805
+ await (0, utils_2.exec)('mkdir ' + this.installTarget + '/sys' + this.toNull);
806
+ await (0, utils_2.exec)('mkdir ' + this.installTarget + '/run' + this.toNull);
807
+ await (0, utils_2.exec)(`mount -o bind /dev ${this.installTarget}/dev` + this.toNull, echo);
808
+ await (0, utils_2.exec)(`mount -o bind /dev/pts ${this.installTarget}/dev/pts` + this.toNull, echo);
809
+ await (0, utils_2.exec)(`mount -o bind /proc ${this.installTarget}/proc` + this.toNull, echo);
810
+ await (0, utils_2.exec)(`mount -o bind /sys ${this.installTarget}/sys` + this.toNull, echo);
808
811
  /**
809
812
  * I know, that's very old thread, but maybe will help for someone.
810
813
  * Most guides suggest the same solution to mount virtual filesystems before chroot:
@@ -814,40 +817,40 @@ adduser ${name} \
814
817
  *
815
818
  * https://unix.stackexchange.com/questions/91620/efi-variables-are-not-supported-on-this-system
816
819
  */
817
- await exec(`mount -o bind /sys/firmware/efi/efivars ${this.installTarget}/sys/firmware/efi/efivars` + this.toNull, echo);
818
- await exec(`mount -o bind /run ${this.installTarget}/run` + this.toNull, echo);
820
+ await (0, utils_2.exec)(`mount -o bind /sys/firmware/efi/efivars ${this.installTarget}/sys/firmware/efi/efivars` + this.toNull, echo);
821
+ await (0, utils_2.exec)(`mount -o bind /run ${this.installTarget}/run` + this.toNull, echo);
819
822
  }
820
823
  /**
821
824
  */
822
825
  async umountvfs() {
823
826
  const echo = { echo: false, ignore: false };
824
827
  if (utils_1.default.isMountpoint(`${this.installTarget}/dev/pts`)) {
825
- await exec(`umount ${this.installTarget}/dev/pts` + this.toNull, echo);
826
- await exec('sleep 1', echo);
828
+ await (0, utils_2.exec)(`umount ${this.installTarget}/dev/pts` + this.toNull, echo);
829
+ await (0, utils_2.exec)('sleep 1', echo);
827
830
  }
828
831
  if (utils_1.default.isMountpoint(`${this.installTarget}/dev`)) {
829
- await exec(`umount ${this.installTarget}/dev` + this.toNull, echo);
830
- await exec('sleep 1', echo);
832
+ await (0, utils_2.exec)(`umount ${this.installTarget}/dev` + this.toNull, echo);
833
+ await (0, utils_2.exec)('sleep 1', echo);
831
834
  }
832
835
  if (utils_1.default.isMountpoint(`${this.installTarget}/proc`)) {
833
- await exec(`umount ${this.installTarget}/proc` + this.toNull, echo);
834
- await exec('sleep 1', echo);
836
+ await (0, utils_2.exec)(`umount ${this.installTarget}/proc` + this.toNull, echo);
837
+ await (0, utils_2.exec)('sleep 1', echo);
835
838
  }
836
839
  if (utils_1.default.isMountpoint(`${this.installTarget}/run`)) {
837
- await exec(`umount ${this.installTarget}/run` + this.toNull, echo);
838
- await exec('sleep 1', echo);
840
+ await (0, utils_2.exec)(`umount ${this.installTarget}/run` + this.toNull, echo);
841
+ await (0, utils_2.exec)('sleep 1', echo);
839
842
  }
840
843
  if (utils_1.default.isMountpoint(`${this.installTarget}/sys/fs/fuse/connections`)) {
841
- await exec(`umount ${this.installTarget}/sys/fs/fuse/connections` + this.toNull, echo);
842
- await exec('sleep 1', echo);
844
+ await (0, utils_2.exec)(`umount ${this.installTarget}/sys/fs/fuse/connections` + this.toNull, echo);
845
+ await (0, utils_2.exec)('sleep 1', echo);
843
846
  }
844
847
  if (utils_1.default.isMountpoint(`${this.installTarget}/firmware/efi/efivars`)) {
845
- await exec(`umount ${this.installTarget}/firmware/efi/efivars` + this.toNull, echo);
846
- await exec('sleep 1', echo);
848
+ await (0, utils_2.exec)(`umount ${this.installTarget}/firmware/efi/efivars` + this.toNull, echo);
849
+ await (0, utils_2.exec)('sleep 1', echo);
847
850
  }
848
851
  if (utils_1.default.isMountpoint(`${this.installTarget}/sys`)) {
849
- await exec(`umount ${this.installTarget}/sys` + this.toNull, echo);
850
- await exec('sleep 1', echo);
852
+ await (0, utils_2.exec)(`umount ${this.installTarget}/sys` + this.toNull, echo);
853
+ await (0, utils_2.exec)('sleep 1', echo);
851
854
  }
852
855
  }
853
856
  /**
@@ -858,15 +861,15 @@ adduser ${name} \
858
861
  async partition() {
859
862
  const echo = { echo: false, ignore: false };
860
863
  let retVal = false;
861
- await exec('wipefs -a ' + this.partitions.installationDevice + this.toNull);
864
+ await (0, utils_2.exec)('wipefs -a ' + this.partitions.installationDevice + this.toNull);
862
865
  if (this.partitions.installationMode === 'standard' && !this.efi) {
863
866
  /**
864
867
  * formattazione standard, BIOS working
865
868
  */
866
- await exec('parted --script ' + this.partitions.installationDevice + ' mklabel msdos' + this.toNull, echo);
867
- await exec('parted --script --align optimal ' + this.partitions.installationDevice + ' mkpart primary 1MiB 95%' + this.toNull, echo);
868
- await exec('parted --script ' + this.partitions.installationDevice + ' set 1 boot on' + this.toNull, echo);
869
- await exec('parted --script --align optimal ' + this.partitions.installationDevice + ' mkpart primary 95% 100%' + this.toNull, echo);
869
+ await (0, utils_2.exec)('parted --script ' + this.partitions.installationDevice + ' mklabel msdos' + this.toNull, echo);
870
+ await (0, utils_2.exec)('parted --script --align optimal ' + this.partitions.installationDevice + ' mkpart primary 1MiB 95%' + this.toNull, echo);
871
+ await (0, utils_2.exec)('parted --script ' + this.partitions.installationDevice + ' set 1 boot on' + this.toNull, echo);
872
+ await (0, utils_2.exec)('parted --script --align optimal ' + this.partitions.installationDevice + ' mkpart primary 95% 100%' + this.toNull, echo);
870
873
  this.devices.efi.name = `none`;
871
874
  this.devices.boot.name = `none`;
872
875
  this.devices.root.name = this.partitions.installationDevice + '1';
@@ -882,9 +885,9 @@ adduser ${name} \
882
885
  /**
883
886
  * formattazione standard, EFI NOT working
884
887
  */
885
- await exec('parted --script ' + this.partitions.installationDevice + ' mklabel gpt mkpart primary 0% 1% mkpart primary 1% 95% mkpart primary linux-swap 95% 100%' + this.toNull, echo);
886
- await exec('parted --script ' + this.partitions.installationDevice + ' set 1 boot on' + this.toNull, echo);
887
- await exec('parted --script ' + this.partitions.installationDevice + ' set 1 esp on' + this.toNull, echo);
888
+ await (0, utils_2.exec)('parted --script ' + this.partitions.installationDevice + ' mklabel gpt mkpart primary 0% 1% mkpart primary 1% 95% mkpart primary linux-swap 95% 100%' + this.toNull, echo);
889
+ await (0, utils_2.exec)('parted --script ' + this.partitions.installationDevice + ' set 1 boot on' + this.toNull, echo);
890
+ await (0, utils_2.exec)('parted --script ' + this.partitions.installationDevice + ' set 1 esp on' + this.toNull, echo);
888
891
  this.devices.efi.name = this.partitions.installationDevice + '1';
889
892
  this.devices.efi.fsType = 'F 32 -I';
890
893
  this.devices.efi.mountPoint = '/boot/efi';
@@ -911,12 +914,12 @@ adduser ${name} \
911
914
  /**
912
915
  * LVM2, non EFI PROXMOX-VE
913
916
  */
914
- await exec(`parted --script ${this.partitions.installationDevice} mklabel msdos`);
917
+ await (0, utils_2.exec)(`parted --script ${this.partitions.installationDevice} mklabel msdos`);
915
918
  // Creo partizioni
916
- await exec(`parted --script ${this.partitions.installationDevice} mkpart primary ext2 1 512`);
917
- await exec(`parted --script --align optimal ${this.partitions.installationDevice} set 1 boot on`);
918
- await exec(`parted --script --align optimal ${this.partitions.installationDevice} mkpart primary ext2 512 100%`);
919
- await exec(`parted --script ${this.partitions.installationDevice} set 2 lvm on`);
919
+ await (0, utils_2.exec)(`parted --script ${this.partitions.installationDevice} mkpart primary ext2 1 512`);
920
+ await (0, utils_2.exec)(`parted --script --align optimal ${this.partitions.installationDevice} set 1 boot on`);
921
+ await (0, utils_2.exec)(`parted --script --align optimal ${this.partitions.installationDevice} mkpart primary ext2 512 100%`);
922
+ await (0, utils_2.exec)(`parted --script ${this.partitions.installationDevice} set 2 lvm on`);
920
923
  // Partizione LVM
921
924
  const lvmPartname = shx.exec(`fdisk $1 -l | grep 8e | awk '{print $1}' | cut -d "/" -f3`).stdout.trim();
922
925
  const lvmByteSize = Number(shx.exec(`cat /proc/partitions | grep ${lvmPartname}| awk '{print $3}' | grep "[0-9]"`).stdout.trim());
@@ -929,13 +932,13 @@ adduser ${name} \
929
932
  lvmRootSize = 20480;
930
933
  }
931
934
  const lvmDataSize = lvmSize - lvmRootSize - lvmSwapSize;
932
- await exec(`pvcreate /dev/${lvmPartname}`);
933
- await exec(`vgcreate pve /dev/${lvmPartname}`);
934
- await exec(`vgchange -an`);
935
- await exec(`lvcreate -L ${lvmSwapSize} -nswap pve`);
936
- await exec(`lvcreate -L ${lvmRootSize} -nroot pve`);
937
- await exec(`lvcreate -l 100%FREE -ndata pve`);
938
- await exec(`vgchange -a y pve`);
935
+ await (0, utils_2.exec)(`pvcreate /dev/${lvmPartname}`);
936
+ await (0, utils_2.exec)(`vgcreate pve /dev/${lvmPartname}`);
937
+ await (0, utils_2.exec)(`vgchange -an`);
938
+ await (0, utils_2.exec)(`lvcreate -L ${lvmSwapSize} -nswap pve`);
939
+ await (0, utils_2.exec)(`lvcreate -L ${lvmRootSize} -nroot pve`);
940
+ await (0, utils_2.exec)(`lvcreate -l 100%FREE -ndata pve`);
941
+ await (0, utils_2.exec)(`vgchange -a y pve`);
939
942
  this.devices.efi.name = `none`;
940
943
  this.devices.boot.name = `${this.partitions.installationDevice}1`;
941
944
  this.devices.root.fsType = 'ext2';
@@ -980,14 +983,14 @@ adduser ${name} \
980
983
  async execCalamaresModule(name) {
981
984
  const echo = { echo: false, ignore: false };
982
985
  const moduleName = this.installer.multiarchModules + name + '/module.desc';
983
- if (fs.existsSync(moduleName)) {
986
+ if (fs_1.default.existsSync(moduleName)) {
984
987
  console.log('analyzing: ' + moduleName);
985
- const calamaresModule = js_yaml_1.default.load(fs.readFileSync(moduleName, 'utf8'));
988
+ const calamaresModule = js_yaml_1.default.load(fs_1.default.readFileSync(moduleName, 'utf8'));
986
989
  let command = calamaresModule.command;
987
990
  console.log('command: ' + command);
988
991
  if (command !== '' || command !== undefined) {
989
992
  command += this.toNull;
990
- child_process_1.execSync(command);
993
+ (0, child_process_1.execSync)(command);
991
994
  }
992
995
  }
993
996
  else {
@@ -1007,14 +1010,14 @@ adduser ${name} \
1007
1010
  let cmd = '';
1008
1011
  try {
1009
1012
  cmd = 'chroot ' + this.installTarget + ' ' + 'apt-get update -y ' + this.toNull;
1010
- await exec(cmd, echo);
1013
+ await (0, utils_2.exec)(cmd, echo);
1011
1014
  }
1012
1015
  catch (error) {
1013
1016
  console.log(error);
1014
1017
  }
1015
1018
  try {
1016
1019
  cmd = 'chroot ' + this.installTarget + ' sleep 1' + this.toNull;
1017
- await exec(cmd, echo);
1020
+ await (0, utils_2.exec)(cmd, echo);
1018
1021
  }
1019
1022
  catch (error) {
1020
1023
  console.log(error);
@@ -1023,7 +1026,7 @@ adduser ${name} \
1023
1026
  if (this.efi) {
1024
1027
  try {
1025
1028
  cmd = 'chroot ' + this.installTarget + aptInstallOptions + ' grub-efi-' + utils_1.default.machineArch() + ' --allow-unauthenticated ' + this.toNull;
1026
- await exec(cmd, echo);
1029
+ await (0, utils_2.exec)(cmd, echo);
1027
1030
  }
1028
1031
  catch (error) {
1029
1032
  console.log('cmd: ' + cmd + ' error: ' + error);
@@ -1032,7 +1035,7 @@ adduser ${name} \
1032
1035
  else {
1033
1036
  try {
1034
1037
  cmd = 'chroot ' + this.installTarget + aptInstallOptions + ' grub-pc' + this.toNull;
1035
- await exec(cmd, echo);
1038
+ await (0, utils_2.exec)(cmd, echo);
1036
1039
  }
1037
1040
  catch (error) {
1038
1041
  console.log('cmd: ' + cmd + ' error: ' + error);
@@ -1040,21 +1043,21 @@ adduser ${name} \
1040
1043
  }
1041
1044
  try {
1042
1045
  cmd = 'chroot ' + this.installTarget + ' sleep 1' + this.toNull;
1043
- await exec(cmd, echo);
1046
+ await (0, utils_2.exec)(cmd, echo);
1044
1047
  }
1045
1048
  catch (error) {
1046
1049
  console.log('cmd: ' + cmd + ' error: ' + error);
1047
1050
  }
1048
1051
  try {
1049
1052
  cmd = 'chroot ' + this.installTarget + ' grub-install ' + this.partitions.installationDevice + this.toNull;
1050
- await exec(cmd, echo);
1053
+ await (0, utils_2.exec)(cmd, echo);
1051
1054
  }
1052
1055
  catch (error) {
1053
1056
  console.log('cmd: ' + cmd + ' error: ' + error);
1054
1057
  }
1055
1058
  try {
1056
1059
  cmd = 'chroot ' + this.installTarget + ' grub-mkconfig -o /boot/grub/grub.cfg' + this.toNull;
1057
- await exec(cmd, echo);
1060
+ await (0, utils_2.exec)(cmd, echo);
1058
1061
  }
1059
1062
  catch (error) {
1060
1063
  console.log('cmd: ' + cmd + ' error: ' + error);
@@ -1062,14 +1065,14 @@ adduser ${name} \
1062
1065
  // await Utils.customConfirmAbort(cmd)
1063
1066
  try {
1064
1067
  cmd = 'chroot ' + this.installTarget + ' update-grub' + this.toNull;
1065
- await exec(cmd, echo);
1068
+ await (0, utils_2.exec)(cmd, echo);
1066
1069
  }
1067
1070
  catch (error) {
1068
1071
  console.log('cmd: ' + cmd + ' error: ' + error);
1069
1072
  }
1070
1073
  try {
1071
1074
  cmd = 'chroot ' + this.installTarget + ' sleep 1' + this.toNull;
1072
- await exec(cmd, echo);
1075
+ await (0, utils_2.exec)(cmd, echo);
1073
1076
  }
1074
1077
  catch (error) {
1075
1078
  console.log('cmd: ' + cmd + ' error: ' + error);
@@ -1085,7 +1088,7 @@ adduser ${name} \
1085
1088
  }
1086
1089
  }
1087
1090
  exports.default = Hatching;
1088
- const ifaces = fs.readdirSync('/sys/class/net/');
1091
+ const ifaces = fs_1.default.readdirSync('/sys/class/net/');
1089
1092
  /**
1090
1093
  * Occorre farglierlo rigenerare a forza
1091
1094
  * anche quando NON cambiano i dati
@@ -1096,7 +1099,7 @@ function redraw(elem) {
1096
1099
  opt.patchConsole = false;
1097
1100
  opt.debug = false;
1098
1101
  shx.exec('clear');
1099
- ink_1.render(elem, opt);
1102
+ (0, ink_1.render)(elem, opt);
1100
1103
  }
1101
1104
  /**
1102
1105
  *