penguins-eggs 9.0.31 → 9.0.35

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.
package/README.md CHANGED
@@ -133,7 +133,7 @@ $ npm install -g penguins-eggs
133
133
  $ eggs COMMAND
134
134
  running command...
135
135
  $ eggs (--version|-v)
136
- penguins-eggs/9.0.31 linux-x64 node-v16.14.0
136
+ penguins-eggs/9.0.35 linux-x64 node-v16.14.0
137
137
  $ eggs --help [COMMAND]
138
138
  USAGE
139
139
  $ eggs COMMAND
@@ -189,7 +189,7 @@ ALIASES
189
189
  $ eggs adjust
190
190
  ```
191
191
 
192
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/adapt.ts)_
192
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/adapt.ts)_
193
193
 
194
194
  ## `eggs analyze`
195
195
 
@@ -210,7 +210,7 @@ EXAMPLES
210
210
  $ sudo eggs analyze
211
211
  ```
212
212
 
213
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/analyze.ts)_
213
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/analyze.ts)_
214
214
 
215
215
  ## `eggs autocomplete [SHELL]`
216
216
 
@@ -256,7 +256,7 @@ DESCRIPTION
256
256
  bro: waydroid helper
257
257
  ```
258
258
 
259
- _See code: [src/commands/bro.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/bro.ts)_
259
+ _See code: [src/commands/bro.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/bro.ts)_
260
260
 
261
261
  ## `eggs calamares`
262
262
 
@@ -285,7 +285,7 @@ EXAMPLES
285
285
  install calamares and create it's configuration's files
286
286
  ```
287
287
 
288
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/calamares.ts)_
288
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/calamares.ts)_
289
289
 
290
290
  ## `eggs config`
291
291
 
@@ -312,7 +312,7 @@ EXAMPLES
312
312
  Configure and install prerequisites deb packages to run it
313
313
  ```
314
314
 
315
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/config.ts)_
315
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/config.ts)_
316
316
 
317
317
  ## `eggs dad`
318
318
 
@@ -332,7 +332,7 @@ DESCRIPTION
332
332
  ask help from daddy - configuration helper
333
333
  ```
334
334
 
335
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/dad.ts)_
335
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/dad.ts)_
336
336
 
337
337
  ## `eggs export deb`
338
338
 
@@ -423,7 +423,7 @@ DESCRIPTION
423
423
  re-thinking for a different approach to CLI
424
424
  ```
425
425
 
426
- _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/info.ts)_
426
+ _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/info.ts)_
427
427
 
428
428
  ## `eggs install`
429
429
 
@@ -452,7 +452,7 @@ EXAMPLES
452
452
  Install the system using GUI or CLI installer
453
453
  ```
454
454
 
455
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/install.ts)_
455
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/install.ts)_
456
456
 
457
457
  ## `eggs kill`
458
458
 
@@ -474,7 +474,7 @@ EXAMPLES
474
474
  kill the eggs/free the nest
475
475
  ```
476
476
 
477
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/kill.ts)_
477
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/kill.ts)_
478
478
 
479
479
  ## `eggs mom`
480
480
 
@@ -491,7 +491,7 @@ DESCRIPTION
491
491
  ask for mommy - gui helper
492
492
  ```
493
493
 
494
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/mom.ts)_
494
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/mom.ts)_
495
495
 
496
496
  ## `eggs produce`
497
497
 
@@ -556,7 +556,7 @@ EXAMPLES
556
556
  in /home/eggs/ovarium and you can customize all you need
557
557
  ```
558
558
 
559
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/produce.ts)_
559
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/produce.ts)_
560
560
 
561
561
  ## `eggs remove`
562
562
 
@@ -586,7 +586,7 @@ EXAMPLES
586
586
  remove eggs, eggs configurations, packages dependencies
587
587
  ```
588
588
 
589
- _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/remove.ts)_
589
+ _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/remove.ts)_
590
590
 
591
591
  ## `eggs syncfrom`
592
592
 
@@ -594,13 +594,14 @@ Restore users, server and datas from luks-eggs-backup
594
594
 
595
595
  ```
596
596
  USAGE
597
- $ eggs syncfrom [-f <value>] [-r <value>] [-h] [-v]
597
+ $ eggs syncfrom [--delete <value>] [-f <value>] [-r <value>] [-h] [-v]
598
598
 
599
599
  FLAGS
600
- -f, --file=<value> file with LUKS volume encrypted
600
+ -f, --file=<value> file LUKS volume encrypted
601
601
  -h, --help Show CLI help.
602
602
  -r, --rootdir=<value> rootdir of the installed system, when used from live
603
603
  -v, --verbose verbose
604
+ --delete=<value> rsync --delete delete extraneous files from dest dirs
604
605
 
605
606
  DESCRIPTION
606
607
  Restore users, server and datas from luks-eggs-backup
@@ -612,7 +613,7 @@ EXAMPLES
612
613
  $ sudo eggs restore
613
614
  ```
614
615
 
615
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/syncfrom.ts)_
616
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/syncfrom.ts)_
616
617
 
617
618
  ## `eggs syncto`
618
619
 
@@ -620,13 +621,13 @@ Backup users, server and datas to luks-eggs-backup
620
621
 
621
622
  ```
622
623
  USAGE
623
- $ eggs syncto [-k] [-f <value>] [-h] [-v]
624
+ $ eggs syncto [--delete <value>] [-f <value>] [-h] [-v]
624
625
 
625
626
  FLAGS
626
627
  -f, --file=<value> file LUKS volume encrypted
627
628
  -h, --help Show CLI help.
628
- -k, --krill krill
629
629
  -v, --verbose verbose
630
+ --delete=<value> rsync --delete delete extraneous files from dest dirs
630
631
 
631
632
  DESCRIPTION
632
633
  Backup users, server and datas to luks-eggs-backup
@@ -635,10 +636,10 @@ ALIASES
635
636
  $ eggs backup
636
637
 
637
638
  EXAMPLES
638
- $ sudo eggs restore
639
+ $ sudo eggs syncto
639
640
  ```
640
641
 
641
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/syncto.ts)_
642
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/syncto.ts)_
642
643
 
643
644
  ## `eggs tools clean`
644
645
 
@@ -761,7 +762,7 @@ EXAMPLES
761
762
  update/upgrade the penguin's eggs tool
762
763
  ```
763
764
 
764
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.31/src/commands/update.ts)_
765
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.35/src/commands/update.ts)_
765
766
 
766
767
  ## `eggs version`
767
768
 
@@ -46,7 +46,7 @@ class Daddy {
46
46
  }
47
47
  else {
48
48
  if (config.snapshot_prefix === '') {
49
- config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.versionId);
49
+ config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
50
50
  config.compression = 'fast';
51
51
  }
52
52
  jsonConf = JSON.stringify(config);
@@ -148,7 +148,7 @@ class Daddy {
148
148
  compressionOpt = 2;
149
149
  }
150
150
  if (c.snapshot_prefix === '') {
151
- c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.versionId);
151
+ c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
152
152
  }
153
153
  return new Promise(function (resolve) {
154
154
  const questions = [
@@ -12,8 +12,10 @@ declare class Distro implements IDistro {
12
12
  familyId: string;
13
13
  distroId: string;
14
14
  distroLike: string;
15
- versionId: string;
16
- versionLike: string;
15
+ codenameId: string;
16
+ codenameLikeId: string;
17
+ releaseId: string;
18
+ releaseLike: string;
17
19
  usrLibPath: string;
18
20
  isolinuxPath: string;
19
21
  syslinuxPath: string;
@@ -41,8 +41,10 @@ class Distro {
41
41
  this.familyId = 'debian';
42
42
  this.distroId = '';
43
43
  this.distroLike = '';
44
- this.versionId = '';
45
- this.versionLike = '';
44
+ this.codenameId = '';
45
+ this.codenameLikeId = '';
46
+ this.releaseId = '';
47
+ this.releaseLike = '';
46
48
  this.usrLibPath = '/usr/lib';
47
49
  this.isolinuxPath = '';
48
50
  this.syslinuxPath = '';
@@ -81,170 +83,152 @@ class Distro {
81
83
  /**
82
84
  * lsb_release -cs per versione ed lsb_release -is per distribuzione
83
85
  */
84
- this.versionId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.toString().trim();
86
+ this.codenameId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.toString().trim();
87
+ this.releaseId = shelljs_1.default.exec('lsb_release -rs', { silent: true }).stdout.toString().trim();
85
88
  this.distroId = shelljs_1.default.exec('lsb_release -is', { silent: true }).stdout.toString().trim();
86
89
  /**
87
- * Per casi equivoci conviene normalizzare versionId
90
+ * releaseLike = releaseId
88
91
  */
89
- switch (this.versionId) {
90
- case 'n/a': {
91
- // può essere Deepin apricot
92
- if (this.distroId === 'Deepin') {
93
- this.versionId = 'apricot';
94
- }
95
- else if (node_fs_1.default.existsSync('/etc/debian_version')) {
96
- // bookworm?
97
- const debianVersion = node_fs_1.default.readFileSync('/etc/debian_version', 'utf8');
98
- if (debianVersion.trim() === 'bookworm/sid') {
99
- this.versionId = 'bookworm';
100
- }
101
- }
102
- break;
103
- }
104
- case 'sid': {
105
- // sinora ho trovato solo siduction
106
- if (node_fs_1.default.existsSync('/etc/debian_version')) {
107
- const debianVersion = node_fs_1.default.readFileSync('/etc/debian_version', 'utf8');
108
- if (debianVersion.trim() === 'bullseye/sid') {
109
- this.versionId = 'siduction';
110
- }
111
- }
112
- break;
113
- }
114
- case 'testing': {
115
- if (this.distroId === 'Netrunner') {
116
- this.versionId = 'buster/sid';
117
- }
118
- break;
119
- }
120
- // No default
92
+ this.releaseLike = this.releaseId;
93
+ /**
94
+ * Per casi equivoci conviene normalizzare codenameId
95
+ * -i, --id show distributor ID
96
+ * -r, --release show release number of this distribution
97
+ * -c, --codename show code name of this distribution
98
+ */
99
+ if (this.distroId === 'Debian' && this.releaseId === 'unstable' && this.codenameId === 'sid') {
100
+ this.codenameId = 'bookworm';
121
101
  }
122
- // Procedo analizzanto solo versionId...
123
- // prima Debian, Devuan ed Ubuntu
124
- switch (this.versionId) {
102
+ else if (this.distroId === 'Debian' && this.releaseId === 'testing/unstable') {
103
+ this.codenameId = 'bookworm';
104
+ this.releaseLike = 'unstable';
105
+ }
106
+ /**
107
+ * Procedo analizzanto: codenameId, prima Debian, Devuan ed Ubuntu poi gli altri
108
+ */
109
+ switch (this.codenameId) {
125
110
  case 'jessie': {
126
111
  // Debian 8 jessie
127
112
  this.distroLike = 'Debian';
128
- this.versionLike = 'jessie';
113
+ this.codenameLikeId = 'jessie';
129
114
  break;
130
115
  }
131
116
  case 'stretch': {
132
117
  // Debian 9 stretch
133
118
  this.distroLike = 'Debian';
134
- this.versionLike = 'stretch';
119
+ this.codenameLikeId = 'stretch';
135
120
  break;
136
121
  }
137
122
  case 'buster': {
138
123
  // Debian 10 buster
139
124
  this.distroLike = 'Debian';
140
- this.versionLike = 'buster';
125
+ this.codenameLikeId = 'buster';
141
126
  break;
142
127
  }
143
128
  case 'bullseye': {
144
129
  // Debian 11 bullseye
145
130
  this.distroLike = 'Debian';
146
- this.versionLike = 'bullseye';
131
+ this.codenameLikeId = 'bullseye';
147
132
  break;
148
133
  }
149
134
  case 'bookworm': {
150
135
  // Debian 11 bullseye
151
136
  this.distroLike = 'Debian';
152
- this.versionLike = 'bookworm';
137
+ this.codenameLikeId = 'bookworm';
153
138
  break;
154
139
  }
155
140
  case 'beowulf': {
156
141
  this.distroLike = 'Devuan';
157
- this.versionLike = 'beowulf';
142
+ this.codenameLikeId = 'beowulf';
158
143
  break;
159
144
  }
160
145
  case 'chimaera': {
161
146
  this.distroLike = 'Devuan';
162
- this.versionLike = 'chimaera';
147
+ this.codenameLikeId = 'chimaera';
163
148
  break;
164
149
  }
165
150
  case 'daedalus': {
166
151
  this.distroLike = 'Devuan';
167
- this.versionLike = 'daedalus';
152
+ this.codenameLikeId = 'daedalus';
168
153
  break;
169
154
  }
170
155
  case 'xenial': {
171
156
  // Ubuntu xenial
172
157
  this.distroLike = 'Ubuntu';
173
- this.versionLike = 'xenial';
158
+ this.codenameLikeId = 'xenial';
174
159
  break;
175
160
  }
176
161
  case 'bionic': {
177
162
  // Ubuntu 18.04 bionic LTS eol aprile 2023
178
163
  this.distroLike = 'Ubuntu';
179
- this.versionLike = 'bionic';
164
+ this.codenameLikeId = 'bionic';
180
165
  break;
181
166
  }
182
167
  case 'focal': {
183
168
  // Ubuntu 20.04 focal LTS
184
169
  this.distroLike = 'Ubuntu';
185
- this.versionLike = 'focal';
170
+ this.codenameLikeId = 'focal';
186
171
  break;
187
172
  }
188
173
  case 'groovy': {
189
174
  // Ubuntu 20.10 groovy
190
175
  this.distroLike = 'Ubuntu';
191
- this.versionLike = 'groovy';
176
+ this.codenameLikeId = 'groovy';
192
177
  break;
193
178
  }
194
179
  case 'hirsute': {
195
180
  // Ubuntu 21.04 hirsute
196
181
  this.distroLike = 'Ubuntu';
197
- this.versionLike = 'hirsute';
182
+ this.codenameLikeId = 'hirsute';
198
183
  break;
199
184
  }
200
185
  case 'impish': {
201
186
  // Ubuntu 21.10 impish
202
187
  this.distroLike = 'Ubuntu';
203
- this.versionLike = 'impish';
188
+ this.codenameLikeId = 'impish';
204
189
  break;
205
190
  }
206
191
  case 'jammy': {
207
192
  // Ubuntu 22.04 jammy
208
193
  this.distroLike = 'Ubuntu';
209
- this.versionLike = 'jammy';
194
+ this.codenameLikeId = 'jammy';
210
195
  // quindi le derivate...
211
196
  break;
212
197
  }
213
198
  case 'kali-rolling': {
214
199
  // Kali
215
200
  this.distroLike = 'Debian';
216
- this.versionLike = 'bookworm';
217
- // UfficioZero roma
201
+ this.codenameLikeId = 'bookworm';
218
202
  break;
219
203
  }
220
204
  case `jolnir`: {
221
205
  // Elementary
222
206
  this.distroLike = 'Ubuntu';
223
- this.versionLike = 'focal';
207
+ this.codenameLikeId = 'focal';
224
208
  break;
225
209
  }
226
210
  case 'roma': {
227
211
  // UfficioZero roma
228
212
  this.distroLike = 'Devuan';
229
- this.versionLike = 'beowulf';
213
+ this.codenameLikeId = 'beowulf';
230
214
  break;
231
215
  }
232
216
  case 'tropea': {
233
217
  // UfficioZero tropea
234
218
  this.distroLike = 'Ubuntu';
235
- this.versionLike = 'focal';
219
+ this.codenameLikeId = 'focal';
236
220
  break;
237
221
  }
238
222
  case 'vieste': {
239
223
  // UfficioZero tropea
240
224
  this.distroLike = 'Ubuntu';
241
- this.versionLike = 'bionic';
225
+ this.codenameLikeId = 'bionic';
242
226
  break;
243
227
  }
244
228
  case 'siena': {
245
229
  // UfficioZero siena
246
230
  this.distroLike = 'Debian';
247
- this.versionLike = 'buster';
231
+ this.codenameLikeId = 'buster';
248
232
  break;
249
233
  }
250
234
  case 'tara':
@@ -253,7 +237,7 @@ class Distro {
253
237
  case 'tricia': {
254
238
  // LinuxMint 19.x
255
239
  this.distroLike = 'Ubuntu';
256
- this.versionLike = 'bionic';
240
+ this.codenameLikeId = 'bionic';
257
241
  break;
258
242
  }
259
243
  case 'ulyana':
@@ -262,37 +246,37 @@ class Distro {
262
246
  case 'una': {
263
247
  // LinuxMint 20.x
264
248
  this.distroLike = 'Ubuntu';
265
- this.versionLike = 'focal';
249
+ this.codenameLikeId = 'focal';
266
250
  break;
267
251
  }
268
252
  case 'debbie': {
269
253
  // LMDE 4 debbie
270
254
  this.distroLike = 'Debian';
271
- this.versionLike = 'buster';
255
+ this.codenameLikeId = 'buster';
272
256
  break;
273
257
  }
274
258
  case 'elsie': {
275
259
  // LMDE 5 elsie
276
260
  this.distroLike = 'Debian';
277
- this.versionLike = 'bullseye';
261
+ this.codenameLikeId = 'bullseye';
278
262
  break;
279
263
  }
280
264
  case 'apricot': {
281
265
  // Deepin 20 apricot
282
266
  this.distroLike = 'Debian';
283
- this.versionLike = 'bullseye';
267
+ this.codenameLikeId = 'bullseye';
284
268
  break;
285
269
  }
286
270
  case 'siduction': {
287
271
  // Debian 11 Siduction
288
272
  this.distroLike = 'Debian';
289
- this.versionLike = 'bullseye';
273
+ this.codenameLikeId = 'bullseye';
290
274
  break;
291
275
  }
292
276
  case 'buster/sid': {
293
277
  // Netrunner
294
278
  this.distroLike = 'Debian';
295
- this.versionLike = 'buster';
279
+ this.codenameLikeId = 'buster';
296
280
  /**
297
281
  * ArchLinux
298
282
  */
@@ -304,13 +288,13 @@ class Distro {
304
288
  case 'Harpy-Eagle': {
305
289
  this.familyId = 'archlinux';
306
290
  this.distroLike = 'Arch';
307
- this.versionLike = 'rolling';
291
+ this.codenameLikeId = 'rolling';
308
292
  break;
309
293
  }
310
294
  case 'White-tailed-eagle': {
311
295
  this.familyId = 'archlinux';
312
296
  this.distroLike = 'Arch';
313
- this.versionLike = 'rolling';
297
+ this.codenameLikeId = 'rolling';
314
298
  break;
315
299
  }
316
300
  /**
@@ -319,7 +303,7 @@ class Distro {
319
303
  case 'Qonos': {
320
304
  this.familyId = 'archlinux';
321
305
  this.distroLike = 'Arch';
322
- this.versionLike = 'rolling';
306
+ this.codenameLikeId = 'rolling';
323
307
  break;
324
308
  /**
325
309
  * Fedora
@@ -328,7 +312,7 @@ class Distro {
328
312
  case 'ThirtyFive': {
329
313
  this.familyId = 'fedora';
330
314
  this.distroLike = 'Fedora';
331
- this.versionLike = 'thirtyfive';
315
+ this.codenameLikeId = 'thirtyfive';
332
316
  break;
333
317
  /**
334
318
  * openSuse
@@ -337,8 +321,8 @@ class Distro {
337
321
  case 'tumbleweed': {
338
322
  this.familyId = 'suse';
339
323
  this.distroLike = 'SUSE';
340
- this.versionId = 'tumbleweed';
341
- this.versionLike = 'tumbleweed';
324
+ this.codenameId = 'tumbleweed';
325
+ this.codenameLikeId = 'tumbleweed';
342
326
  break;
343
327
  }
344
328
  default: {
@@ -347,13 +331,13 @@ class Distro {
347
331
  */
348
332
  console.log("This distro is not yet recognized, I'll try Debian buster");
349
333
  this.distroLike = 'Debian';
350
- this.versionLike = 'buster';
334
+ this.codenameLikeId = 'buster';
351
335
  }
352
336
  }
353
337
  /**
354
338
  * Selezione il mountpoint per squashfs
355
339
  */
356
- if (this.versionLike === 'jessie' || this.versionLike === 'stretch' || this.versionLike === 'bionic' || this.versionLike === 'xenial') {
340
+ if (this.codenameLikeId === 'jessie' || this.codenameLikeId === 'stretch' || this.codenameLikeId === 'bionic' || this.codenameLikeId === 'xenial') {
357
341
  this.mountpointSquashFs = '/lib/live/mount/medium/live/filesystem.squashfs';
358
342
  }
359
343
  else {
@@ -24,7 +24,7 @@ class Debian {
24
24
  */
25
25
  static isInstalledXorg() {
26
26
  let test = 'xserver-xorg-core';
27
- if (pacman_1.default.distro().versionLike === 'bionic') {
27
+ if (pacman_1.default.distro().codenameLikeId === 'bionic') {
28
28
  /**
29
29
  * BUT_ on Ubuntu bionic we have:
30
30
  * xserver-xorg-core-hwe-18.04
@@ -69,7 +69,7 @@ class Debian {
69
69
  }
70
70
  }
71
71
  // Version e initType da controllare
72
- const version = pacman_1.default.distro().versionLike;
72
+ const version = pacman_1.default.distro().codenameLikeId;
73
73
  for (const dep of dependencies_1.depVersions) {
74
74
  if (dep.versions.includes(version)) {
75
75
  if (!this.packageIsInstalled(dep.package)) {
@@ -46,7 +46,7 @@ class I18n {
46
46
  if (this.verbose) {
47
47
  console.log('creating /etc/default.locale');
48
48
  }
49
- const src = node_path_1.default.resolve(__dirname, `../../conf/distros/${this.settings.distro.versionId}/locales/locale.template`);
49
+ const src = node_path_1.default.resolve(__dirname, `../../conf/distros/${this.settings.distro.codenameId}/locales/locale.template`);
50
50
  const dest = '/etc/default/locale';
51
51
  const template = node_fs_1.default.readFileSync(src, 'utf8');
52
52
  const view = {
@@ -59,7 +59,7 @@ class I18n {
59
59
  if (this.verbose) {
60
60
  console.log('creating /etc/locale.gen');
61
61
  }
62
- const srcLocales = node_path_1.default.resolve(__dirname, `../../conf/distros/${this.settings.distro.versionId}/locales/locale.gen.template`);
62
+ const srcLocales = node_path_1.default.resolve(__dirname, `../../conf/distros/${this.settings.distro.codenameId}/locales/locale.gen.template`);
63
63
  const destLocales = '/etc/locale.gen';
64
64
  const templateLocales = node_fs_1.default.readFileSync(srcLocales, 'utf8');
65
65
  const viewLocales = { locales: [{}] };
@@ -60,7 +60,7 @@ function tryInstall(distro) {
60
60
  // Pacchetti da installare sempre
61
61
  text += ` - hunspell-${lang}\n`;
62
62
  // Pacchetti da installare a seconda della distribuzione
63
- if (distro.versionLike === 'focal' || distro.versionLike === 'bionic') {
63
+ if (distro.codenameLikeId === 'focal' || distro.codenameLikeId === 'bionic') {
64
64
  text += ` - language-pack-${lang}\n`;
65
65
  }
66
66
  // Pacchetti da installare se sono presenti
@@ -48,7 +48,7 @@ class Incubator {
48
48
  const echo = utils_1.default.setEcho(verbose);
49
49
  this.createInstallerDirs();
50
50
  // DEBIAN
51
- switch (this.distro.versionLike) {
51
+ switch (this.distro.codenameLikeId) {
52
52
  case 'jessie': {
53
53
  const jessie = new jessie_1.Jessie(this.installer, this.remix, this.distro, release, this.user_opt, this.verbose);
54
54
  await jessie.create();
@@ -6,7 +6,7 @@
6
6
  * modules = configuration + 'modules/'
7
7
  * modulesMultiarch = '/usr/lib/' + arch-linux-gnu + '/' + installer + '/'
8
8
  *
9
- * template = '/etc/penguins-eggs/' + .distro.versionLike + '/' + installer + '/'
9
+ * template = '/etc/penguins-eggs/' + .distro.codenameLikeId + '/' + installer + '/'
10
10
  * templateModules = template + '/modules/'
11
11
  * templateMultiarch = template + installer + '-modules/'
12
12
  *
@@ -24,12 +24,12 @@ function installer() {
24
24
  const remix = {};
25
25
  const distro = new distro_1.default(remix);
26
26
  if (distro.isCalamaresAvailable) {
27
- installer.template = '/etc/penguins-eggs.d/distros/' + distro.versionLike + '/calamares/';
27
+ installer.template = '/etc/penguins-eggs.d/distros/' + distro.codenameLikeId + '/calamares/';
28
28
  installer.templateModules = installer.template + 'modules/';
29
29
  installer.templateMultiarch = installer.template + 'calamares-modules/';
30
30
  }
31
31
  else {
32
- installer.template = '/etc/penguins-eggs.d/distros/' + distro.versionLike + '/krill/';
32
+ installer.template = '/etc/penguins-eggs.d/distros/' + distro.codenameLikeId + '/krill/';
33
33
  installer.templateModules = installer.template + 'modules/';
34
34
  installer.templateMultiarch = installer.template + 'krill-modules/';
35
35
  }
@@ -11,6 +11,7 @@
11
11
  - partition OK
12
12
  - mount this.mountFs, this.mountVfs OK
13
13
  - unpackfs OK
14
+ - Restore private data from backup
14
15
  - sources-yolk // call execCalamaresModule('sources-yolk')
15
16
  - machineid OK
16
17
  - fstab OK