penguins-eggs 9.5.22 → 9.5.24

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 (144) hide show
  1. package/.oclif.manifest.json +1 -1
  2. package/README.md +1 -1
  3. package/dist/classes/bleach.js +4 -3
  4. package/dist/classes/compressors.js +6 -1
  5. package/dist/classes/daddy.js +24 -63
  6. package/dist/classes/distro.js +4 -3
  7. package/dist/classes/family/archlinux.js +3 -1
  8. package/dist/classes/family/debian.js +2 -1
  9. package/dist/classes/family/fedora.js +2 -1
  10. package/dist/classes/family/suse.js +2 -1
  11. package/dist/classes/incubation/distros/bionic.js +4 -2
  12. package/dist/classes/incubation/distros/buster.js +7 -5
  13. package/dist/classes/incubation/distros/focal.js +7 -0
  14. package/dist/classes/incubation/distros/jessie.js +4 -5
  15. package/dist/classes/incubation/distros/rolling.js +5 -1
  16. package/dist/classes/initrd.js +4 -3
  17. package/dist/classes/keyboards.js +7 -0
  18. package/dist/classes/locales.js +7 -0
  19. package/dist/classes/n8.js +2 -1
  20. package/dist/classes/network.js +2 -1
  21. package/dist/classes/ovary.js +123 -85
  22. package/dist/classes/pacman.js +2 -1
  23. package/dist/classes/pve-live.js +2 -2
  24. package/dist/classes/pxe.js +6 -4
  25. package/dist/classes/settings.js +4 -56
  26. package/dist/classes/sources_list.js +4 -3
  27. package/dist/classes/systemctl.js +4 -3
  28. package/dist/classes/tailor.js +7 -6
  29. package/dist/classes/tools.js +2 -1
  30. package/dist/classes/users.js +7 -0
  31. package/dist/classes/utils.js +3 -2
  32. package/dist/classes/xdg.js +2 -1
  33. package/dist/classes/yolk.js +4 -3
  34. package/dist/commands/adapt.js +2 -1
  35. package/dist/commands/analyze.js +2 -1
  36. package/dist/commands/calamares.js +2 -1
  37. package/dist/commands/config.js +2 -1
  38. package/dist/commands/cuckoo.js +7 -3
  39. package/dist/commands/dad.js +2 -1
  40. package/dist/commands/export/deb.js +7 -0
  41. package/dist/commands/export/iso.js +5 -1
  42. package/dist/commands/install.js +4 -3
  43. package/dist/commands/kill.js +1 -0
  44. package/dist/commands/mom.js +2 -1
  45. package/dist/commands/produce.js +2 -1
  46. package/dist/commands/status.js +7 -3
  47. package/dist/commands/syncfrom.js +2 -1
  48. package/dist/commands/syncto.js +2 -1
  49. package/dist/commands/tools/clean.js +2 -1
  50. package/dist/commands/tools/ppa.js +2 -1
  51. package/dist/commands/tools/skel.js +2 -1
  52. package/dist/commands/tools/stat.js +7 -0
  53. package/dist/commands/tools/yolk.js +2 -1
  54. package/dist/commands/update.js +2 -1
  55. package/dist/commands/wardrobe/get.js +4 -3
  56. package/dist/commands/wardrobe/list.js +4 -3
  57. package/dist/commands/wardrobe/show.js +7 -3
  58. package/dist/commands/wardrobe/wear.js +2 -1
  59. package/dist/components/elements/information.js +7 -0
  60. package/dist/components/elements/steps.js +7 -0
  61. package/dist/components/elements/title.js +7 -0
  62. package/dist/components/finished.js +5 -1
  63. package/dist/components/install.js +5 -1
  64. package/dist/components/keyboard.js +5 -1
  65. package/dist/components/location.js +7 -3
  66. package/dist/components/network.js +5 -1
  67. package/dist/components/partitions.js +5 -1
  68. package/dist/components/summary.js +5 -1
  69. package/dist/components/users.js +7 -3
  70. package/dist/components/welcome.js +5 -1
  71. package/dist/interfaces/i-addons.js +0 -5
  72. package/dist/interfaces/i-analyze.js +5 -1
  73. package/dist/interfaces/i-calamares-partition.js +7 -0
  74. package/dist/interfaces/i-devices.js +0 -5
  75. package/dist/interfaces/i-distro.js +7 -0
  76. package/dist/interfaces/i-drive-list.js +5 -1
  77. package/dist/interfaces/i-eggs-config.js +7 -0
  78. package/dist/interfaces/i-exec.js +7 -0
  79. package/dist/interfaces/i-initrd.js +0 -5
  80. package/dist/interfaces/i-install.js +0 -5
  81. package/dist/interfaces/i-krill-config.js +7 -0
  82. package/dist/interfaces/i-packages.js +7 -0
  83. package/dist/interfaces/i-remix.js +7 -0
  84. package/dist/interfaces/i-settings.js +0 -4
  85. package/dist/interfaces/index.js +7 -0
  86. package/dist/krill/krill-prepare.js +9 -7
  87. package/dist/krill/krill-sequence.js +5 -4
  88. package/dist/krill/modules/add-user.js +5 -0
  89. package/dist/krill/modules/bootloader-config-ubuntu.js +0 -3
  90. package/dist/krill/modules/bootloader-config.js +5 -0
  91. package/dist/krill/modules/bootloader.js +5 -0
  92. package/dist/krill/modules/change-password.js +5 -0
  93. package/dist/krill/modules/del-live-user.js +5 -0
  94. package/dist/krill/modules/fstab.js +4 -4
  95. package/dist/krill/modules/grubcfg.js +4 -4
  96. package/dist/krill/modules/hostname.js +4 -4
  97. package/dist/krill/modules/initramfs-cfg.js +4 -4
  98. package/dist/krill/modules/initramfs.js +4 -4
  99. package/dist/krill/modules/locale-cfg.js +4 -4
  100. package/dist/krill/modules/locale.js +4 -4
  101. package/dist/krill/modules/m-keyboard.js +4 -4
  102. package/dist/krill/modules/m-timezone.js +4 -4
  103. package/dist/krill/modules/machine-id.js +4 -4
  104. package/dist/krill/modules/mkfs.js +4 -4
  105. package/dist/krill/modules/mount-fs.js +4 -4
  106. package/dist/krill/modules/mount-vfs.js +4 -4
  107. package/dist/krill/modules/network-cfg.js +4 -4
  108. package/dist/krill/modules/packages.js +4 -4
  109. package/dist/krill/modules/partition.js +4 -4
  110. package/dist/krill/modules/remove-installer-link.js +4 -4
  111. package/dist/krill/modules/umount.js +4 -4
  112. package/dist/krill/modules/unpackfs.js +4 -4
  113. package/dist/lib/cli-autologin.js +7 -0
  114. package/dist/lib/dependencies.js +9 -2
  115. package/dist/lib/get_address.js +7 -0
  116. package/dist/lib/get_dns.js +7 -0
  117. package/dist/lib/get_domain.js +7 -0
  118. package/dist/lib/get_gateway.js +7 -0
  119. package/dist/lib/get_hostname.js +7 -0
  120. package/dist/lib/get_netmask.js +7 -0
  121. package/dist/lib/get_password.js +7 -0
  122. package/dist/lib/get_root_password.js +7 -0
  123. package/dist/lib/get_userfullname.js +7 -0
  124. package/dist/lib/get_username.js +7 -0
  125. package/dist/lib/kill_me_softly.js +24 -11
  126. package/dist/lib/select_address_type.js +5 -1
  127. package/dist/lib/select_filesystem_type.js +7 -0
  128. package/dist/lib/select_installation_device.js +7 -0
  129. package/dist/lib/select_installation_mode.js +7 -0
  130. package/dist/lib/select_interface.js +5 -1
  131. package/dist/lib/select_keyboard_layout.js +3 -1
  132. package/dist/lib/select_keyboard_model.js +5 -3
  133. package/dist/lib/select_keyboard_option.js +3 -1
  134. package/dist/lib/select_keyboard_variant.js +3 -1
  135. package/dist/lib/select_languages.js +5 -1
  136. package/dist/lib/select_regions.js +7 -0
  137. package/dist/lib/select_user_swap_choice.js +7 -0
  138. package/dist/lib/select_zones.js +7 -0
  139. package/dist/lib/utils.js +5 -14
  140. package/manpages/doc/man/eggs.1.gz +0 -0
  141. package/manpages/doc/man/eggs.html +3 -3
  142. package/package.json +1 -1
  143. package/scripts/mom.sh +1 -1
  144. package/scripts/addaur.sh +0 -32
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: get_password.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  // import { option } from '@oclif/command/lib/flags'
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: get_root_password.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const inquirer = require('inquirer');
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: get_userfullname.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const inquirer = require('inquirer');
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: get_username.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const inquirer = require('inquirer');
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: kill_me_softly.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const tslib_1 = require("tslib");
@@ -9,23 +16,29 @@ const utils_2 = require("./utils");
9
16
  */
10
17
  async function killMeSoftly(eggsRoot = `/home/eggs`, eggsMnt = '/home/eggs/mnt') {
11
18
  const echo = utils_1.default.setEcho(false);
19
+ const liveFs = `${eggsMnt}filesystem.squashfs`;
20
+ /**
21
+ * refuse if /home/eggs/mnt/filesystem.squashfs
22
+ */
23
+ if (haveBindedDirs(liveFs)) {
24
+ utils_1.default.warning(`You have binded dirs under ${liveFs}, kill is not possible!`);
25
+ process.exit(1);
26
+ }
27
+ /**
28
+ * if eggsMnt is mountpoint
29
+ */
12
30
  if (utils_1.default.isMountpoint(eggsMnt)) {
13
- if (isBinded(eggsMnt + `filesystem.squashfs`)) {
14
- utils_1.default.warning(`You have binded dirs under ${eggsMnt}, kill is not possible!`);
15
- process.exit(1);
16
- }
17
- // cancello SOLO:
31
+ // Just delete
18
32
  await (0, utils_2.exec)(`rm -rf ${eggsMnt}efi-work`);
19
- await (0, utils_2.exec)(`rm -rf ${eggsMnt}filesystem.squashfs`);
20
33
  await (0, utils_2.exec)(`rm -rf ${eggsMnt}iso`);
21
34
  await (0, utils_2.exec)(`rm -rf ${eggsMnt}memdiskDir`);
22
35
  await (0, utils_2.exec)(`rm -rf ${eggsRoot}ovarium`);
23
- console.log(`\nJust cleaned!\nPlease, run:\nsudo umount ${eggsMnt}\nif you want to kill`);
36
+ // double check !haveBindedDirs
37
+ if (!haveBindedDirs(liveFs)) {
38
+ await (0, utils_2.exec)(`rm -rf ${liveFs}`);
39
+ }
24
40
  process.exit(0);
25
41
  }
26
- if (isBinded(eggsRoot)) {
27
- console.log(`Please, run:\nsudo umount ${eggsRoot}\nbefore to kill`);
28
- }
29
42
  await (0, utils_2.exec)(`rm ${eggsRoot} -rf`, echo);
30
43
  }
31
44
  exports.default = killMeSoftly;
@@ -34,7 +47,7 @@ exports.default = killMeSoftly;
34
47
  * @param path
35
48
  * @returns
36
49
  */
37
- function isBinded(path) {
50
+ function haveBindedDirs(path) {
38
51
  let retVal = false;
39
52
  const dirs = [
40
53
  'bin',
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
- * selectAddressType
4
+ * penguins-eggs
5
+ * lib: select_address_type.ts
6
+ * author: Piero Proietti
7
+ * email: piero.proietti@gmail.com
8
+ * license: MIT
5
9
  */
6
10
  const inquirer = require('inquirer');
7
11
  async function selectAddressType() {
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: select_filesystem_type.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const tslib_1 = require("tslib");
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: select_installation_device.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const tslib_1 = require("tslib");
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: select_installation_mode.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const inquirer = require('inquirer');
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
- * selectInterface
4
+ * penguins-eggs
5
+ * lib: select_interface.ts
6
+ * author: Piero Proietti
7
+ * email: piero.proietti@gmail.com
8
+ * license: MIT
5
9
  */
6
10
  const inquirer = require('inquirer');
7
11
  async function selectInterface(iface = 'eth0', ifaces) {
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  /**
5
5
  * penguins-eggs
6
- * selectKeyboardLayout
6
+ * lib: select_keyboard_layout.ts
7
7
  * author: Piero Proietti
8
+ * email: piero.proietti@gmail.com
9
+ * license: MIT
8
10
  */
9
11
  const inquirer = require('inquirer');
10
12
  const keyboards_1 = tslib_1.__importDefault(require("../classes/keyboards"));
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
2
  /**
5
3
  * penguins-eggs
6
- * selectKeyboardModel
4
+ * lib: select_keyboard_model.ts
7
5
  * author: Piero Proietti
6
+ * email: piero.proietti@gmail.com
7
+ * license: MIT
8
8
  */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
9
11
  const inquirer = require('inquirer');
10
12
  const keyboards_1 = tslib_1.__importDefault(require("../classes/keyboards"));
11
13
  /**
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  /**
5
5
  * penguins-eggs
6
- * selectKeyboardOption
6
+ * lib: select_keyboard_option.ts
7
7
  * author: Piero Proietti
8
+ * email: piero.proietti@gmail.com
9
+ * license: MIT
8
10
  */
9
11
  const inquirer = require('inquirer');
10
12
  const keyboards_1 = tslib_1.__importDefault(require("../classes/keyboards"));
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  /**
5
5
  * penguins-eggs
6
- * selectKeyboardVariant
6
+ * lib: select_keyboard_variant.ts
7
7
  * author: Piero Proietti
8
+ * email: piero.proietti@gmail.com
9
+ * license: MIT
8
10
  */
9
11
  const inquirer = require('inquirer');
10
12
  const keyboards_1 = tslib_1.__importDefault(require("../classes/keyboards"));
@@ -2,7 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  /**
5
- * less /usr/share/i18n/SUPPORTED
5
+ * penguins-eggs
6
+ * lib: select_languages.ts
7
+ * author: Piero Proietti
8
+ * email: piero.proietti@gmail.com
9
+ * license: MIT
6
10
  */
7
11
  const inquirer = require('inquirer');
8
12
  const locales_1 = tslib_1.__importDefault(require("../classes/locales"));
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: select_regiones.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const inquirer = require('inquirer');
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: select_user_swap.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  const tslib_1 = require("tslib");
@@ -1,3 +1,10 @@
1
+ /**
2
+ * penguins-eggs
3
+ * lib: selsect_zones.ts
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
1
8
  'use strict';
2
9
  'use strict';
3
10
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/lib/utils.js CHANGED
@@ -1,19 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * Executes shell command as it would happen in BASH script
4
- * @param {string} command
5
- * @param {Object} [options] Object with options.
6
- * Set `echo` to TRUE, to echo command passed.
7
- * Set `ignore` to TRUE to ignore stdout
8
- * Set `capture` to TRUE, to capture and return stdout.
9
- *
10
- * @returns {Promise<{code: number, data: string | undefined, error: Object}>}
11
- *
12
- * https://github.com/oclif/core/issues/453#issuecomment-1200778612
13
- * codespool:
14
- * You could wrap spawn in a promise, listen to exit event, and resolve when it happens. That should play nicely with oclif/core.
15
- * We are using it here:
16
- * https://github.com/AstarNetwork/swanky-cli/blob/master/src/commands/compile/index.ts
3
+ * penguins-eggs
4
+ * lib: utils.ts
5
+ * author: Piero Proietti
6
+ * email: piero.proietti@gmail.com
7
+ * license: MIT
17
8
  */
18
9
  Object.defineProperty(exports, "__esModule", { value: true });
19
10
  exports.exec = void 0;
Binary file
@@ -6,10 +6,10 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  </head>
8
8
  <body>
9
- <h1>eggs(1) -- the reproductive system of penguins: eggs v9.5.8</h1>
9
+ <h1>eggs(1) -- the reproductive system of penguins: eggs v9.5.23</h1>
10
10
  <h1>SYNOPSIS</h1>
11
11
  <p>Install Debian families (debian/devuan/ubuntu)</p>
12
- <pre><code>$ sudo dpkg -i eggs_9.5.8_amd64.deb
12
+ <pre><code>$ sudo dpkg -i eggs_9.5.23_amd64.deb
13
13
  </code></pre>
14
14
  <p>Install Arch families (Arch, manjaro Linux)</p>
15
15
  <p>Arch from AUR</p>
@@ -30,7 +30,7 @@ $ makepkg -si
30
30
  <h1>USAGE</h1>
31
31
  <pre><code>$ eggs (-v|--version|version)
32
32
 
33
- penguins-eggs/9.5.8 linux-x64 node-v18.16.1
33
+ penguins-eggs/9.5.23 linux-x64 node-v16.20.2
34
34
  $ eggs --help [COMMAND]
35
35
 
36
36
  USAGE
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "penguins-eggs",
3
3
  "description": "Perri's Brewery edition: remaster your system and distribuite it",
4
- "version": "9.5.22",
4
+ "version": "9.5.24",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
package/scripts/mom.sh CHANGED
@@ -67,7 +67,7 @@ function blog() {
67
67
 
68
68
  ################################
69
69
  function documents() {
70
- xdg-open "https://penguins-eggs.net/docs"
70
+ xdg-open "https://penguins-eggs.net/docs/Tutorial/eggs-users-guide"
71
71
  }
72
72
 
73
73
  ################################
package/scripts/addaur.sh DELETED
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################
4
- function press_a_key_to_continue {
5
- read -rp "Press enter to continue or CTRL-C to abort."
6
- }
7
-
8
- function is_arch {
9
- RELEASE=$(lsb_release -is)
10
- if [ "$RELEASE" != "Arch" ]; then
11
- echo "AUR is for Arch!"
12
- exit
13
- fi
14
- }
15
-
16
- function main {
17
- clear
18
- is_arch
19
- echo "==============================="
20
- echo "Add AUR repository to your Arch"
21
- echo "==============================="
22
- echo
23
- press_a_key_to_continue
24
-
25
- pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
26
- pacman-key --lsign-key 3056513887B78AEB
27
- pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
28
- echo "[chaotic-aur]" >> /etc/pacman.conf
29
- echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf
30
- }
31
-
32
- main