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 +22 -21
- package/lib/classes/daddy.js +2 -2
- package/lib/classes/distro.d.ts +4 -2
- package/lib/classes/distro.js +60 -76
- package/lib/classes/family/debian.js +2 -2
- package/lib/classes/i18n.js +2 -2
- package/lib/classes/incubation/fisherman-helper/packages.js +1 -1
- package/lib/classes/incubation/incubator.js +1 -1
- package/lib/classes/incubation/installer.d.ts +1 -1
- package/lib/classes/incubation/installer.js +2 -2
- package/lib/classes/krill_install.d.ts +1 -0
- package/lib/classes/krill_install.js +18 -4
- package/lib/classes/ovary.d.ts +0 -1
- package/lib/classes/ovary.js +40 -37
- package/lib/classes/pacman.d.ts +1 -1
- package/lib/classes/pacman.js +21 -21
- package/lib/classes/pve-live.js +10 -14
- package/lib/classes/utils.d.ts +6 -3
- package/lib/classes/utils.js +35 -17
- package/lib/classes/xdg.js +18 -34
- package/lib/classes/yolk.d.ts +8 -7
- package/lib/classes/yolk.js +31 -34
- package/lib/commands/produce.js +1 -1
- package/lib/commands/syncfrom.d.ts +9 -3
- package/lib/commands/syncfrom.js +38 -31
- package/lib/commands/syncto.d.ts +26 -6
- package/lib/commands/syncto.js +71 -48
- package/lib/components/elements/information.js +14 -11
- package/lib/interfaces/i-distro.d.ts +4 -2
- package/lib/interfaces/i-installer.d.ts +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/scripts/userexist.sh +6 -0
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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 [
|
|
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
|
|
639
|
+
$ sudo eggs syncto
|
|
639
640
|
```
|
|
640
641
|
|
|
641
|
-
_See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.0.
|
|
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.
|
|
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
|
|
package/lib/classes/daddy.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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 = [
|
package/lib/classes/distro.d.ts
CHANGED
|
@@ -12,8 +12,10 @@ declare class Distro implements IDistro {
|
|
|
12
12
|
familyId: string;
|
|
13
13
|
distroId: string;
|
|
14
14
|
distroLike: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
codenameId: string;
|
|
16
|
+
codenameLikeId: string;
|
|
17
|
+
releaseId: string;
|
|
18
|
+
releaseLike: string;
|
|
17
19
|
usrLibPath: string;
|
|
18
20
|
isolinuxPath: string;
|
|
19
21
|
syslinuxPath: string;
|
package/lib/classes/distro.js
CHANGED
|
@@ -41,8 +41,10 @@ class Distro {
|
|
|
41
41
|
this.familyId = 'debian';
|
|
42
42
|
this.distroId = '';
|
|
43
43
|
this.distroLike = '';
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
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.
|
|
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
|
-
*
|
|
90
|
+
* releaseLike = releaseId
|
|
88
91
|
*/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
137
|
+
this.codenameLikeId = 'bookworm';
|
|
153
138
|
break;
|
|
154
139
|
}
|
|
155
140
|
case 'beowulf': {
|
|
156
141
|
this.distroLike = 'Devuan';
|
|
157
|
-
this.
|
|
142
|
+
this.codenameLikeId = 'beowulf';
|
|
158
143
|
break;
|
|
159
144
|
}
|
|
160
145
|
case 'chimaera': {
|
|
161
146
|
this.distroLike = 'Devuan';
|
|
162
|
-
this.
|
|
147
|
+
this.codenameLikeId = 'chimaera';
|
|
163
148
|
break;
|
|
164
149
|
}
|
|
165
150
|
case 'daedalus': {
|
|
166
151
|
this.distroLike = 'Devuan';
|
|
167
|
-
this.
|
|
152
|
+
this.codenameLikeId = 'daedalus';
|
|
168
153
|
break;
|
|
169
154
|
}
|
|
170
155
|
case 'xenial': {
|
|
171
156
|
// Ubuntu xenial
|
|
172
157
|
this.distroLike = 'Ubuntu';
|
|
173
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
207
|
+
this.codenameLikeId = 'focal';
|
|
224
208
|
break;
|
|
225
209
|
}
|
|
226
210
|
case 'roma': {
|
|
227
211
|
// UfficioZero roma
|
|
228
212
|
this.distroLike = 'Devuan';
|
|
229
|
-
this.
|
|
213
|
+
this.codenameLikeId = 'beowulf';
|
|
230
214
|
break;
|
|
231
215
|
}
|
|
232
216
|
case 'tropea': {
|
|
233
217
|
// UfficioZero tropea
|
|
234
218
|
this.distroLike = 'Ubuntu';
|
|
235
|
-
this.
|
|
219
|
+
this.codenameLikeId = 'focal';
|
|
236
220
|
break;
|
|
237
221
|
}
|
|
238
222
|
case 'vieste': {
|
|
239
223
|
// UfficioZero tropea
|
|
240
224
|
this.distroLike = 'Ubuntu';
|
|
241
|
-
this.
|
|
225
|
+
this.codenameLikeId = 'bionic';
|
|
242
226
|
break;
|
|
243
227
|
}
|
|
244
228
|
case 'siena': {
|
|
245
229
|
// UfficioZero siena
|
|
246
230
|
this.distroLike = 'Debian';
|
|
247
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
273
|
+
this.codenameLikeId = 'bullseye';
|
|
290
274
|
break;
|
|
291
275
|
}
|
|
292
276
|
case 'buster/sid': {
|
|
293
277
|
// Netrunner
|
|
294
278
|
this.distroLike = 'Debian';
|
|
295
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
341
|
-
this.
|
|
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.
|
|
334
|
+
this.codenameLikeId = 'buster';
|
|
351
335
|
}
|
|
352
336
|
}
|
|
353
337
|
/**
|
|
354
338
|
* Selezione il mountpoint per squashfs
|
|
355
339
|
*/
|
|
356
|
-
if (this.
|
|
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().
|
|
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().
|
|
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)) {
|
package/lib/classes/i18n.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
}
|