penguins-eggs 9.3.26 → 9.3.28

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 (142) hide show
  1. package/.oclif.manifest.json +1 -1
  2. package/conf/derivatives.yaml +7 -0
  3. package/dist/classes/bleach.js +26 -24
  4. package/dist/classes/compressors.js +7 -5
  5. package/dist/classes/daddy.js +38 -36
  6. package/dist/classes/distro.js +30 -27
  7. package/dist/classes/family/archlinux.js +21 -19
  8. package/dist/classes/family/debian.js +33 -31
  9. package/dist/classes/family/fedora.js +19 -17
  10. package/dist/classes/family/suse.js +19 -17
  11. package/dist/classes/incubation/branding.js +8 -6
  12. package/dist/classes/incubation/distros/bionic.js +5 -3
  13. package/dist/classes/incubation/distros/buster.js +5 -3
  14. package/dist/classes/incubation/distros/focal.js +5 -3
  15. package/dist/classes/incubation/distros/jessie.js +6 -4
  16. package/dist/classes/incubation/distros/rolling.js +9 -7
  17. package/dist/classes/incubation/fisherman-helper/displaymanager.js +5 -3
  18. package/dist/classes/incubation/fisherman-helper/packages.js +17 -15
  19. package/dist/classes/incubation/fisherman.js +19 -19
  20. package/dist/classes/incubation/incubator.js +37 -35
  21. package/dist/classes/incubation/installer.js +8 -6
  22. package/dist/classes/initrd.js +5 -3
  23. package/dist/classes/keyboards.js +25 -23
  24. package/dist/classes/locales.js +19 -17
  25. package/dist/classes/n8.js +4 -2
  26. package/dist/classes/network.js +9 -9
  27. package/dist/classes/ovary.js +280 -281
  28. package/dist/classes/pacman.js +128 -128
  29. package/dist/classes/pve-live.js +7 -5
  30. package/dist/classes/pxe.js +141 -138
  31. package/dist/classes/settings.js +34 -32
  32. package/dist/classes/sources_list.js +31 -31
  33. package/dist/classes/systemctl.js +16 -14
  34. package/dist/classes/tailor.js +255 -262
  35. package/dist/classes/tools.js +7 -5
  36. package/dist/classes/users.js +30 -28
  37. package/dist/classes/utils.js +22 -20
  38. package/dist/classes/xdg.js +60 -58
  39. package/dist/classes/yolk.js +33 -33
  40. package/dist/commands/adapt.js +14 -12
  41. package/dist/commands/analyze.js +48 -15
  42. package/dist/commands/calamares.js +28 -26
  43. package/dist/commands/config.js +77 -79
  44. package/dist/commands/cuckoo.js +19 -17
  45. package/dist/commands/dad.js +16 -14
  46. package/dist/commands/export/deb.js +19 -17
  47. package/dist/commands/export/iso.js +17 -15
  48. package/dist/commands/install.js +31 -29
  49. package/dist/commands/kill.js +17 -15
  50. package/dist/commands/mom.js +11 -9
  51. package/dist/commands/produce.js +30 -28
  52. package/dist/commands/status.js +7 -5
  53. package/dist/commands/syncfrom.js +41 -41
  54. package/dist/commands/syncto.js +77 -80
  55. package/dist/commands/tools/clean.js +13 -11
  56. package/dist/commands/tools/ppa.js +26 -24
  57. package/dist/commands/tools/skel.js +18 -16
  58. package/dist/commands/tools/stat.js +12 -10
  59. package/dist/commands/tools/yolk.js +13 -11
  60. package/dist/commands/update.js +29 -27
  61. package/dist/commands/wardrobe/get.js +14 -12
  62. package/dist/commands/wardrobe/list.js +25 -23
  63. package/dist/commands/wardrobe/show.js +25 -23
  64. package/dist/commands/wardrobe/wear.js +24 -22
  65. package/dist/components/elements/information.js +21 -19
  66. package/dist/components/elements/steps.js +4 -2
  67. package/dist/components/elements/title.js +4 -2
  68. package/dist/components/finished.js +10 -8
  69. package/dist/components/install.js +10 -8
  70. package/dist/components/keyboard.js +10 -8
  71. package/dist/components/location.js +10 -8
  72. package/dist/components/network.js +10 -8
  73. package/dist/components/partitions.js +10 -8
  74. package/dist/components/summary.js +10 -8
  75. package/dist/components/users.js +33 -8
  76. package/dist/components/welcome.js +10 -8
  77. package/dist/interfaces/i-packages.js +1 -1
  78. package/dist/interfaces/i-pxe.js +39 -0
  79. package/dist/krill/krill-prepare.js +92 -90
  80. package/dist/krill/krill-sequence.js +148 -145
  81. package/dist/krill/modules/add-user.js +11 -9
  82. package/dist/krill/modules/bootloader-config-ubuntu.js +25 -23
  83. package/dist/krill/modules/bootloader.js +11 -9
  84. package/dist/krill/modules/change-password.js +2 -2
  85. package/dist/krill/modules/del-live-user.js +8 -6
  86. package/dist/krill/modules/fstab.js +35 -33
  87. package/dist/krill/modules/grubcfg.js +8 -6
  88. package/dist/krill/modules/hostname.js +19 -17
  89. package/dist/krill/modules/initramfs-cfg.js +6 -4
  90. package/dist/krill/modules/initramfs.js +17 -15
  91. package/dist/krill/modules/locale-cfg.js +12 -10
  92. package/dist/krill/modules/locale.js +13 -11
  93. package/dist/krill/modules/m-keyboard.js +33 -31
  94. package/dist/krill/modules/m-timezone.js +7 -5
  95. package/dist/krill/modules/machine-id.js +8 -6
  96. package/dist/krill/modules/mkfs.js +7 -7
  97. package/dist/krill/modules/mount-fs.js +22 -22
  98. package/dist/krill/modules/mount-vfs.js +12 -12
  99. package/dist/krill/modules/network-cfg.js +21 -21
  100. package/dist/krill/modules/packages.js +20 -18
  101. package/dist/krill/modules/partition.js +148 -139
  102. package/dist/krill/modules/remove-installer-link.js +5 -3
  103. package/dist/krill/modules/umount.js +9 -7
  104. package/dist/krill/modules/unpackfs.js +8 -6
  105. package/dist/lib/cli-autologin.js +163 -163
  106. package/dist/lib/dependencies.js +10 -10
  107. package/dist/lib/get_address.js +6 -4
  108. package/dist/lib/get_dns.js +6 -4
  109. package/dist/lib/get_domain.js +6 -4
  110. package/dist/lib/get_gateway.js +6 -4
  111. package/dist/lib/get_hostname.js +6 -4
  112. package/dist/lib/get_netmask.js +6 -4
  113. package/dist/lib/get_password.js +8 -6
  114. package/dist/lib/get_root_password.js +7 -5
  115. package/dist/lib/get_userfullname.js +6 -4
  116. package/dist/lib/get_username.js +6 -4
  117. package/dist/lib/select_address_type.js +6 -4
  118. package/dist/lib/select_filesystem_type.js +8 -6
  119. package/dist/lib/select_installation_device.js +7 -5
  120. package/dist/lib/select_installation_mode.js +6 -4
  121. package/dist/lib/select_interface.js +6 -4
  122. package/dist/lib/select_keyboard_layout.js +10 -8
  123. package/dist/lib/select_keyboard_model.js +10 -8
  124. package/dist/lib/select_keyboard_option.js +10 -8
  125. package/dist/lib/select_keyboard_variant.js +10 -8
  126. package/dist/lib/select_languages.js +9 -7
  127. package/dist/lib/select_regions.js +6 -4
  128. package/dist/lib/select_user_swap_choice.js +8 -6
  129. package/dist/lib/select_zones.js +12 -10
  130. package/dist/lib/utils.js +3 -3
  131. package/package.json +12 -5
  132. package/dist/dhcpd/dhcpd.js +0 -222
  133. package/dist/dhcpd/index.js +0 -7
  134. package/dist/dhcpd/packet/converters.js +0 -377
  135. package/dist/dhcpd/packet/options.js +0 -2
  136. package/dist/dhcpd/packet/types.js +0 -2
  137. package/dist/dhcpd/packet.js +0 -251
  138. package/dist/dhcpd/proxy.js +0 -152
  139. package/dist/dhcpd/server.js +0 -152
  140. package/dist/dhcpd/sprintf.js +0 -170
  141. package/dist/dhcpd/utils.js +0 -190
  142. package/dist/interfaces/i-pxe-options.js +0 -2
@@ -5,28 +5,30 @@
5
5
  * mail: piero.proietti@gmail.com
6
6
  *
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
10
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
11
- const utils_1 = tslib_1.__importDefault(require("./utils"));
12
- const utils_2 = require("../lib/utils");
13
- const distro_1 = tslib_1.__importDefault(require("./distro"));
12
+ const chalk_1 = __importDefault(require("chalk"));
13
+ const utils_js_1 = __importDefault(require("./utils.js"));
14
+ const utils_js_2 = require("../lib/utils.js");
15
+ const distro_js_1 = __importDefault(require("./distro.js"));
14
16
  /**
15
17
  *
16
18
  */
17
19
  class SourcesList {
18
20
  /**
19
- *
20
- * @param repos
21
- * @returns
22
- */
21
+ *
22
+ * @param repos
23
+ * @returns
24
+ */
23
25
  async distribution(distributions) {
24
26
  /**
25
- * Linuxmint non ha nessuna configurazione in /etc/apt/sources.list
26
- */
27
+ * Linuxmint non ha nessuna configurazione in /etc/apt/sources.list
28
+ */
27
29
  let checked = true;
28
30
  checked = false;
29
- const distro = new distro_1.default();
31
+ const distro = new distro_js_1.default();
30
32
  for (const distribution of distributions) {
31
33
  if (distribution.includes(distro.codenameLikeId)) {
32
34
  checked = true;
@@ -35,54 +37,52 @@ class SourcesList {
35
37
  return checked;
36
38
  }
37
39
  /**
38
- *
39
- * @param repos
40
- * @returns
41
- */
40
+ *
41
+ * @param repos
42
+ * @returns
43
+ */
42
44
  async components(components) {
43
45
  /**
44
- * Linuxmint non ha nessuna configurazione in /etc/apt/sources.list
45
- */
46
+ * Linuxmint non ha nessuna configurazione in /etc/apt/sources.list
47
+ */
46
48
  let checked = true;
47
49
  const repos = await this.get();
48
- if (repos.length !== 0) {
50
+ if (repos.length > 0) {
49
51
  for (const repo of repos) {
50
52
  for (const component of components) {
51
53
  // On security we need just main
52
- if (!repo.includes('security')) {
53
- if (!repo.includes(component)) {
54
- console.log('component: ' + chalk_1.default.green(component) + ' is not included in repo: ' + chalk_1.default.green(repo));
55
- checked = false;
56
- }
54
+ if (!repo.includes('security') && !repo.includes(component)) {
55
+ console.log('component: ' + chalk_1.default.green(component) + ' is not included in repo: ' + chalk_1.default.green(repo));
56
+ checked = false;
57
57
  }
58
58
  }
59
59
  }
60
60
  if (checked) {
61
- utils_1.default.warning('repositories checked');
61
+ utils_js_1.default.warning('repositories checked');
62
62
  }
63
63
  else {
64
- utils_1.default.pressKeyToExit('component warning, check your /etc/apt/sources.list', true);
64
+ utils_js_1.default.pressKeyToExit('component warning, check your /etc/apt/sources.list', true);
65
65
  }
66
66
  }
67
67
  return checked;
68
68
  }
69
69
  /**
70
- *
71
- */
70
+ *
71
+ */
72
72
  async get() {
73
73
  let universalSourcesList = '/etc/apt/sources.list';
74
- const distro = new distro_1.default();
74
+ const distro = new distro_js_1.default();
75
75
  if (distro.distroId === 'Linuxmint') {
76
76
  universalSourcesList = '/etc/apt/sources.list.d/official-package-repositories.list';
77
77
  }
78
78
  // deb uri distribution [component1] [component2] [...]
79
- let checkRepos = await (0, utils_2.exec)(`grep "deb http"<${universalSourcesList}`, { echo: false, capture: true });
79
+ const checkRepos = await (0, utils_js_2.exec)(`grep "deb http"<${universalSourcesList}`, { echo: false, capture: true });
80
80
  let tmp = [];
81
81
  if (checkRepos.code === 0) {
82
82
  tmp = checkRepos.data.split('\n');
83
83
  }
84
84
  // remove empty line
85
- let repos = [];
85
+ const repos = [];
86
86
  for (const repo of tmp) {
87
87
  if (repo !== '') {
88
88
  repos.push(repo);
@@ -7,26 +7,28 @@
7
7
  * gestione systemd
8
8
  * Presa da https://github.com/VolantisDev/node-systemctl
9
9
  */
10
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11
+ return (mod && mod.__esModule) ? mod : { "default": mod };
12
+ };
10
13
  Object.defineProperty(exports, "__esModule", { value: true });
11
- const tslib_1 = require("tslib");
12
- const utils_1 = require("../lib/utils");
13
- const utils_2 = tslib_1.__importDefault(require("./utils"));
14
+ const utils_js_1 = require("../lib/utils.js");
15
+ const utils_js_2 = __importDefault(require("./utils.js"));
14
16
  class SistemdCtl {
15
17
  constructor(verbose = false) {
16
18
  this.echo = {};
17
- this.echo = utils_2.default.setEcho(verbose);
19
+ this.echo = utils_js_2.default.setEcho(verbose);
18
20
  }
19
21
  /**
20
22
  *
21
23
  */
22
24
  async reload(service) {
23
- await (0, utils_1.exec)(`systemctl reload ${service}`, this.echo);
25
+ await (0, utils_js_1.exec)(`systemctl reload ${service}`, this.echo);
24
26
  }
25
27
  /**
26
28
  *
27
29
  */
28
30
  async disable(service, chroot = '/', report = false) {
29
- await (0, utils_1.exec)(`chroot ${chroot}} systemctl disable ${service}`, this.echo);
31
+ await (0, utils_js_1.exec)(`chroot ${chroot}} systemctl disable ${service}`, this.echo);
30
32
  if (report) {
31
33
  console.log(`systemctl: disabled ${service} on ${chroot}`);
32
34
  }
@@ -35,25 +37,25 @@ class SistemdCtl {
35
37
  *
36
38
  */
37
39
  async enable(service) {
38
- await (0, utils_1.exec)(`systemctl enable ${service}`, this.echo);
40
+ await (0, utils_js_1.exec)(`systemctl enable ${service}`, this.echo);
39
41
  }
40
42
  /**
41
43
  *
42
44
  */
43
45
  async restart(service) {
44
- await (0, utils_1.exec)(`systemctl restart ${service}`, this.echo);
46
+ await (0, utils_js_1.exec)(`systemctl restart ${service}`, this.echo);
45
47
  }
46
48
  /**
47
49
  *
48
50
  */
49
51
  async start(service) {
50
- await (0, utils_1.exec)(`systemctl start ${service}`, this.echo);
52
+ await (0, utils_js_1.exec)(`systemctl start ${service}`, this.echo);
51
53
  }
52
54
  /**
53
55
  *
54
56
  */
55
57
  async stop(service) {
56
- await (0, utils_1.exec)(`systemctl stop ${service}`, this.echo);
58
+ await (0, utils_js_1.exec)(`systemctl stop ${service}`, this.echo);
57
59
  }
58
60
  /**
59
61
  *
@@ -62,8 +64,8 @@ class SistemdCtl {
62
64
  */
63
65
  async isActive(service) {
64
66
  return new Promise((resolve, reject) => {
65
- (0, utils_1.exec)(`systemctl is-active ${service}`, this.echo)
66
- .then((result) => {
67
+ (0, utils_js_1.exec)(`systemctl is-active ${service}`, this.echo)
68
+ .then(result => {
67
69
  resolve(!result.data.includes('inactive'));
68
70
  })
69
71
  .catch(function (error) {
@@ -76,8 +78,8 @@ class SistemdCtl {
76
78
  */
77
79
  async isEnabled(service) {
78
80
  return new Promise((resolve, reject) => {
79
- (0, utils_1.exec)(`systemctl is-enabled ${service}`, this.echo)
80
- .then((result) => {
81
+ (0, utils_js_1.exec)(`systemctl is-enabled ${service}`, this.echo)
82
+ .then(result => {
81
83
  resolve(result.data.includes('enabled'));
82
84
  })
83
85
  .catch(function (error) {