penguins-eggs 9.6.20 → 9.6.22

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.
@@ -49,6 +49,22 @@ class Produce extends core_1.Command {
49
49
  /**
50
50
  * composizione dei flag
51
51
  */
52
+ // filters
53
+ const filters = {};
54
+ filters.homes = false;
55
+ filters.dev = false;
56
+ filters.custom = false;
57
+ if (flags.filters) {
58
+ if (flags.filters.includes('homes')) {
59
+ filters.homes = true;
60
+ }
61
+ if (flags.filters.includes('dev')) {
62
+ filters.dev = true;
63
+ }
64
+ if (flags.filters.includes('custom')) {
65
+ filters.custom = true;
66
+ }
67
+ }
52
68
  let prefix = '';
53
69
  if (flags.prefix !== undefined) {
54
70
  prefix = flags.prefix;
@@ -64,7 +80,7 @@ class Produce extends core_1.Command {
64
80
  compression = compressors.max();
65
81
  }
66
82
  else if (flags.standard) {
67
- compression = compressors.normal();
83
+ compression = compressors.standard();
68
84
  }
69
85
  const release = flags.release;
70
86
  const cryptedclone = flags.cryptedclone;
@@ -74,6 +90,8 @@ class Produce extends core_1.Command {
74
90
  const yolkRenew = flags.yolk;
75
91
  const nointeractive = flags.nointeractive;
76
92
  const noicons = flags.noicons;
93
+ // if clone or cryptedclone unsecure = true
94
+ const unsecure = flags.unsecure || clone || cryptedclone;
77
95
  /**
78
96
  * theme: if not defined will use eggs
79
97
  */
@@ -118,7 +136,7 @@ class Produce extends core_1.Command {
118
136
  const ovary = new ovary_1.default();
119
137
  utils_1.default.warning('Produce an egg...');
120
138
  if (await ovary.fertilization(prefix, basename, theme, compression, !nointeractive)) {
121
- await ovary.produce(clone, cryptedclone, scriptOnly, yolkRenew, release, myAddons, nointeractive, noicons, verbose);
139
+ await ovary.produce(clone, cryptedclone, scriptOnly, yolkRenew, release, myAddons, filters, nointeractive, noicons, unsecure, verbose);
122
140
  ovary.finished(scriptOnly);
123
141
  }
124
142
  }
@@ -132,17 +150,19 @@ Produce.flags = {
132
150
  basename: core_1.Flags.string({ description: 'basename' }),
133
151
  clone: core_1.Flags.boolean({ char: 'c', description: 'clone' }),
134
152
  cryptedclone: core_1.Flags.boolean({ char: 'C', description: 'crypted clone' }),
153
+ filters: core_1.Flags.string({ multiple: true, description: 'filters can be used: custom. dev, homes' }),
135
154
  help: core_1.Flags.help({ char: 'h' }),
136
155
  max: core_1.Flags.boolean({ char: 'm', description: 'max compression' }),
137
- nointeractive: core_1.Flags.boolean({ char: 'n', description: 'no user interaction' }),
138
156
  noicons: core_1.Flags.boolean({ char: 'N', description: 'no icons on desktop' }),
157
+ nointeractive: core_1.Flags.boolean({ char: 'n', description: 'no user interaction' }),
139
158
  prefix: core_1.Flags.string({ char: 'p', description: 'prefix' }),
140
159
  release: core_1.Flags.boolean({ description: 'release: max compression, remove penguins-eggs and calamares after installation' }),
141
160
  script: core_1.Flags.boolean({ char: 's', description: 'script mode. Generate scripts to manage iso build' }),
142
161
  standard: core_1.Flags.boolean({ char: 'f', description: 'standard compression' }),
143
162
  theme: core_1.Flags.string({ description: 'theme for livecd, calamares branding and partitions' }),
163
+ unsecure: core_1.Flags.boolean({ char: 'u', description: '/root contents are included on live' }),
144
164
  verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' }),
145
- yolk: core_1.Flags.boolean({ char: 'y', description: '-y force yolk renew' }),
165
+ yolk: core_1.Flags.boolean({ char: 'y', description: 'force yolk renew' }),
146
166
  };
147
167
  Produce.description = 'produce a live image from your system whithout your data';
148
168
  Produce.examples = [
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ // export interface IAddons {}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //export interface IFilters { }
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.6.16</h1>
9
+ <h1>eggs(1) -- the reproductive system of penguins: eggs v9.6.22</h1>
10
10
  <h1>SYNOPSIS</h1>
11
11
  <p>Install Debian families (debian/devuan/ubuntu)</p>
12
- <pre><code>$ sudo dpkg -i eggs_9.6.16_amd64.deb
12
+ <pre><code>$ sudo dpkg -i eggs_9.6.22_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.6.16 linux-x64 node-v18.17.1
33
+ penguins-eggs/9.6.22 linux-x64 node-v18.17.1
34
34
  $ eggs --help [COMMAND]
35
35
 
36
36
  USAGE
@@ -273,7 +273,7 @@ FLAGS
273
273
  DESCRIPTION
274
274
  Display help for eggs.
275
275
  </code></pre>
276
- <h2><code>eggs install</code></h2>
276
+ <h2><code>eggs install</code> or <code>eggs krill</code></h2>
277
277
  <p>krill: the CLI system installer - the egg became a penguin!</p>
278
278
  <pre><code>USAGE
279
279
  $ eggs install [-k] [-c &#x3C;value>] [-d &#x3C;value>] [-H] [-h] [-i] [-n] [-N] [-p] [-r] [-s] [-S] [-u] [-v]
@@ -351,10 +351,12 @@ FLAGS
351
351
  -n, --nointeractive no user interaction
352
352
  -p, --prefix=&#x3C;value> prefix
353
353
  -s, --script script mode. Generate scripts to manage iso build
354
+ -u, --unsecure include /home/* and full /root contents on live
354
355
  -v, --verbose verbose
355
- -y, --yolk -y force yolk renew
356
+ -y, --yolk force yolk renew
356
357
  --addons=&#x3C;value>... addons to be used: adapt, ichoice, pve, rsupport
357
358
  --basename=&#x3C;value> basename
359
+ --filters=&#x3C;value>... filters to be used: custom. dev, homes
358
360
  --release release: max compression, remove penguins-eggs and calamares after installation
359
361
  --theme=&#x3C;value> theme for livecd, calamares branding and partitions
360
362
 
@@ -645,7 +647,7 @@ EXAMPLES
645
647
  <pre><code> /etc/penguins-eggs.d
646
648
  all eggs configurations are here
647
649
 
648
- /usr/local/share/penguins-eggs/exclude.list
650
+ /etc/penguins-eggs.d/exclude.list
649
651
  exclude.list rsync
650
652
 
651
653
  /usr/lib/penguins-eggs (deb package)
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.6.20",
4
+ "version": "9.6.22",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
package/scripts/_eggs CHANGED
@@ -16,6 +16,7 @@ _eggs () {
16
16
  "export\:deb:export deb/docs/iso to the destination host"
17
17
  "export\:iso:export iso in the destination host"
18
18
  "install:krill: the CLI system installer - the egg became a penguin!"
19
+ "krill:krill: the CLI system installer - the egg became a penguin!"
19
20
  "kill:kill the eggs/free the nest"
20
21
  "mom:ask help from mommy - TUI helper"
21
22
  "produce:produce a live image from your system whithout your data"
@@ -128,6 +129,25 @@ install)
128
129
  )
129
130
  ;;
130
131
 
132
+ krill)
133
+ _command_flags=(
134
+ "--crypted[Crypted CLI installation]"
135
+ "--custom=-[custom unattended configuration]:"
136
+ "--domain=-[Domain name, defult: .local]:"
137
+ "--halt[Halt the system after installation]"
138
+ "--help[Show CLI help.]"
139
+ "--ip[hostname as ip, eg: ip-192-168-1-33]"
140
+ "--nointeractive[no user interaction]"
141
+ "--none[Swap none: 256M]"
142
+ "--pve[Proxmox VE install]"
143
+ "--random[Add random to hostname, eg: colibri-ay412dt]"
144
+ "--small[Swap small: RAM]"
145
+ "--suspend[Swap suspend: RAM x 2]"
146
+ "--unattended[Unattended installation]"
147
+ "--verbose[Verbose]"
148
+ )
149
+ ;;
150
+
131
151
  kill)
132
152
  _command_flags=(
133
153
  "--help[Show CLI help.]"
@@ -149,17 +169,19 @@ produce)
149
169
  "--basename=-[basename]:"
150
170
  "--clone[clone]"
151
171
  "--cryptedclone[crypted clone]"
172
+ "--filters=-[filters to be used: homes]:"
152
173
  "--help[Show CLI help.]"
153
174
  "--max[max compression]"
154
- "--nointeractive[no user interaction]"
155
175
  "--noicons[no icons on desktop]"
176
+ "--nointeractive[no user interaction]"
156
177
  "--prefix=-[prefix]:"
157
178
  "--release[release: max compression, remove penguins-eggs and calamares after installation]"
158
179
  "--script[script mode. Generate scripts to manage iso build]"
159
180
  "--standard[standard compression]"
160
181
  "--theme=-[theme for livecd, calamares branding and partitions]:"
182
+ "--unsecure[include /home/* and full /root contents on live]"
161
183
  "--verbose[verbose]"
162
- "--yolk[-y force yolk renew]"
184
+ "--yolk[force yolk renew]"
163
185
  )
164
186
  ;;
165
187
 
package/scripts/eggs.bash CHANGED
@@ -20,9 +20,10 @@ dad --clean --default --help --verbose
20
20
  export:deb --all --clean --help --verbose
21
21
  export:iso --clean --checksum --help --verbose
22
22
  install --crypted --custom --domain --halt --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
23
+ krill --crypted --custom --domain --halt --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
23
24
  kill --help --nointeractive --isos --verbose
24
25
  mom --help
25
- produce --addons --basename --clone --cryptedclone --help --max --nointeractive --noicons --prefix --release --script --standard --theme --verbose --yolk
26
+ produce --addons --basename --clone --cryptedclone --filters --help --max --noicons --nointeractive --prefix --release --script --standard --theme --unsecure --verbose --yolk
26
27
  status --help --verbose
27
28
  syncfrom --delete --file --help --rootdir --verbose
28
29
  syncto --delete --file --help --verbose
package/conf/exclude.list DELETED
@@ -1,84 +0,0 @@
1
- # Based on: https://git.devuan.org/devuan/refractasnapshot-base/src/branch/master/snapshot_exclude.list
2
- #
3
- # Location: /usr/local/share/penguins-eggs/exclude.list
4
- #
5
- # Authors: fsmithred (original), Piero Proietti, Tim Wallace
6
- #
7
- # NOTE: all is alfabetic sorted with code->command palette->sortes lines ascending
8
- #
9
- # - moved /mnt/* under SYSTEM
10
- # - created LIVE STUFFS, CUSTOM and TESTING
11
-
12
- ######################################################################################################
13
- # SYSTEM: Exclude some system files - These are required, and you probably shouldn't change them.
14
- # They are temporary files only created on bootup - otherwise would waste space on a clone
15
- cdrom/*
16
- dev/*
17
- media/*
18
- mnt/*
19
- proc/*
20
- swapfile
21
- sys/*
22
- tmp/*
23
-
24
- ######################################################################################################
25
- # LIVE STUFFS: files depending on live
26
- etc/udev/rules.d/70-persistent-cd.rules
27
- etc/udev/rules.d/70-persistent-net.rules
28
- lib/live/*
29
- live
30
- persistence.conf
31
- var/lib/live/config/*
32
-
33
- ######################################################################################################
34
- # HARDWARE DEPENDAND FILES: created/updated during restoration of clone by calamares
35
- boot/grub/device.map
36
- boot/grub/grub.cfg
37
- boot/grub/menu.lst
38
- etc/blkid.tab
39
- etc/blkid.tab.old
40
- etc/fstab
41
- etc/fstab.d/*
42
- etc/mtab
43
-
44
- ######################################################################################################
45
- # CACHES: that tend to be very large and unneeded - only for Arch and Debian based Linuxes
46
-
47
- # Arch family
48
- home/*/.local/share/yay
49
- var/cache/pacman/pkg
50
- var/cache/private/yay
51
-
52
- # Debian family
53
- var/cache/apt/apt-file/*
54
- var/cache/apt/archives/*.deb
55
- var/cache/apt/pkgcache.bin
56
- var/cache/apt/srcpkgcache.bin
57
- var/cache/debconf/*~old
58
-
59
- ######################################################################################################
60
- # MISC: miscellanea
61
- etc/crypttab
62
- etc/initramfs-tools/conf.d/cryptroot # see remove-cryptroot and nocrypt.sh
63
- etc/initramfs-tools/conf.d/resume # see remove-cryptroot and nocrypt.sh
64
- etc/popularity-contest.conf
65
- var/lib/apt/*~
66
- var/lib/apt/cdroms.list
67
- var/lib/apt/lists/*
68
- var/lib/aptitude/*.old
69
- var/lib/dbus/machine-id
70
- var/lib/dhcp/*
71
- var/lib/dpkg/*~old
72
- var/log/*
73
-
74
- ######################################################################################################
75
- # CUSTOM: nest - usually /home/eggs - is automatically excluded!
76
- .snapshots/*
77
- swap/*
78
- swapfile
79
- blissos/data.img # blissos
80
-
81
-
82
- ######################################################################################################
83
- # TESTING: only for testing
84
- # home/artisan/*
@@ -1,194 +0,0 @@
1
- #!/bin/sh
2
-
3
- PROC_CMDLINE=$(cat /proc/cmdline)
4
- CONF_CMDLINE=$(grep ^CONFIG_CMDLINE= /boot/config-$(uname -r) 2>/dev/null | cut -d\" -f2 | tail -1)
5
-
6
- CMD_LINE=""
7
- for param in $PROC_CMDLINE; do
8
- x=x
9
- for conf in $CONF_CMDLINE; do
10
- [ "$conf" = "$param" ] && x="" && break
11
- done
12
- [ -n "$x" ] && CMD_LINE="$CMD_LINE $param"
13
- done
14
-
15
- for param in $CMD_LINE; do
16
- case $param in
17
-
18
- menus) ;;
19
- menus=*) ;;
20
- old-conf) ;;
21
- new-conf) ;;
22
- splash) ;;
23
- splash=*) ;;
24
- poweroff) ;;
25
- reboot) ;;
26
- bootdir=*|bdir=*) ;;
27
- bootlabel=*|blabel=*|blab=*) ;;
28
- bootuuid=*|buuid=*) ;;
29
- bootdev=*|bdev=*) ;;
30
-
31
- try=*|retry=*) ;;
32
-
33
- persistdir=*|pdir=*) ;;
34
-
35
- persistlabel=*|plabel=*|plab=*) ;;
36
- persistuuid=*|puuid=*) ;;
37
- persistdev=*|pdev=*) ;;
38
-
39
- persistretry=*|pretry=*|ptry=*) ;;
40
-
41
- dbv=*) ;;
42
- fneed=*) ;;
43
- fforce) ;;
44
- frugal) ;;
45
- frugal=*) ;;
46
- flab=*) ;;
47
- fdev=*) ;;
48
- fuuid=*) ;;
49
-
50
- iso=*|fromiso=*) ;;
51
- iso|fromiso) ;;
52
-
53
- from=*) ;;
54
-
55
- persist=*|p=*) ;;
56
- persist) ;;
57
-
58
- sqext=*) ;;
59
- sqname=*) ;;
60
- sq=*) ;;
61
-
62
- verbose=*|verb=*|v=*) ;;
63
- bp=*) ;;
64
- pk=*) ;;
65
-
66
- check|md5|checkmd5) ;;
67
- hico|highcolor) ;;
68
- loco|lowcolor) ;;
69
- noco|nocolor) ;;
70
-
71
- noxtra) ;;
72
- doxtra) ;;
73
-
74
- db+) ;;
75
- db++) ;;
76
-
77
- fancyprompt|fprompt) ;;
78
- autologin|alogin) ;;
79
-
80
- toram|toram=*) ;;
81
-
82
- noremaster) ;;
83
- rollback) ;;
84
- lang=*) ;;
85
-
86
- noclear) ;;
87
- gfxsave|gfxsave=*) ;;
88
-
89
- checkfs) ;;
90
- nocheckfs) ;;
91
-
92
- failsafe) ;;
93
- load=*) ;;
94
- bl=*|blacklist=*) ;;
95
-
96
- coldplug) ;;
97
- hotplug) ;;
98
- traceload) ;;
99
- autoload|aload) ;;
100
-
101
- init=*) ;;
102
-
103
- nousb2|noehci) ;;
104
-
105
- noerrlog) ;;
106
- errtest) ;;
107
- errtest=*) ;;
108
- noerr=*) ;;
109
-
110
- vtblank=*) ;;
111
-
112
- livedir=*|ldir=*) ;;
113
- pw|passwd|pw=*|passwd=*) ;;
114
- private|private=*) ;;
115
- bootchart) ;;
116
- noplink) ;;
117
- plink) ;;
118
-
119
- disable=*|nosysv=*) ;;
120
- disable_srv=*|disable_service=*) ;;
121
- lean|mean|Xtralean|nodbus) ;;
122
- initcall_debug|printk.time=y) ;;
123
-
124
- # Convenience short cuts from our menus
125
- persist_all) ;;
126
- persist_root) ;;
127
- persist_static) ;;
128
- p_static_root) ;;
129
- persist_home) ;;
130
- frugal_persist) ;;
131
- frugal_root) ;;
132
- frugal_static) ;;
133
- f_static_root) ;;
134
- frugal_home) ;;
135
- frugal_only) ;;
136
- nostore) ;;
137
- dostore) ;;
138
- disablestore) ;;
139
- fatuid=*|fatgid=*) ;;
140
- live_swap=*) ;;
141
- mk_swap_file) ;;
142
- mk_swap_file=*) ;;
143
- notmptmp) ;;
144
- nomicrocode) ;;
145
- nosavelogs) ;;
146
- tty1on) ;;
147
- splasht) ;;
148
- splasht=*) ;;
149
- st_tty=*) ;;
150
- vcard=*) ;;
151
-
152
- # Our Live params
153
- hwclock=utc|hwclock=local|xorg|xorg=*|noearlyvid|earlyvid) ;;
154
- amnt|amnt=*|automount|automount=*|confont=*|conkeys=*);;
155
- desktop=*|dpi=*|fstab=*|hostname=*|kbd=*|kbopt=*|kbvar=*);;
156
- lang=*|mirror=*|mount=*|noloadkeys|noprompt);;
157
- nosplash|password|password=*|prompt|pw|pw=*|tz=*|ubp=*|ushow=*);;
158
- uverb=*|xres=*|noxorg);;
159
- desktheme=*) ;;
160
- nosavestate|savestate|dbsavestate) ;;
161
- deskdelay=*) ;;
162
- udpi=*|sdpi=*) ;;
163
- fontsize=*) ;;
164
- norepo|norepo=*) ;;
165
- conwidth=*);;
166
- noautomount) ;;
167
- vga=ask+save) ;;
168
-
169
- skylakeflicker) ;;
170
- i915powersave) ;;
171
-
172
- aufs|overlayfs) ;;
173
- wicd|nowicd) ;;
174
-
175
- nomicrocode) ;;
176
- live_swap=off) ;;
177
- live_swap=force) ;;
178
- live_swap=all-off) ;;
179
- mk_swap_file=*) ;;
180
-
181
- # Added by Grub
182
- BOOT_IMAGE=*) ;;
183
-
184
- # Sometimes added with grub loop mounts
185
- *root=*) ;;
186
-
187
- # Added by live-Grub menu
188
- grubsave) ;;
189
- kernel=*) ;;
190
- extra=*) ;;
191
-
192
- *) printf "%s " "$param"
193
- esac
194
- done