penguins-eggs 9.1.31 → 9.1.37

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 (127) hide show
  1. package/README.md +61 -20
  2. package/addons/eggs/adapt/applications/eggs-adapt.desktop +0 -0
  3. package/addons/eggs/adapt/bin/adapt +0 -0
  4. package/addons/eggs/ichoice/bin/eggs-ichoice.sh +0 -0
  5. package/addons/eggs/pve/applications/eggs-pve.desktop +0 -0
  6. package/addons/eggs/rsupport/applications/eggs-rsupport.desktop +0 -0
  7. package/addons/eggs/theme/applications/install-debian.desktop +2 -2
  8. package/addons/neon/theme/applications/install-debian.desktop +0 -0
  9. package/addons/telos/theme/applications/install-debian.desktop +0 -0
  10. package/addons/ufficiozero/theme/applications/install-debian.desktop +0 -0
  11. package/addons/waydroid/theme/applications/install-debian.desktop +0 -0
  12. package/assets/calamares/install-debian +0 -0
  13. package/assets/penguins-eggs.desktop +0 -0
  14. package/assets/penguins-krill.desktop +0 -0
  15. package/assets/penguins-links-add.desktop +0 -0
  16. package/assets/penguins-live-installer.desktop +0 -0
  17. package/bin/dev +0 -0
  18. package/conf/distros/bionic/calamares/calamares-modules/after-bootloader/after-bootloader.sh +0 -0
  19. package/conf/distros/bionic/calamares/calamares-modules/before-bootloader/before-bootloader.sh +0 -0
  20. package/conf/distros/bionic/calamares/calamares-modules/before-bootloader-mkdirs/before-bootloader-mkdirs.sh +0 -0
  21. package/conf/distros/bionic/calamares/calamares-modules/bug/bug.sh +0 -0
  22. package/conf/distros/bionic/calamares/calamares-modules/grubcfg/main.py +0 -0
  23. package/conf/distros/buster/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
  24. package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -0
  25. package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
  26. package/conf/distros/buster/calamares/modules/locale.yml +3 -3
  27. package/conf/distros/focal/calamares/calamares-modules/automirror/main.py +0 -0
  28. package/conf/eggs.yaml +2 -2
  29. package/conf/exclude.list +81 -96
  30. package/conf/tools.yaml +1 -1
  31. package/lib/classes/compressors.d.ts +7 -0
  32. package/lib/classes/compressors.js +38 -1
  33. package/lib/classes/daddy.js +6 -29
  34. package/lib/classes/distro.js +25 -12
  35. package/lib/classes/incubation/fisherman-helper/packages.js +6 -3
  36. package/lib/classes/keyboards.d.ts +10 -12
  37. package/lib/classes/keyboards.js +19 -23
  38. package/lib/classes/locales.js +15 -10
  39. package/lib/classes/ovary.js +53 -17
  40. package/lib/classes/utils.js +20 -6
  41. package/lib/commands/{install.d.ts → krill.d.ts} +1 -0
  42. package/lib/commands/{install.js → krill.js} +2 -2
  43. package/lib/commands/produce.js +8 -30
  44. package/lib/components/elements/information.js +0 -2
  45. package/lib/{classes/krill_prepare.d.ts → krill/krill-prepare.d.ts} +9 -2
  46. package/lib/{classes/krill_prepare.js → krill/krill-prepare.js} +62 -12
  47. package/lib/krill/krill-sequence.d.ts +148 -0
  48. package/lib/krill/krill-sequence.js +533 -0
  49. package/lib/krill/modules/add-user.d.ts +15 -0
  50. package/lib/krill/modules/add-user.js +41 -0
  51. package/lib/krill/modules/bootloader-config-arch.d.ts +9 -0
  52. package/lib/krill/modules/bootloader-config-arch.js +13 -0
  53. package/lib/krill/modules/bootloader-config-ubuntu.d.ts +9 -0
  54. package/lib/krill/modules/bootloader-config-ubuntu.js +93 -0
  55. package/lib/krill/modules/bootloader-config.d.ts +9 -0
  56. package/lib/krill/modules/bootloader-config.js +23 -0
  57. package/lib/krill/modules/bootloader.d.ts +10 -0
  58. package/lib/krill/modules/bootloader.js +43 -0
  59. package/lib/krill/modules/change-password.d.ts +10 -0
  60. package/lib/krill/modules/change-password.js +16 -0
  61. package/lib/krill/modules/del-live-user.d.ts +9 -0
  62. package/lib/krill/modules/del-live-user.js +37 -0
  63. package/lib/krill/modules/fstab.d.ts +9 -0
  64. package/lib/krill/modules/fstab.js +93 -0
  65. package/lib/krill/modules/grubcfg.d.ts +12 -0
  66. package/lib/krill/modules/grubcfg.js +33 -0
  67. package/lib/krill/modules/hostname.d.ts +8 -0
  68. package/lib/krill/modules/hostname.js +13 -0
  69. package/lib/krill/modules/hosts.d.ts +9 -0
  70. package/lib/krill/modules/hosts.js +30 -0
  71. package/lib/krill/modules/initramfs-cfg.d.ts +9 -0
  72. package/lib/krill/modules/initramfs-cfg.js +29 -0
  73. package/lib/krill/modules/initramfs.d.ts +8 -0
  74. package/lib/krill/modules/initramfs.js +42 -0
  75. package/lib/krill/modules/locale-cfg.d.ts +5 -0
  76. package/lib/krill/modules/locale-cfg.js +58 -0
  77. package/lib/krill/modules/locale.d.ts +8 -0
  78. package/lib/krill/modules/locale.js +47 -0
  79. package/lib/krill/modules/machine-id.d.ts +10 -0
  80. package/lib/krill/modules/machine-id.js +21 -0
  81. package/lib/krill/modules/mkfs.d.ts +8 -0
  82. package/lib/krill/modules/mkfs.js +33 -0
  83. package/lib/krill/modules/mount-fs.d.ts +12 -0
  84. package/lib/krill/modules/mount-fs.js +63 -0
  85. package/lib/krill/modules/mount-vfs.d.ts +12 -0
  86. package/lib/krill/modules/mount-vfs.js +40 -0
  87. package/lib/krill/modules/network-cfg.d.ts +14 -0
  88. package/lib/krill/modules/network-cfg.js +49 -0
  89. package/lib/krill/modules/partitions.d.ts +15 -0
  90. package/lib/krill/modules/partitions.js +307 -0
  91. package/lib/krill/modules/remove-installer-link.d.ts +8 -0
  92. package/lib/krill/modules/remove-installer-link.js +34 -0
  93. package/lib/krill/modules/set-keyboard.d.ts +5 -0
  94. package/lib/krill/modules/set-keyboard.js +50 -0
  95. package/lib/krill/modules/set-timezone.d.ts +9 -0
  96. package/lib/krill/modules/set-timezone.js +21 -0
  97. package/lib/krill/modules/umount.d.ts +9 -0
  98. package/lib/krill/modules/umount.js +26 -0
  99. package/lib/krill/modules/unpackfs.d.ts +8 -0
  100. package/lib/krill/modules/unpackfs.js +17 -0
  101. package/lib/lib/cli-autologin.js +3 -3
  102. package/lib/lib/select_keyboard_variant.js +1 -0
  103. package/lib/lib/utils.d.ts +27 -0
  104. package/lib/lib/utils.js +54 -19
  105. package/manpages/doc/man/eggs.html +122 -90
  106. package/mkinitcpio/README.md +8 -1
  107. package/mkinitcpio/archlinux/README.md +116 -0
  108. package/mkinitcpio/archlinux/mkinitcpio-install.conf +5 -0
  109. package/mkinitcpio/archlinux/mkinitcpio-produce.conf +13 -0
  110. package/mkinitcpio/manjaro/README.md +31 -11
  111. package/mkinitcpio/manjaro/mkinitcpio-install.conf +7 -0
  112. package/mkinitcpio/manjaro/{mkinitcpio.conf → mkinitcpio-produce.conf} +1 -1
  113. package/package.json +117 -112
  114. package/scripts/_eggs +8 -8
  115. package/scripts/bros/waydroid-helper.sh +0 -0
  116. package/scripts/eggs-adapt.sh +0 -0
  117. package/scripts/eggs.bash +1 -1
  118. package/scripts/install-eggs-ppa.sh +0 -0
  119. package/scripts/mom-cli.sh +8 -8
  120. package/scripts/pve-live.service +0 -0
  121. package/scripts/pve-live.sh +0 -0
  122. package/scripts/resy.sh +0 -0
  123. package/scripts/userexist.sh +0 -0
  124. package/lib/classes/i18n.d.ts +0 -34
  125. package/lib/classes/i18n.js +0 -126
  126. package/lib/classes/krill_install.d.ts +0 -227
  127. package/lib/classes/krill_install.js +0 -1370
package/README.md CHANGED
@@ -48,7 +48,7 @@ wardrobe was added to eggs on april 2022, it's is a way to guide and consolidate
48
48
 
49
49
  I hope peoples will be interested in wardrobe and you will end to fork the main repository and add your customizations: together will be possibile to make great steps impossible for a single developer.
50
50
 
51
- You can read more in wardrobe on [penguin's eggs blog](https://penguins-eggs.net/2022/04/12/wardrobe-colibri-duck-eagle-and-owl/). The results of mine customizations are mostly under [Debian bullseye](https://sourceforge.net/projects/penguins-eggs/files/iso/debian/bullseye/), [Devuan chimaera](https://sourceforge.net/projects/penguins-eggs/files/iso/devuan/chimaera/) and [Ubuntu jammy](https://sourceforge.net/projects/penguins-eggs/files/iso/ubuntu/jammy/) on my sourgeforce page.
51
+ You can read more in wardrobe on [penguin's eggs blog](https://penguins-eggs.net/2022/04/12/wardrobe-colibri-duck-eagle-and-owl/). The results of mine customizations are mostly under [Debian bullseye](https://sourceforge.net/projects/penguins-eggs/files/iso/debian/bullseye/), [Devuan chimaera](ttps://sourceforge.net/projects/penguins-eggs/files/iso/devuan/chimaera/) and [Ubuntu jammy](https://sourceforge.net/projects/penguins-eggs/files/iso/ubuntu/jammy/) on my sourgeforce page.
52
52
 
53
53
  ### krill
54
54
  eggs include a CLI installer named krill, this let you to produce and install servers configurations. krill use a nice TUI interface using the same, configuration created by eggs for [calamares](calamares.io). This lead to have "about the same" experience installing, from old distros to new ones and for GUI and CLI. To force using krill in place of calamares in a GUI system just: **sudo eggs install --cli**
@@ -78,7 +78,7 @@ Or a new installation, can easyly get users and servers data from a luks-eggs-ba
78
78
  * ```syncfrom``` replace all users homes and all servers homes with data from the luck-eggs-backup file, Force this data in a not appropriate system can easily end in a long disaster recovery.
79
79
 
80
80
  ## What distributions can I use?
81
- eggs was born on Debian strecth, buster and following, actually full support Debian from jessie to bookworm/sid, Devuan beowulf, chimaera, daedalus, Ubuntu bionic, focal, jammy and all derivatives from them, including Linux mint, Deepin, neon KDE, etc. Eggs is able to remaster and install manjaro linux too and derivated, i need help to continue the effort to manjaro.
81
+ eggs was born on Debian strecth, buster and followinng. Actually full support Debian from jessie to bookworm/sid, Devuan beowulf, chimaera, daedalus, Ubuntu bionic, focal, jammy - and all derivatives from them including Linux mint, Deepin, neon KDE, etc - ManjaroLinux and finally Arch, the last distro added.
82
82
 
83
83
  You can read more on the [blog](https://penguins-eggs.net/2021/11/02/distros-that-can-be-remastered-with-eggs/), some examples of iso images remastered with eggs are in the [sourceforge page of the project](https://sourceforge.net/projects/penguins-eggs/files/iso/).
84
84
 
@@ -132,7 +132,7 @@ $ npm install -g penguins-eggs
132
132
  $ eggs COMMAND
133
133
  running command...
134
134
  $ eggs (--version|-v)
135
- penguins-eggs/9.1.31 linux-x64 node-v16.15.1
135
+ penguins-eggs/9.1.37 linux-x64 node-v16.16.0
136
136
  $ eggs --help [COMMAND]
137
137
  USAGE
138
138
  $ eggs COMMAND
@@ -155,6 +155,7 @@ USAGE
155
155
  * [`eggs info`](#eggs-info)
156
156
  * [`eggs install`](#eggs-install)
157
157
  * [`eggs kill`](#eggs-kill)
158
+ * [`eggs krill`](#eggs-krill)
158
159
  * [`eggs mom`](#eggs-mom)
159
160
  * [`eggs produce`](#eggs-produce)
160
161
  * [`eggs remove`](#eggs-remove)
@@ -188,7 +189,7 @@ DESCRIPTION
188
189
  adapt monitor resolution for VM only
189
190
  ```
190
191
 
191
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/adapt.ts)_
192
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/adapt.ts)_
192
193
 
193
194
  ## `eggs analyze`
194
195
 
@@ -209,7 +210,7 @@ EXAMPLES
209
210
  $ sudo eggs analyze
210
211
  ```
211
212
 
212
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/analyze.ts)_
213
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/analyze.ts)_
213
214
 
214
215
  ## `eggs autocomplete [SHELL]`
215
216
 
@@ -267,7 +268,7 @@ EXAMPLES
267
268
  install calamares and create it's configuration's files
268
269
  ```
269
270
 
270
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/calamares.ts)_
271
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/calamares.ts)_
271
272
 
272
273
  ## `eggs config`
273
274
 
@@ -291,7 +292,7 @@ EXAMPLES
291
292
  Configure and install prerequisites deb packages to run it
292
293
  ```
293
294
 
294
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/config.ts)_
295
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/config.ts)_
295
296
 
296
297
  ## `eggs dad`
297
298
 
@@ -311,7 +312,7 @@ DESCRIPTION
311
312
  ask help from daddy - configuration helper
312
313
  ```
313
314
 
314
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/dad.ts)_
315
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/dad.ts)_
315
316
 
316
317
  ## `eggs export deb`
317
318
 
@@ -402,7 +403,7 @@ DESCRIPTION
402
403
  informations about eggs configuration
403
404
  ```
404
405
 
405
- _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/info.ts)_
406
+ _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/info.ts)_
406
407
 
407
408
  ## `eggs install`
408
409
 
@@ -422,13 +423,14 @@ FLAGS
422
423
  DESCRIPTION
423
424
  command-line system installer - the egg became a penguin!
424
425
 
426
+ ALIASES
427
+ $ eggs install
428
+
425
429
  EXAMPLES
426
430
  $ eggs install
427
431
  Install the system using GUI or CLI installer
428
432
  ```
429
433
 
430
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/install.ts)_
431
-
432
434
  ## `eggs kill`
433
435
 
434
436
  kill the eggs/free the nest
@@ -449,7 +451,35 @@ EXAMPLES
449
451
  kill the eggs/free the nest
450
452
  ```
451
453
 
452
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/kill.ts)_
454
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/kill.ts)_
455
+
456
+ ## `eggs krill`
457
+
458
+ command-line system installer - the egg became a penguin!
459
+
460
+ ```
461
+ USAGE
462
+ $ eggs krill [-c] [-k] [-p] [-h] [-v]
463
+
464
+ FLAGS
465
+ -c, --cli force use CLI installer
466
+ -h, --help Show CLI help.
467
+ -k, --crypted crypted CLI installation
468
+ -p, --pve Proxmox VE install
469
+ -v, --verbose verbose
470
+
471
+ DESCRIPTION
472
+ command-line system installer - the egg became a penguin!
473
+
474
+ ALIASES
475
+ $ eggs install
476
+
477
+ EXAMPLES
478
+ $ eggs install
479
+ Install the system using GUI or CLI installer
480
+ ```
481
+
482
+ _See code: [src/commands/krill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/krill.ts)_
453
483
 
454
484
  ## `eggs mom`
455
485
 
@@ -466,7 +496,7 @@ DESCRIPTION
466
496
  ask for mommy - gui helper
467
497
  ```
468
498
 
469
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/mom.ts)_
499
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/mom.ts)_
470
500
 
471
501
  ## `eggs produce`
472
502
 
@@ -527,7 +557,7 @@ EXAMPLES
527
557
  in /home/eggs/ovarium and you can customize all you need
528
558
  ```
529
559
 
530
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/produce.ts)_
560
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/produce.ts)_
531
561
 
532
562
  ## `eggs remove`
533
563
 
@@ -557,7 +587,7 @@ EXAMPLES
557
587
  remove eggs, eggs configurations, packages dependencies
558
588
  ```
559
589
 
560
- _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/remove.ts)_
590
+ _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/remove.ts)_
561
591
 
562
592
  ## `eggs syncfrom`
563
593
 
@@ -581,7 +611,7 @@ EXAMPLES
581
611
  $ sudo eggs restore
582
612
  ```
583
613
 
584
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/syncfrom.ts)_
614
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/syncfrom.ts)_
585
615
 
586
616
  ## `eggs syncto`
587
617
 
@@ -604,7 +634,7 @@ EXAMPLES
604
634
  $ sudo eggs syncto
605
635
  ```
606
636
 
607
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/syncto.ts)_
637
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/syncto.ts)_
608
638
 
609
639
  ## `eggs tools clean`
610
640
 
@@ -699,16 +729,27 @@ EXAMPLES
699
729
  update/upgrade the penguin's eggs tool
700
730
  ```
701
731
 
702
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/update.ts)_
732
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.37/src/commands/update.ts)_
703
733
 
704
734
  ## `eggs version`
705
735
 
706
736
  ```
707
737
  USAGE
708
- $ eggs version
738
+ $ eggs version [--json] [--verbose]
739
+
740
+ FLAGS
741
+ --verbose Show additional information about the CLI.
742
+
743
+ GLOBAL FLAGS
744
+ --json Format output as json.
745
+
746
+ FLAG DESCRIPTIONS
747
+ --verbose Show additional information about the CLI.
748
+
749
+ Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
709
750
  ```
710
751
 
711
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.0.4/src/commands/version.ts)_
752
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.1/src/commands/version.ts)_
712
753
 
713
754
  ## `eggs wardrobe get [REPO]`
714
755
 
File without changes
File without changes
File without changes
File without changes
@@ -4,8 +4,8 @@ Version=1.0
4
4
  Name=Install System
5
5
  GenericName=System Installer
6
6
  Keywords=calamares;system;installer;
7
- Exec=pkexec calamares
8
- # Exec=pkexec /usr/bin/calamares
7
+ Exec=sh -c "pkexec /usr/bin/calamares"
8
+ # Exec=pkexec calamares
9
9
  TryExec=calamares
10
10
  Comment=Calamares — System Installer
11
11
  Icon=install-debian
File without changes
File without changes
File without changes
File without changes
File without changes
package/bin/dev CHANGED
File without changes
@@ -18,13 +18,13 @@ zone: "Rome"
18
18
  # System locales are detected in the following order:
19
19
  #
20
20
  # - /usr/share/i18n/SUPPORTED
21
- # - localeGenPath (defaults to /etc/locale.gen if not set)
21
+ # - localeGenPath (defaults to /etc/ if not set)
22
22
  # - 'locale -a' output
23
23
  #
24
24
  # Enable only when your Distribution is using an
25
- # custom path for locale.gen
25
+ # custom path for
26
26
  #
27
- #localeGenPath: "PATH_TO/locale.gen"
27
+ #localeGenPath: "PATH_TO/"
28
28
 
29
29
  # GeoIP based Language settings: Leave commented out to disable GeoIP.
30
30
  #
package/conf/eggs.yaml CHANGED
@@ -63,8 +63,8 @@ make_isohybrid: true
63
63
 
64
64
  # Compression algorithm
65
65
  # Allowed values are, in order of speed-size tradeoff: lz4, lzo, gzip, xz
66
- # default xz
67
- compression: 'xz'
66
+ # default -Xcompression-level 20
67
+ compression: '-Xcompression-level 20'
68
68
 
69
69
  # Allow password login to ssh for users (not root).
70
70
  # If ssh_pass=true, then PasswordAuthentication will be set to true
package/conf/exclude.list CHANGED
@@ -1,107 +1,92 @@
1
- # rsync excludes file for penguins-eggs
2
- # version 7.5.53
1
+ # rsync excludes file for refractasnapshot and refractasnapshot-gui
2
+ # version 9.3.4
3
3
 
4
- # Do NOT edit this entry block unless you know what you are doing
4
+ # Exclude some system files. These are required, and you probably
5
+ # shouldn't change them.
5
6
 
6
- # root
7
- cdrom/*
8
- dev/*
9
- #live/*
10
- lost+found
11
- media/*
12
- mnt/*
13
- proc/*
14
- run/*
15
- sys/*
16
- tmp/*
17
- swapfile
7
+ - /dev/*
8
+ - /cdrom/*
9
+ - /media/*
10
+ - /swapfile
11
+ - /mnt/*
12
+ - /sys/*
13
+ - /proc/*
14
+ - /tmp/*
15
+ - /live
16
+ - /persistence.conf
18
17
 
19
18
  # boot
20
- boot/efi/
21
- # Toglie tutto ad eccezione di themes ed i fonts
22
- boot/grub/!(themes|fonts)
23
-
24
- ## Questi vengono esclusi anche da ovary
25
- ## "/boot/efi/EFI", "/etc/fstab", "/etc/mtab", "/etc/udev/rules.d/70-persistent-cd.rules", "/etc/udev/rules.d/70-persistent-net.rules"]
19
+ - /boot/grub/grub.cfg
20
+ - /boot/grub/menu.lst
21
+ - /boot/grub/device.map
22
+ - /boot/*.bak
23
+ - /boot/*.old-dkms
24
+ - /etc/udev/rules.d/70-persistent-cd.rules
25
+ - /etc/udev/rules.d/70-persistent-net.rules
26
26
 
27
27
  # etc
28
- etc/adjtime
29
- etc/bcm-ckd
30
- etc/blkid.tab.old
31
- etc/defaultdomain
32
- etc/crypttab
33
- etc/fstab
34
- etc/fstab.backup
35
- etc/ioctl.save
36
- # https://github.com/pieroproietti/penguins-eggs/issues/125
37
- # added follow line to exclude
38
- etc/initramfs-tools/conf.d/resume
39
- etc/live/protect
40
- etc/machine-id
41
- etc/mailname
42
- etc/mtab
43
- etc/NetworkManager/system-connections/*
44
- etc/pve/*
45
- etc/udev/rules.d/70-persistent-cd.rules
46
- etc/udev/rules.d/70-persistent-net.rules
47
- #etc/resolv.conf
48
-
49
- # /root
50
- root/.bash_history
51
- root/.dbus
52
- root/.gconf
53
- root/.gnome2
54
- root/keyfile
55
-
56
- # var
57
- # var/cache
58
- var/cache/apt/archives/*.deb
59
- var/cache/apt-xapian-index/index.*
60
- var/cache/apt-show-versions/*
61
- var/cache/apt/*.bin
62
- var/cache/apt/apt-file/*
63
- var/cache/debconf/*-old
64
- var/cache/lightdm
65
- var/cache/samba/browse.dat
28
+ - /etc/apt/sources.list~
29
+ - /etc/mtab
30
+ - /etc/blkid.tab
31
+ - /etc/blkid.tab.old
32
+ - /etc/crypttab
33
+ - /etc/fstab
34
+ - /etc/fstab.d/*
35
+ - /etc/initramfs-tools/conf.d/resume # see remove-cryptroot and nocrypt.sh
36
+ - /etc/initramfs-tools/conf.d/cryptroot # see remove-cryptroot and nocrypt.sh
37
+ - /etc/machine-id
38
+ - /etc/popularity-contest.conf
39
+ - /etc/ssh/ssh_host_*_key*
40
+ - /etc/ssh/ssh_host_key*
66
41
 
67
- # var/lib
68
- var/lib/apt/lists/*
69
- var/lib/connman/*
70
- var/lib/dbus/machine-id
71
- var/lib/dhcp/*
72
- var/lib/dpkg/*-old
73
- var/lib/lightdm/.cache
74
- var/lib/lightdm/.Xauthority
75
- var/lib/NetworkManager/*
76
- var/lib/nfs/rpc_pipefs/*
77
- var/lib/sudo/*
78
- var/lib/udisks/*
79
- var/lib/urandom/*
42
+ # Added for newer version of live-config/live-boot in wheezy
43
+ # These are only relevant here if you create a snapshot while
44
+ # you're running a live-CD or live-usb.
45
+ - /lib/live/overlay
46
+ - /lib/live/image
47
+ - /lib/live/rootfs
48
+ - /lib/live/mount
49
+ - /run/*
80
50
 
81
- # var/log:
82
- # remove all with exception of:
83
- # apache2, clamav, pveprozy, samba, mysql, cga-update-manager
84
- var/log/!(apache2|clamav|pveproxy|samba|mysql|cga-update-manager)
51
+ # eggs remove all under home
52
+ - /home/*
85
53
 
86
- # the follow lines remove all inside ther respective dirs:
87
- var/log/apache2/*
88
- var/log/clamav/*
89
- var/log/pveproxy/*
90
- var/log/samba/*
91
- var/log/mysql/*
92
-
93
- # We don't want remove nothing in /var/log/cga-update-manager
94
- #var/log/cga-update-manager
95
-
96
-
97
- var/mail/*
98
- var/spool/mail/*
99
- var/tmp/*
100
- var/cache/brightness-settings-cache/*
54
+ # /root
55
+ - /root/.aptitude
56
+ - /root/.bash_history
57
+ - /root/.disk-manager.conf
58
+ - /root/.fstab.log
59
+ - /root/.lesshst
60
+ - /root/*/.log
61
+ - /root/.local/share/*
62
+ - /root/.nano_history
63
+ - /root/.synaptic
64
+ - /root/.VirtualBox
65
+ - /root/.ICEauthority
66
+ - /root/.Xauthority
67
+ - /root/.ssh
101
68
 
102
- # deepin
103
- data/*
104
- recovery/*
69
+ # Added for symlink /lib
70
+ - /usr/lib/live/overlay
71
+ - /usr/lib/live/image
72
+ - /usr/lib/live/rootfs
73
+ - /usr/lib/live/mount
105
74
 
106
- # archlinux
107
- var/cache/pacman/pkg/*
75
+ # var
76
+ - /var/cache/apt/archives/*.deb
77
+ - /var/cache/apt/pkgcache.bin
78
+ - /var/cache/apt/srcpkgcache.bin
79
+ - /var/cache/apt/apt-file/*
80
+ - /var/cache/debconf/*~old
81
+ - /var/lib/apt/lists/*
82
+ - /var/lib/apt/*~
83
+ - /var/lib/apt/cdroms.list
84
+ - /var/lib/aptitude/*.old
85
+ - /var/lib/dhcp/*
86
+ - /var/lib/dpkg/*~old
87
+ - /var/spool/mail/*
88
+ - /var/mail/*
89
+ - /var/backups/*.gz
90
+ - /var/lib/dbus/machine-id
91
+ - /var/lib/live/config/*
92
+ - /usr/share/icons/*/icon-theme.cache
package/conf/tools.yaml CHANGED
@@ -4,7 +4,7 @@
4
4
  penguins_eggs_conf: /etc/penguins-eggs.d/eggs.yaml
5
5
 
6
6
  # you can adapt this configuration to your needs
7
- remoteHost: 192.168.61.2
7
+ remoteHost: 192.168.1.2
8
8
 
9
9
  # user to be used in remote host
10
10
  remoteUser: artisan
@@ -11,6 +11,13 @@ export default class Compressors {
11
11
  source: string;
12
12
  dest: string;
13
13
  populate(): Promise<void>;
14
+ fast(): string;
15
+ normal(): string;
16
+ /**
17
+ * max
18
+ * @returns
19
+ */
20
+ max(): string;
14
21
  private prepareCheck;
15
22
  private removeCheck;
16
23
  private check;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  /**
5
- * test i compressori disponibili
5
+ * test available compressors
6
6
  */
7
7
  const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
8
8
  class Compressors {
@@ -29,6 +29,43 @@ class Compressors {
29
29
  this.isEnabled.zstd = await this.check('zstd');
30
30
  await this.removeCheck();
31
31
  }
32
+ // fastest
33
+ fast() {
34
+ let comp = 'gzip';
35
+ if (this.isEnabled.zstd) {
36
+ comp = 'zstd -b 256K -Xcompression-level 1';
37
+ }
38
+ else if (this.isEnabled.lz4) {
39
+ comp = 'lz4';
40
+ }
41
+ return comp;
42
+ }
43
+ // normal
44
+ normal() {
45
+ let comp = "xz";
46
+ if (this.isEnabled.zstd) {
47
+ comp = 'zstd -b 256K -Xcompression-level 20';
48
+ }
49
+ else {
50
+ comp = 'xz -b 256K';
51
+ }
52
+ return comp;
53
+ }
54
+ /**
55
+ * max
56
+ * @returns
57
+ */
58
+ max() {
59
+ let comp = 'xz -b 256K -Xbcj ';
60
+ const filter = 'x86';
61
+ if (process.arch === 'arm') {
62
+ const filter = 'ARM'; // to check
63
+ }
64
+ else if (process.arch === 'arm64') {
65
+ const filter = 'ARM64'; // to check
66
+ }
67
+ return comp + filter;
68
+ }
32
69
  async prepareCheck() {
33
70
  shelljs_1.default.exec('rm -rf ' + this.source, { silent: true });
34
71
  shelljs_1.default.exec('mkdir ' + this.source, { silent: true });
@@ -60,39 +60,16 @@ class Daddy {
60
60
  config.root_passwd = newConf.root_passwd;
61
61
  config.theme = newConf.theme;
62
62
  /**
63
- * Analisi del tipo di compressione del kernel
64
- *
63
+ * Analisi del tipo di compressione disponibile
65
64
  */
66
65
  const compressors = new compressors_1.default();
67
66
  await compressors.populate();
68
- let fastest = 'gzip';
69
- if (compressors.isEnabled.zstd) {
70
- fastest = 'zstd -Xcompression-level 1 -b 262144';
67
+ config.compression = compressors.normal();
68
+ if (newConf.compression === 'fast') {
69
+ config.compression = compressors.fast();
71
70
  }
72
- else if (compressors.isEnabled.lz4) {
73
- fastest = 'lz4';
74
- }
75
- switch (newConf.compression) {
76
- case 'fast': {
77
- config.compression = fastest;
78
- break;
79
- }
80
- case 'normal': {
81
- config.compression = 'xz';
82
- break;
83
- }
84
- case 'max': {
85
- const filter = 'x86';
86
- if (process.arch === 'arm') {
87
- const filter = 'ARM'; // to check
88
- }
89
- else if (process.arch === 'arm64') {
90
- const filter = 'ARM64'; // to check
91
- }
92
- config.compression = 'xz -Xbcj ' + filter;
93
- break;
94
- }
95
- // No default
71
+ else if (newConf.compression === 'max') {
72
+ config.compression = compressors.max();
96
73
  }
97
74
  await this.settings.save(config);
98
75
  let flags = '';