penguins-eggs 9.3.28 → 9.3.30

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 (99) hide show
  1. package/.oclif.manifest.json +1 -1
  2. package/dist/classes/bleach.js +22 -22
  3. package/dist/classes/daddy.js +25 -25
  4. package/dist/classes/family/archlinux.js +16 -16
  5. package/dist/classes/family/debian.js +23 -23
  6. package/dist/classes/family/fedora.js +14 -14
  7. package/dist/classes/family/suse.js +14 -14
  8. package/dist/classes/incubation/distros/bionic.js +5 -4
  9. package/dist/classes/incubation/distros/buster.js +5 -4
  10. package/dist/classes/incubation/distros/focal.js +5 -4
  11. package/dist/classes/incubation/distros/jessie.js +2 -2
  12. package/dist/classes/incubation/distros/rolling.js +6 -4
  13. package/dist/classes/incubation/fisherman-helper/displaymanager.js +2 -2
  14. package/dist/classes/incubation/fisherman-helper/packages.js +6 -6
  15. package/dist/classes/incubation/fisherman.js +13 -17
  16. package/dist/classes/incubation/incubator.js +26 -25
  17. package/dist/classes/incubation/installer.js +5 -5
  18. package/dist/classes/keyboards.js +5 -5
  19. package/dist/classes/locales.js +6 -6
  20. package/dist/classes/n8.js +1 -1
  21. package/dist/classes/network.js +6 -0
  22. package/dist/classes/ovary.js +235 -225
  23. package/dist/classes/pacman.js +121 -121
  24. package/dist/classes/pve-live.js +2 -2
  25. package/dist/classes/pxe.js +32 -32
  26. package/dist/classes/settings.js +24 -24
  27. package/dist/classes/sources_list.js +8 -8
  28. package/dist/classes/systemctl.js +11 -11
  29. package/dist/classes/tailor.js +57 -57
  30. package/dist/classes/tools.js +2 -2
  31. package/dist/classes/users.js +2 -2
  32. package/dist/classes/utils.js +12 -12
  33. package/dist/classes/xdg.js +38 -38
  34. package/dist/classes/yolk.js +27 -27
  35. package/dist/commands/adapt.js +15 -9
  36. package/dist/commands/analyze.js +11 -11
  37. package/dist/commands/calamares.js +19 -19
  38. package/dist/commands/config.js +67 -67
  39. package/dist/commands/cuckoo.js +8 -8
  40. package/dist/commands/dad.js +8 -8
  41. package/dist/commands/export/deb.js +9 -9
  42. package/dist/commands/export/iso.js +8 -8
  43. package/dist/commands/install.js +8 -8
  44. package/dist/commands/kill.js +11 -12
  45. package/dist/commands/mom.js +5 -5
  46. package/dist/commands/produce.js +15 -15
  47. package/dist/commands/status.js +2 -2
  48. package/dist/commands/syncfrom.js +34 -34
  49. package/dist/commands/syncto.js +42 -42
  50. package/dist/commands/tools/clean.js +7 -7
  51. package/dist/commands/tools/ppa.js +17 -17
  52. package/dist/commands/tools/skel.js +11 -11
  53. package/dist/commands/tools/stat.js +2 -2
  54. package/dist/commands/tools/yolk.js +6 -6
  55. package/dist/commands/update.js +21 -21
  56. package/dist/commands/wardrobe/get.js +13 -7
  57. package/dist/commands/wardrobe/list.js +11 -5
  58. package/dist/commands/wardrobe/show.js +10 -7
  59. package/dist/commands/wardrobe/wear.js +16 -10
  60. package/dist/components/elements/information.js +16 -16
  61. package/dist/components/finished.js +4 -4
  62. package/dist/components/install.js +4 -4
  63. package/dist/components/keyboard.js +4 -4
  64. package/dist/components/location.js +4 -4
  65. package/dist/components/network.js +4 -4
  66. package/dist/components/partitions.js +4 -4
  67. package/dist/components/summary.js +4 -4
  68. package/dist/components/users.js +4 -4
  69. package/dist/components/welcome.js +4 -4
  70. package/dist/krill/krill-prepare.js +84 -84
  71. package/dist/krill/krill-sequence.js +140 -140
  72. package/dist/krill/modules/add-user.js +6 -6
  73. package/dist/krill/modules/bootloader-config-ubuntu.js +21 -21
  74. package/dist/krill/modules/bootloader.js +6 -6
  75. package/dist/krill/modules/change-password.js +2 -2
  76. package/dist/krill/modules/del-live-user.js +5 -5
  77. package/dist/krill/modules/fstab.js +10 -10
  78. package/dist/krill/modules/grubcfg.js +3 -3
  79. package/dist/krill/modules/initramfs-cfg.js +3 -3
  80. package/dist/krill/modules/initramfs.js +9 -9
  81. package/dist/krill/modules/locale.js +4 -4
  82. package/dist/krill/modules/m-keyboard.js +9 -9
  83. package/dist/krill/modules/m-timezone.js +3 -3
  84. package/dist/krill/modules/machine-id.js +3 -3
  85. package/dist/krill/modules/mkfs.js +6 -6
  86. package/dist/krill/modules/mount-fs.js +13 -13
  87. package/dist/krill/modules/mount-vfs.js +12 -12
  88. package/dist/krill/modules/network-cfg.js +5 -5
  89. package/dist/krill/modules/packages.js +10 -10
  90. package/dist/krill/modules/partition.js +69 -69
  91. package/dist/krill/modules/umount.js +6 -6
  92. package/dist/krill/modules/unpackfs.js +4 -4
  93. package/dist/lib/cli-autologin.js +12 -12
  94. package/dist/lib/select_keyboard_layout.js +2 -2
  95. package/dist/lib/select_keyboard_model.js +2 -2
  96. package/dist/lib/select_keyboard_option.js +2 -2
  97. package/dist/lib/select_keyboard_variant.js +2 -2
  98. package/dist/lib/select_languages.js +2 -2
  99. package/package.json +1 -1
@@ -12,15 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const node_fs_1 = __importDefault(require("node:fs"));
13
13
  const node_path_1 = __importDefault(require("node:path"));
14
14
  const shelljs_1 = __importDefault(require("shelljs"));
15
- const utils_js_1 = __importDefault(require("./utils.js"));
16
- const distro_js_1 = __importDefault(require("./distro.js"));
17
- const settings_js_1 = __importDefault(require("./settings.js"));
15
+ const utils_1 = __importDefault(require("./utils"));
16
+ const distro_1 = __importDefault(require("./distro"));
17
+ const settings_1 = __importDefault(require("./settings"));
18
18
  const node_child_process_1 = require("node:child_process");
19
- const utils_js_2 = require("../lib/utils.js");
20
- const debian_js_1 = __importDefault(require("./family/debian.js"));
21
- const fedora_js_1 = __importDefault(require("./family/fedora.js"));
22
- const archlinux_js_1 = __importDefault(require("./family/archlinux.js"));
23
- const suse_js_1 = __importDefault(require("./family/suse.js"));
19
+ const utils_2 = require("../lib/utils");
20
+ const debian_1 = __importDefault(require("./family/debian"));
21
+ const fedora_1 = __importDefault(require("./family/fedora"));
22
+ const archlinux_1 = __importDefault(require("./family/archlinux"));
23
+ const suse_1 = __importDefault(require("./family/suse"));
24
24
  const config_file = '/etc/penguins-eggs.d/eggs.yaml';
25
25
  const config_tools = '/etc/penguins-eggs.d/tools.yaml';
26
26
  /**
@@ -38,7 +38,7 @@ class Pacman {
38
38
  */
39
39
  static distro() {
40
40
  const remix = {};
41
- const distro = new distro_js_1.default(remix);
41
+ const distro = new distro_1.default(remix);
42
42
  return distro;
43
43
  }
44
44
  static whichGrubIsInstalled() {
@@ -70,21 +70,21 @@ class Pacman {
70
70
  static isInstalledXorg() {
71
71
  let installed = false;
72
72
  if (this.distro().familyId === 'debian') {
73
- if (debian_js_1.default.isInstalledXorg()) {
73
+ if (debian_1.default.isInstalledXorg()) {
74
74
  installed = true;
75
75
  }
76
76
  }
77
77
  else if (this.distro().familyId === 'fedora') {
78
- if (fedora_js_1.default.isInstalledXorg()) {
78
+ if (fedora_1.default.isInstalledXorg()) {
79
79
  installed = true;
80
80
  }
81
81
  }
82
82
  else if (this.distro().familyId === 'archlinux') {
83
- if (archlinux_js_1.default.isInstalledXorg()) {
83
+ if (archlinux_1.default.isInstalledXorg()) {
84
84
  installed = true;
85
85
  }
86
86
  }
87
- else if (this.distro().familyId === 'suse' && suse_js_1.default.isInstalledXorg()) {
87
+ else if (this.distro().familyId === 'suse' && suse_1.default.isInstalledXorg()) {
88
88
  installed = true;
89
89
  }
90
90
  return installed;
@@ -96,21 +96,21 @@ class Pacman {
96
96
  static isInstalledWayland() {
97
97
  let installed = false;
98
98
  if (this.distro().familyId === 'debian') {
99
- if (debian_js_1.default.isInstalledWayland()) {
99
+ if (debian_1.default.isInstalledWayland()) {
100
100
  installed = true;
101
101
  }
102
102
  }
103
103
  else if (this.distro().familyId === 'fedora') {
104
- if (fedora_js_1.default.isInstalledWayland()) {
104
+ if (fedora_1.default.isInstalledWayland()) {
105
105
  installed = true;
106
106
  }
107
107
  }
108
108
  else if (this.distro().familyId === 'archlinux') {
109
- if (archlinux_js_1.default.isInstalledWayland()) {
109
+ if (archlinux_1.default.isInstalledWayland()) {
110
110
  installed = true;
111
111
  }
112
112
  }
113
- else if (this.distro().familyId === 'suse' && suse_js_1.default.isInstalledWayland()) {
113
+ else if (this.distro().familyId === 'suse' && suse_1.default.isInstalledWayland()) {
114
114
  installed = true;
115
115
  }
116
116
  return installed;
@@ -122,7 +122,7 @@ class Pacman {
122
122
  static isUefi() {
123
123
  let isUefi = false;
124
124
  if (this.distro().familyId === 'debian') {
125
- if (utils_js_1.default.machineArch() !== 'i386' && this.packageIsInstalled('grub-efi-' + utils_js_1.default.machineArch() + '-bin')) {
125
+ if (utils_1.default.machineArch() !== 'i386' && this.packageIsInstalled('grub-efi-' + utils_1.default.machineArch() + '-bin')) {
126
126
  isUefi = true;
127
127
  }
128
128
  }
@@ -204,16 +204,16 @@ class Pacman {
204
204
  static async prerequisitesInstall(verbose = true) {
205
205
  let retVal = false;
206
206
  if (this.distro().familyId === 'debian') {
207
- retVal = await debian_js_1.default.prerequisitesInstall(verbose);
207
+ retVal = await debian_1.default.prerequisitesInstall(verbose);
208
208
  }
209
209
  else if (this.distro().familyId === 'fedora') {
210
- retVal = await fedora_js_1.default.prerequisitesInstall(verbose);
210
+ retVal = await fedora_1.default.prerequisitesInstall(verbose);
211
211
  }
212
212
  else if (this.distro().familyId === 'archlinux') {
213
- retVal = await archlinux_js_1.default.prerequisitesInstall(verbose);
213
+ retVal = await archlinux_1.default.prerequisitesInstall(verbose);
214
214
  }
215
215
  else if (this.distro().familyId === 'suse') {
216
- retVal = await suse_js_1.default.prerequisitesInstall(verbose);
216
+ retVal = await suse_1.default.prerequisitesInstall(verbose);
217
217
  }
218
218
  return retVal;
219
219
  }
@@ -223,16 +223,16 @@ class Pacman {
223
223
  static async calamaresCheck() {
224
224
  let installed = true;
225
225
  if (this.distro().familyId === 'debian') {
226
- installed = await debian_js_1.default.calamaresCheck();
226
+ installed = await debian_1.default.calamaresCheck();
227
227
  }
228
228
  else if (this.distro().familyId === 'fedora') {
229
- installed = await fedora_js_1.default.calamaresCheck();
229
+ installed = await fedora_1.default.calamaresCheck();
230
230
  }
231
231
  else if (this.distro().familyId === 'archlinux') {
232
- installed = await archlinux_js_1.default.calamaresCheck();
232
+ installed = await archlinux_1.default.calamaresCheck();
233
233
  }
234
234
  else if (this.distro().familyId === 'suse') {
235
- installed = await suse_js_1.default.calamaresCheck();
235
+ installed = await suse_1.default.calamaresCheck();
236
236
  }
237
237
  return installed;
238
238
  }
@@ -253,19 +253,19 @@ class Pacman {
253
253
  static async calamaresInstall(verbose = false) {
254
254
  if (this.isInstalledGui()) {
255
255
  if (this.distro().familyId === 'debian') {
256
- await debian_js_1.default.calamaresInstall(verbose);
256
+ await debian_1.default.calamaresInstall(verbose);
257
257
  }
258
258
  else if (this.distro().familyId === 'fedora') {
259
- await fedora_js_1.default.calamaresInstall(verbose);
259
+ await fedora_1.default.calamaresInstall(verbose);
260
260
  }
261
261
  else if (this.distro().familyId === 'archlinux') {
262
- await archlinux_js_1.default.calamaresInstall(verbose);
262
+ await archlinux_1.default.calamaresInstall(verbose);
263
263
  }
264
264
  else if (this.distro().familyId === 'suse') {
265
- await suse_js_1.default.calamaresInstall(verbose);
265
+ await suse_1.default.calamaresInstall(verbose);
266
266
  }
267
267
  // remove calamares link
268
- await (0, utils_js_2.exec)('rm -f /usr/share/applications/calamares.desktop');
268
+ await (0, utils_2.exec)('rm -f /usr/share/applications/calamares.desktop');
269
269
  }
270
270
  }
271
271
  /**
@@ -273,16 +273,16 @@ class Pacman {
273
273
  */
274
274
  static async calamaresPolicies() {
275
275
  if (this.distro().familyId === 'debian') {
276
- await debian_js_1.default.calamaresPolicies();
276
+ await debian_1.default.calamaresPolicies();
277
277
  }
278
278
  else if (this.distro().familyId === 'fedora') {
279
- await fedora_js_1.default.calamaresPolicies();
279
+ await fedora_1.default.calamaresPolicies();
280
280
  }
281
281
  else if (this.distro().familyId === 'archlinux') {
282
- await archlinux_js_1.default.calamaresPolicies();
282
+ await archlinux_1.default.calamaresPolicies();
283
283
  }
284
284
  else if (this.distro().familyId === 'suse') {
285
- await suse_js_1.default.calamaresPolicies();
285
+ await suse_1.default.calamaresPolicies();
286
286
  }
287
287
  }
288
288
  /**
@@ -291,16 +291,16 @@ class Pacman {
291
291
  static async calamaresRemove(verbose = true) {
292
292
  let retVal = false;
293
293
  if (this.distro().familyId === 'debian') {
294
- retVal = await debian_js_1.default.calamaresRemove(verbose);
294
+ retVal = await debian_1.default.calamaresRemove(verbose);
295
295
  }
296
296
  else if (this.distro().familyId === 'fedora') {
297
- retVal = await fedora_js_1.default.calamaresRemove(verbose);
297
+ retVal = await fedora_1.default.calamaresRemove(verbose);
298
298
  }
299
299
  else if (this.distro().familyId === 'archlinux') {
300
- retVal = await archlinux_js_1.default.calamaresRemove(verbose);
300
+ retVal = await archlinux_1.default.calamaresRemove(verbose);
301
301
  }
302
302
  else if (this.distro().familyId === 'suse') {
303
- retVal = await suse_js_1.default.calamaresRemove(verbose);
303
+ retVal = await suse_1.default.calamaresRemove(verbose);
304
304
  }
305
305
  return retVal;
306
306
  }
@@ -316,9 +316,9 @@ class Pacman {
316
316
  * Ritorna vero se machine-id è uguale
317
317
  */
318
318
  static async configurationMachineNew(verbose = false) {
319
- const settings = new settings_js_1.default();
319
+ const settings = new settings_1.default();
320
320
  await settings.load();
321
- const result = utils_js_1.default.machineId() !== settings.config.machine_id;
321
+ const result = utils_1.default.machineId() !== settings.config.machine_id;
322
322
  if (verbose && result) {
323
323
  console.log('configurationMachineNew: True');
324
324
  }
@@ -329,7 +329,7 @@ class Pacman {
329
329
  */
330
330
  static async configurationFresh() {
331
331
  const config = {};
332
- config.version = utils_js_1.default.getPackageVersion();
332
+ config.version = utils_1.default.getPackageVersion();
333
333
  config.snapshot_dir = '/home/eggs';
334
334
  config.snapshot_prefix = '';
335
335
  config.snapshot_excludes = '/usr/local/share/penguins-eggs/exclude.list';
@@ -355,15 +355,15 @@ class Pacman {
355
355
  }
356
356
  if (!Pacman.isUefi()) {
357
357
  config.make_efi = false;
358
- console.log('Due the lacks of grub-efi-' + utils_js_1.default.machineArch() + '-bin package set make_efi = false');
358
+ console.log('Due the lacks of grub-efi-' + utils_1.default.machineArch() + '-bin package set make_efi = false');
359
359
  }
360
360
  /**
361
361
  * Salvo la configurazione di eggs.yaml
362
362
  */
363
- config.machine_id = utils_js_1.default.machineId();
364
- config.vmlinuz = utils_js_1.default.vmlinuz();
365
- config.initrd_img = utils_js_1.default.initrdImg();
366
- const settings = new settings_js_1.default();
363
+ config.machine_id = utils_1.default.machineId();
364
+ config.vmlinuz = utils_1.default.vmlinuz();
365
+ config.initrd_img = utils_1.default.initrdImg();
366
+ const settings = new settings_1.default();
367
367
  await settings.save(config);
368
368
  }
369
369
  /**
@@ -412,15 +412,15 @@ class Pacman {
412
412
  * Rimozione dei file di configurazione
413
413
  */
414
414
  static async configurationRemove(verbose = true) {
415
- const echo = utils_js_1.default.setEcho(verbose);
415
+ const echo = utils_1.default.setEcho(verbose);
416
416
  if (node_fs_1.default.existsSync('/etc/penguins-eggs.d')) {
417
- await (0, utils_js_2.exec)('rm /etc/penguins-eggs.d -rf', echo);
417
+ await (0, utils_2.exec)('rm /etc/penguins-eggs.d -rf', echo);
418
418
  }
419
419
  if (node_fs_1.default.existsSync('/usr/local/share/penguins-eggs/exclude.list')) {
420
- await (0, utils_js_2.exec)('rm /usr/local/share/penguins-eggs/exclude.list', echo);
420
+ await (0, utils_2.exec)('rm /usr/local/share/penguins-eggs/exclude.list', echo);
421
421
  }
422
422
  if (node_fs_1.default.existsSync('/etc/calamares')) {
423
- await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
423
+ await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
424
424
  }
425
425
  }
426
426
  /**
@@ -431,15 +431,15 @@ class Pacman {
431
431
  if (this.distro().familyId === 'debian') {
432
432
  if (Pacman.packageIsInstalled('bash-completion')) {
433
433
  if (node_fs_1.default.existsSync('/usr/share/bash-completion/completions/')) {
434
- await (0, utils_js_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /usr/share/bash-completion/completions/`);
434
+ await (0, utils_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /usr/share/bash-completion/completions/`);
435
435
  }
436
436
  else if (node_fs_1.default.existsSync('/etc/bash_completion.d/')) {
437
- await (0, utils_js_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /etc/bash_completion.d/`);
437
+ await (0, utils_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /etc/bash_completion.d/`);
438
438
  }
439
439
  }
440
440
  }
441
441
  else if (this.distro().familyId === 'archlinux' && Pacman.packageIsInstalled('bash-completion')) {
442
- await (0, utils_js_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /usr/share/bash-completion/completions/`);
442
+ await (0, utils_2.exec)(`cp ${__dirname}/../../scripts/eggs.bash /usr/share/bash-completion/completions/`);
443
443
  }
444
444
  }
445
445
  /**
@@ -450,12 +450,12 @@ class Pacman {
450
450
  if (node_fs_1.default.existsSync(manPageSrc)) {
451
451
  const man1Dir = '/usr/share/man/man1/';
452
452
  if (!node_fs_1.default.existsSync(man1Dir)) {
453
- (0, utils_js_2.exec)(`mkdir ${man1Dir} -p`);
453
+ (0, utils_2.exec)(`mkdir ${man1Dir} -p`);
454
454
  }
455
455
  const manPageDest = man1Dir + 'eggs.1.gz';
456
- (0, utils_js_2.exec)(`cp ${manPageSrc} ${manPageDest}`);
456
+ (0, utils_2.exec)(`cp ${manPageSrc} ${manPageDest}`);
457
457
  if (shelljs_1.default.exec('which mandb', { silent: true }).stdout.trim() !== '') {
458
- await (0, utils_js_2.exec)('mandb > /dev/null');
458
+ await (0, utils_2.exec)('mandb > /dev/null');
459
459
  if (verbose) {
460
460
  console.log('manPage eggs installed...');
461
461
  }
@@ -476,9 +476,9 @@ class Pacman {
476
476
  if (verbose) {
477
477
  console.log('distroTemplateInstall');
478
478
  }
479
- const echo = utils_js_1.default.setEcho(verbose);
480
- const rootPen = utils_js_1.default.rootPenguin();
481
- await (0, utils_js_2.exec)(`mkdir /etc/penguins-eggs.d/distros/${this.distro().codenameLikeId}`);
479
+ const echo = utils_1.default.setEcho(verbose);
480
+ const rootPen = utils_1.default.rootPenguin();
481
+ await (0, utils_2.exec)(`mkdir /etc/penguins-eggs.d/distros/${this.distro().codenameLikeId}`);
482
482
  /**
483
483
  * Debian 10 - Buster: è il master per tutte le distro
484
484
  */
@@ -488,35 +488,35 @@ class Pacman {
488
488
  */
489
489
  if (this.distro().codenameLikeId === 'jessie') {
490
490
  const dest = '/etc/penguins-eggs.d/distros/jessie';
491
- await (0, utils_js_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
491
+ await (0, utils_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
492
492
  /**
493
493
  * Debian 9 stretch: eredita grub, isolinux e locales da buster, contiene krill al posto di calamares
494
494
  */
495
495
  }
496
496
  else if (this.distro().codenameLikeId === 'stretch') {
497
497
  const dest = '/etc/penguins-eggs.d/distros/stretch';
498
- await (0, utils_js_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
498
+ await (0, utils_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
499
499
  /**
500
500
  * Debian 10 buster: eredita tutto da buster
501
501
  */
502
502
  }
503
503
  else if (this.distro().codenameLikeId === 'buster') {
504
504
  const dest = '/etc/penguins-eggs.d/distros/buster';
505
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
505
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
506
506
  /**
507
507
  * Debian 11 bullseye: eredita tutto da buster
508
508
  */
509
509
  }
510
510
  else if (this.distro().codenameLikeId === 'bullseye') {
511
511
  const dest = '/etc/penguins-eggs.d/distros/bullseye';
512
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
512
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
513
513
  /**
514
514
  * Debian 12 bookworm: eredita tutto da buster
515
515
  */
516
516
  }
517
517
  else if (this.distro().codenameLikeId === 'bookworm') {
518
518
  const dest = '/etc/penguins-eggs.d/distros/bookworm';
519
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
519
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
520
520
  /***********************************************************************************
521
521
  * Devuan
522
522
  **********************************************************************************/
@@ -526,21 +526,21 @@ class Pacman {
526
526
  }
527
527
  else if (this.distro().codenameLikeId === 'beowulf') {
528
528
  const dest = '/etc/penguins-eggs.d/distros/beowulf';
529
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
529
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
530
530
  /**
531
531
  * Devuan chimaera: eredita tutto da buster
532
532
  */
533
533
  }
534
534
  else if (this.distro().codenameLikeId === 'chimaera') {
535
535
  const dest = '/etc/penguins-eggs.d/distros/chimaera';
536
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
536
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
537
537
  /**
538
538
  * Devuan daedalus: eredita tutto da buster
539
539
  */
540
540
  }
541
541
  else if (this.distro().codenameLikeId === 'daedalus') {
542
542
  const dest = '/etc/penguins-eggs.d/distros/daedalus';
543
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
543
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
544
544
  /***********************************************************************************
545
545
  * Ubuntu
546
546
  **********************************************************************************/
@@ -551,15 +551,15 @@ class Pacman {
551
551
  else if (this.distro().codenameLikeId === 'bionic') {
552
552
  const dest = '/etc/penguins-eggs.d/distros/bionic';
553
553
  const bionic = `${rootPen}/conf/distros/bionic/*`;
554
- await (0, utils_js_2.exec)(`cp -r ${bionic} ${dest}`, echo);
554
+ await (0, utils_2.exec)(`cp -r ${bionic} ${dest}`, echo);
555
555
  // Poi da buster
556
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
557
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
558
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
559
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
560
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
561
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
562
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
556
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
557
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
558
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
559
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
560
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
561
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
562
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
563
563
  /**
564
564
  * Ubuntu focal: eredita da focal e buster
565
565
  */
@@ -567,14 +567,14 @@ class Pacman {
567
567
  else if (this.distro().codenameLikeId === 'focal') {
568
568
  const dest = '/etc/penguins-eggs.d/distros/focal';
569
569
  const focal = `${rootPen}/conf/distros/focal/*`;
570
- await (0, utils_js_2.exec)(`cp -r ${focal} ${dest}`, echo);
571
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
572
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
573
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
574
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
575
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
576
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
577
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
570
+ await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
571
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
572
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
573
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
574
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
575
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
576
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
577
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
578
578
  /**
579
579
  * Ubuntu 21.10 impish: eredita da focal e buster
580
580
  */
@@ -582,14 +582,14 @@ class Pacman {
582
582
  else if (this.distro().codenameLikeId === 'impish') {
583
583
  const dest = '/etc/penguins-eggs.d/distros/impish';
584
584
  const focal = `${rootPen}/conf/distros/focal/*`;
585
- await (0, utils_js_2.exec)(`cp -r ${focal} ${dest}`, echo);
586
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
587
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
588
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
589
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
590
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
591
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
592
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
585
+ await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
586
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
587
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
588
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
589
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
590
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
591
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
592
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
593
593
  /**
594
594
  * Ubuntu 22.04 jammy: eredita da focal e buster
595
595
  */
@@ -597,14 +597,14 @@ class Pacman {
597
597
  else if (this.distro().codenameLikeId === 'jammy') {
598
598
  const dest = '/etc/penguins-eggs.d/distros/jammy';
599
599
  const focal = `${rootPen}/conf/distros/focal/*`;
600
- await (0, utils_js_2.exec)(`cp -r ${focal} ${dest}`, echo);
601
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
602
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
603
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
604
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
605
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
606
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
607
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
600
+ await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
601
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
602
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
603
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
604
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
605
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
606
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
607
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
608
608
  /**
609
609
  * Ubuntu 22.10 kinetic: eredita da focal e buster
610
610
  */
@@ -612,14 +612,14 @@ class Pacman {
612
612
  else if (this.distro().codenameLikeId === 'kinetic') {
613
613
  const dest = '/etc/penguins-eggs.d/distros/kinetic';
614
614
  const focal = `${rootPen}/conf/distros/focal/*`;
615
- await (0, utils_js_2.exec)(`cp -r ${focal} ${dest}`, echo);
616
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
617
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
618
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
619
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
620
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
621
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
622
- await (0, utils_js_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
615
+ await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
616
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
617
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
618
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-undo ${dest}/calamares/calamares-modules/sources-yolk-undo`, echo);
619
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
620
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
621
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
622
+ await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
623
623
  /***********************************************************************************
624
624
  * Fedora
625
625
  **********************************************************************************/
@@ -630,7 +630,7 @@ class Pacman {
630
630
  else if (this.distro().codenameLikeId === 'thirtyfive') {
631
631
  const dest = '/etc/penguins-eggs.d/distros/thirtyfive/';
632
632
  const thirtytive = `${rootPen}/conf/distros/thirtyfive/*`;
633
- await (0, utils_js_2.exec)(`cp -r ${thirtytive} ${dest}`, echo);
633
+ await (0, utils_2.exec)(`cp -r ${thirtytive} ${dest}`, echo);
634
634
  /***********************************************************************************
635
635
  * Arch Linux
636
636
  **********************************************************************************/
@@ -641,7 +641,7 @@ class Pacman {
641
641
  else if (this.distro().codenameLikeId === 'rolling') {
642
642
  const dest = '/etc/penguins-eggs.d/distros/rolling/';
643
643
  const rolling = `${rootPen}/conf/distros/rolling/*`;
644
- await (0, utils_js_2.exec)(`cp -r ${rolling} ${dest}`, echo);
644
+ await (0, utils_2.exec)(`cp -r ${rolling} ${dest}`, echo);
645
645
  /***********************************************************************************
646
646
  * openSuse
647
647
  **********************************************************************************/
@@ -652,7 +652,7 @@ class Pacman {
652
652
  else if (this.distro().codenameLikeId === 'tumbleweed') {
653
653
  const dest = '/etc/penguins-eggs.d/distros/tumbleweed/';
654
654
  const tumbleweed = `${rootPen}/conf/distros/tumbleweed/*`;
655
- await (0, utils_js_2.exec)(`cp -r ${tumbleweed} ${dest}`, echo);
655
+ await (0, utils_2.exec)(`cp -r ${tumbleweed} ${dest}`, echo);
656
656
  }
657
657
  }
658
658
  /**
@@ -662,16 +662,16 @@ class Pacman {
662
662
  static packageIsInstalled(packageName) {
663
663
  let installed = false;
664
664
  if (this.distro().familyId === 'debian') {
665
- installed = debian_js_1.default.packageIsInstalled(packageName);
665
+ installed = debian_1.default.packageIsInstalled(packageName);
666
666
  }
667
667
  else if (this.distro().familyId === 'fedora') {
668
- installed = fedora_js_1.default.packageIsInstalled(packageName);
668
+ installed = fedora_1.default.packageIsInstalled(packageName);
669
669
  }
670
670
  else if (this.distro().familyId === 'archlinux') {
671
- installed = archlinux_js_1.default.packageIsInstalled(packageName);
671
+ installed = archlinux_1.default.packageIsInstalled(packageName);
672
672
  }
673
673
  else if (this.distro().familyId === 'suse') {
674
- installed = suse_js_1.default.packageIsInstalled(packageName);
674
+ installed = suse_1.default.packageIsInstalled(packageName);
675
675
  }
676
676
  return installed;
677
677
  }
@@ -682,7 +682,7 @@ class Pacman {
682
682
  static async packageAptAvailable(packageName) {
683
683
  let available = false;
684
684
  if (this.distro().familyId === 'debian') {
685
- available = debian_js_1.default.packageIsInstalled(packageName);
685
+ available = debian_1.default.packageIsInstalled(packageName);
686
686
  }
687
687
  return available;
688
688
  }
@@ -694,7 +694,7 @@ class Pacman {
694
694
  static async packageAptLast(debPackage) {
695
695
  let version = '';
696
696
  if (this.distro().familyId === 'debian') {
697
- version = await debian_js_1.default.packageAptLast(debPackage);
697
+ version = await debian_1.default.packageAptLast(debPackage);
698
698
  }
699
699
  return version;
700
700
  }
@@ -712,7 +712,7 @@ class Pacman {
712
712
  installed = true;
713
713
  }
714
714
  else {
715
- utils_js_1.default.warning(`${cmd} is not in your search path or is not installed!`);
715
+ utils_1.default.warning(`${cmd} is not in your search path or is not installed!`);
716
716
  }
717
717
  return installed;
718
718
  }
@@ -724,13 +724,13 @@ class Pacman {
724
724
  static async packageInstall(packageName) {
725
725
  let retVal = false;
726
726
  if (this.distro().familyId === 'debian') {
727
- retVal = await debian_js_1.default.packageInstall(packageName);
727
+ retVal = await debian_1.default.packageInstall(packageName);
728
728
  }
729
729
  else if (this.distro().familyId === 'archlinux') {
730
- retVal = await archlinux_js_1.default.packageInstall(packageName);
730
+ retVal = await archlinux_1.default.packageInstall(packageName);
731
731
  }
732
732
  else if (this.distro().familyId === 'fedora') {
733
- retVal = await fedora_js_1.default.packageInstall(packageName);
733
+ retVal = await fedora_1.default.packageInstall(packageName);
734
734
  }
735
735
  return retVal;
736
736
  }
@@ -18,13 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  * sudo systemctl disable application.service
19
19
  * This will remove the symbolic link that indicated that the service should be started automatically.
20
20
  */
21
- const systemctl_js_1 = __importDefault(require("./systemctl.js"));
21
+ const systemctl_1 = __importDefault(require("./systemctl"));
22
22
  const path_1 = __importDefault(require("path"));
23
23
  const shelljs_1 = __importDefault(require("shelljs"));
24
24
  class PveLive {
25
25
  constructor() {
26
26
  this.systemctl = {};
27
- this.systemctl = new systemctl_js_1.default();
27
+ this.systemctl = new systemctl_1.default();
28
28
  }
29
29
  /**
30
30
  * enable PveLIve