penguins-eggs 10.0.50 → 10.0.52
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/.oclif.manifest.json +1 -1
- package/README.md +29 -29
- package/addons/eggs/theme/livecd/isolinux.main.simple.cfg +25 -11
- package/conf/distros/aldos/calamares/modules/bootloader.yml +85 -0
- package/conf/distros/aldos/calamares/modules/displaymanager.yml +22 -0
- package/conf/distros/aldos/calamares/modules/finished.yml +5 -0
- package/conf/distros/aldos/calamares/modules/fstab.yml +12 -0
- package/conf/distros/aldos/calamares/modules/locale.yml +97 -0
- package/conf/distros/aldos/calamares/modules/luksopenswaphookcfg.yml +5 -0
- package/conf/distros/aldos/calamares/modules/machineid.yml +17 -0
- package/conf/distros/aldos/calamares/modules/mount.yml +56 -0
- package/conf/distros/aldos/calamares/modules/packages.yml +6 -0
- package/conf/distros/aldos/calamares/modules/partition.yml +242 -0
- package/conf/distros/aldos/calamares/modules/removeuser.yml +15 -0
- package/conf/distros/aldos/calamares/modules/unpackfs.yml +6 -0
- package/conf/distros/aldos/calamares/modules/users.yml +19 -0
- package/conf/distros/aldos/calamares/modules/welcome.yml +19 -0
- package/conf/distros/aldos/calamares/settings.yml +124 -0
- package/conf/distros/fedora/calamares/modules/bootloader.conf +85 -0
- package/conf/distros/fedora/calamares/modules/bootloader.yml +5 -5
- package/conf/distros/fedora/calamares/modules/displaymanager.yml +1 -1
- package/conf/distros/fedora/calamares/modules/packages.yml +2 -2
- package/conf/distros/fedora/calamares/modules/partition.yml +1 -1
- package/conf/distros/fedora/calamares/settings.yml +4 -10
- package/conf/distros/openmamba/calamares/modules/bootloader.yml +83 -0
- package/conf/distros/openmamba/calamares/modules/displaymanager.yml +22 -0
- package/conf/distros/openmamba/calamares/modules/finished.yml +47 -0
- package/conf/distros/openmamba/calamares/modules/fstab.yml +37 -0
- package/conf/distros/openmamba/calamares/modules/grubcfg.yml +51 -0
- package/conf/distros/openmamba/calamares/modules/keyboard.yml +33 -0
- package/conf/distros/openmamba/calamares/modules/locale.yml +131 -0
- package/conf/distros/openmamba/calamares/modules/luksopenswaphookcfg.yml +7 -0
- package/conf/distros/openmamba/calamares/modules/machineid.yml +56 -0
- package/conf/distros/openmamba/calamares/modules/mount.yml +121 -0
- package/conf/distros/openmamba/calamares/modules/openrcdmcryptcfg.yml +5 -0
- package/conf/distros/openmamba/calamares/modules/packages.yml +6 -0
- package/conf/distros/openmamba/calamares/modules/partition.yml +318 -0
- package/conf/distros/openmamba/calamares/modules/removeuser.yml +13 -0
- package/conf/distros/openmamba/calamares/modules/services-systemd.yml +54 -0
- package/conf/distros/openmamba/calamares/modules/umount.yml +14 -0
- package/conf/distros/openmamba/calamares/modules/unpackfs.yml +93 -0
- package/conf/distros/openmamba/calamares/modules/users.yml +272 -0
- package/conf/distros/openmamba/calamares/modules/welcome.yml +138 -0
- package/conf/distros/openmamba/calamares/settings.yml +228 -0
- package/conf/distros/opensuse/calamares/modules/bootloader.conf +86 -0
- package/conf/distros/opensuse/calamares/modules/bootloader.yml +5 -5
- package/conf/distros/opensuse/calamares/modules/displaymanager.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/finished.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/fstab.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/locale.yml +1 -0
- package/conf/distros/opensuse/calamares/modules/luksopenswaphookcfg.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/machineid.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/mount.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/packages.yml +2 -2
- package/conf/distros/opensuse/calamares/modules/partition.yml +1 -1
- package/conf/distros/opensuse/calamares/modules/removeuser.yml +1 -1
- package/conf/distros/opensuse/calamares/settings.yml +4 -10
- package/dist/classes/bleach.js +21 -35
- package/dist/classes/distro.js +204 -176
- package/dist/classes/diversions.d.ts +38 -0
- package/dist/classes/diversions.js +107 -0
- package/dist/classes/incubation/branding.js +6 -10
- package/dist/classes/incubation/fisherman.d.ts +2 -2
- package/dist/classes/incubation/fisherman.js +2 -35
- package/dist/classes/incubation/incubator.d/openmamba.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/openmamba.js +81 -0
- package/dist/classes/incubation/incubator.d/opensuse.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/opensuse.js +81 -0
- package/dist/classes/incubation/{distros → incubator.d}/rolling.js +1 -3
- package/dist/classes/incubation/incubator.d.ts +3 -3
- package/dist/classes/incubation/incubator.js +118 -119
- package/dist/classes/incubation/installer.js +5 -12
- package/dist/classes/ovary.d.ts +1 -6
- package/dist/classes/ovary.js +26 -68
- package/dist/classes/pacman.d/aldos.d.ts +47 -0
- package/dist/classes/pacman.d/aldos.js +93 -0
- package/dist/classes/pacman.d/openmamba.d.ts +47 -0
- package/dist/classes/pacman.d/openmamba.js +93 -0
- package/dist/classes/pacman.d.ts +0 -5
- package/dist/classes/pacman.js +211 -192
- package/dist/classes/tailor.js +2 -0
- package/dist/classes/utils.js +12 -1
- package/dist/classes/xdg.js +9 -1
- package/dist/krill/modules/bootloader.js +13 -5
- package/package.json +3 -3
- package/conf/distros/alpine/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -40
- package/conf/distros/alpine/calamares/calamares-modules/bootloader-config/module.yml +0 -9
- package/conf/distros/alpine/calamares/calamares-modules/cleanup/cleanup.sh +0 -13
- package/conf/distros/alpine/calamares/calamares-modules/cleanup/module.yml +0 -9
- package/conf/distros/alpine/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -13
- package/conf/distros/alpine/calamares/calamares-modules/dpkg-unsafe-io/module.yml +0 -6
- package/conf/distros/alpine/calamares/calamares-modules/dpkg-unsafe-io-undo/module.yml +0 -6
- package/conf/distros/alpine/calamares/calamares-modules/sources-yolk/module.yml +0 -8
- package/conf/distros/alpine/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -50
- package/conf/distros/alpine/calamares/calamares-modules/sources-yolk-undo/module.yml +0 -8
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -40
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/module.yml +0 -9
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/cleanup.sh +0 -13
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/module.yml +0 -9
- package/conf/distros/fedora/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -13
- package/conf/distros/fedora/calamares/calamares-modules/dpkg-unsafe-io/module.yml +0 -6
- package/conf/distros/fedora/calamares/calamares-modules/dpkg-unsafe-io-undo/module.yml +0 -6
- package/conf/distros/fedora/calamares/calamares-modules/sources-yolk/module.yml +0 -8
- package/conf/distros/fedora/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -50
- package/conf/distros/fedora/calamares/calamares-modules/sources-yolk-undo/module.yml +0 -8
- package/conf/distros/opensuse/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -40
- package/conf/distros/opensuse/calamares/calamares-modules/bootloader-config/module.yml +0 -9
- package/conf/distros/opensuse/calamares/calamares-modules/cleanup/cleanup.sh +0 -13
- package/conf/distros/opensuse/calamares/calamares-modules/cleanup/module.yml +0 -9
- package/conf/distros/opensuse/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -13
- package/conf/distros/opensuse/calamares/calamares-modules/dpkg-unsafe-io/module.yml +0 -6
- package/conf/distros/opensuse/calamares/calamares-modules/dpkg-unsafe-io-undo/module.yml +0 -6
- package/conf/distros/opensuse/calamares/calamares-modules/sources-yolk/module.yml +0 -8
- package/conf/distros/opensuse/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -50
- package/conf/distros/opensuse/calamares/calamares-modules/sources-yolk-undo/module.yml +0 -8
- /package/dist/classes/incubation/{distros → incubator.d}/alpine.d.ts +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/alpine.js +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/bionic.d.ts +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/bionic.js +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/buster.d.ts +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/buster.js +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/jessie.d.ts +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/jessie.js +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/noble.d.ts +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/noble.js +0 -0
- /package/dist/classes/incubation/{distros → incubator.d}/rolling.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/alpine.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/alpine.js +0 -0
- /package/dist/classes/{families → pacman.d}/archlinux.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/archlinux.js +0 -0
- /package/dist/classes/{families → pacman.d}/debian.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/debian.js +0 -0
- /package/dist/classes/{families → pacman.d}/fedora.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/fedora.js +0 -0
- /package/dist/classes/{families → pacman.d}/opensuse.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/opensuse.js +0 -0
- /package/dist/classes/{families → pacman.d}/voidlinux.d.ts +0 -0
- /package/dist/classes/{families → pacman.d}/voidlinux.js +0 -0
package/dist/classes/distro.js
CHANGED
|
@@ -65,205 +65,230 @@ class Distro {
|
|
|
65
65
|
this.distroId = "BigLinux";
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Alpine, Fedora, openmamba, opensuse, VoidLinux solo distroId.
|
|
69
|
+
*
|
|
69
70
|
* Debian, Devuan, Ubuntu e derivate ricadono in
|
|
70
71
|
* default e si analizza il codebaseId
|
|
71
72
|
*
|
|
72
73
|
*/
|
|
73
|
-
|
|
74
|
+
if (this.distroId === 'ALDOS') {
|
|
75
|
+
this.familyId = 'aldos';
|
|
76
|
+
this.distroLike = 'ALDOS';
|
|
77
|
+
this.codenameId = 'rolling'; // viene rimosso dal nome
|
|
78
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
79
|
+
this.liveMediumPath = '/run/initramfs/live/';
|
|
74
80
|
/**
|
|
75
81
|
* Alpine compatible
|
|
76
82
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
83
|
+
}
|
|
84
|
+
else if (this.distroId === 'Alpine') {
|
|
85
|
+
this.familyId = 'alpine';
|
|
86
|
+
this.distroLike = this.distroId;
|
|
87
|
+
this.codenameId = 'rolling'; // viene rimosso dal nome
|
|
88
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
89
|
+
this.liveMediumPath = '/mnt/'; // Qua è deciso da noi
|
|
85
90
|
/**
|
|
86
|
-
*
|
|
91
|
+
* Arch
|
|
87
92
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
}
|
|
94
|
+
else if (this.distroId === 'rolling' || this.distroId === 'n/a') {
|
|
95
|
+
this.familyId = 'archlinux';
|
|
96
|
+
this.distroLike = 'Arch';
|
|
97
|
+
this.codenameId = 'rolling';
|
|
98
|
+
this.codenameLikeId = 'rolling';
|
|
99
|
+
this.liveMediumPath = '/run/archiso/bootmnt/';
|
|
100
|
+
this.squashfs = `arch/x86_64/airootfs.sfs`;
|
|
101
|
+
/**
|
|
102
|
+
* Fedora/RHEL compatible
|
|
103
|
+
*/
|
|
104
|
+
}
|
|
105
|
+
else if (this.distroId === 'AlmaLinux' ||
|
|
106
|
+
this.distroId === 'Fedora' ||
|
|
107
|
+
this.distroId === 'NobaraLinux' ||
|
|
108
|
+
this.distroId === 'RockyLinux') {
|
|
109
|
+
this.familyId = 'fedora';
|
|
110
|
+
this.distroLike = 'Fedora';
|
|
111
|
+
this.codenameId = 'rolling'; // viene rimosso dal nome
|
|
112
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
113
|
+
this.liveMediumPath = '/run/initramfs/live/';
|
|
114
|
+
/**
|
|
115
|
+
* openmamba
|
|
116
|
+
*/
|
|
117
|
+
}
|
|
118
|
+
else if (this.distroId === 'openmamba') {
|
|
119
|
+
this.familyId = 'openmamba';
|
|
120
|
+
this.distroLike = 'openmamba';
|
|
121
|
+
this.codenameId = 'rolling'; // viene rimosso dal nome
|
|
122
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
123
|
+
this.liveMediumPath = '/run/initramfs/live/';
|
|
98
124
|
/**
|
|
99
125
|
* opensuse compatible
|
|
100
126
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
127
|
+
}
|
|
128
|
+
else if (this.distroId === 'openSUSE') {
|
|
129
|
+
this.familyId = 'opensuse';
|
|
130
|
+
this.distroLike = this.distroId;
|
|
131
|
+
this.codenameId = 'rolling'; // viene rimosso dal nome
|
|
132
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
133
|
+
this.liveMediumPath = '/run/initramfs/live/'; // check
|
|
109
134
|
/**
|
|
110
135
|
* voidlinux compatible
|
|
111
136
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
137
|
+
}
|
|
138
|
+
else if (this.distroId === 'VoidLinux') {
|
|
139
|
+
this.familyId = 'voidlinux';
|
|
140
|
+
this.distroLike = this.distroId;
|
|
141
|
+
this.codenameId = 'rolling';
|
|
142
|
+
this.codenameLikeId = this.familyId; // per krill
|
|
143
|
+
this.liveMediumPath = '/run/initramfs/live/'; // we must discover
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
120
146
|
/**
|
|
121
|
-
*
|
|
122
|
-
* analizzo i codebase conosciuti
|
|
147
|
+
* We must analize codenameId
|
|
123
148
|
*/
|
|
124
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Debian jessie
|
|
151
|
+
*/
|
|
152
|
+
if (this.codenameId === 'jessie') {
|
|
153
|
+
this.distroLike = 'Debian';
|
|
154
|
+
this.codenameLikeId = 'jessie';
|
|
155
|
+
this.liveMediumPath = '/lib/live/mount/medium/';
|
|
156
|
+
this.isCalamaresAvailable = false;
|
|
125
157
|
/**
|
|
126
|
-
* Debian
|
|
158
|
+
* Debian stretch
|
|
127
159
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
if (this.codenameId === distro.ids[n]) {
|
|
246
|
-
found = true;
|
|
247
|
-
this.distroLike = distro.distroLike;
|
|
248
|
-
this.codenameLikeId = distro.id;
|
|
249
|
-
this.familyId = distro.family;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
160
|
+
}
|
|
161
|
+
else if (this.codenameId === 'stretch') {
|
|
162
|
+
this.distroLike = 'Debian';
|
|
163
|
+
this.codenameLikeId = 'stretch';
|
|
164
|
+
this.liveMediumPath = '/lib/live/mount/medium/';
|
|
165
|
+
this.isCalamaresAvailable = false;
|
|
166
|
+
/**
|
|
167
|
+
* Debian buster
|
|
168
|
+
*/
|
|
169
|
+
}
|
|
170
|
+
else if (this.codenameId === 'buster') {
|
|
171
|
+
this.distroLike = 'Debian';
|
|
172
|
+
this.codenameLikeId = 'buster';
|
|
173
|
+
/**
|
|
174
|
+
* Debian bullseye
|
|
175
|
+
*/
|
|
176
|
+
}
|
|
177
|
+
else if (this.codenameId === 'bullseye') {
|
|
178
|
+
this.distroLike = 'Debian';
|
|
179
|
+
this.codenameLikeId = 'bullseye';
|
|
180
|
+
/**
|
|
181
|
+
* Debian bookworm
|
|
182
|
+
*/
|
|
183
|
+
}
|
|
184
|
+
else if (this.codenameId === 'bookworm') {
|
|
185
|
+
this.distroLike = 'Debian';
|
|
186
|
+
this.codenameLikeId = 'bookworm';
|
|
187
|
+
/**
|
|
188
|
+
* Debian trixie
|
|
189
|
+
*/
|
|
190
|
+
}
|
|
191
|
+
else if (this.codenameId === 'trixie') {
|
|
192
|
+
this.distroLike = 'Debian';
|
|
193
|
+
this.codenameLikeId = 'trixie';
|
|
194
|
+
/**
|
|
195
|
+
* Devuan beowulf
|
|
196
|
+
*/
|
|
197
|
+
}
|
|
198
|
+
else if (this.codenameId === 'beowulf') {
|
|
199
|
+
this.distroLike = 'Devuan';
|
|
200
|
+
this.codenameLikeId = 'beowulf';
|
|
201
|
+
/**
|
|
202
|
+
* Devuan chimaera
|
|
203
|
+
*/
|
|
204
|
+
}
|
|
205
|
+
else if (this.codenameId === 'chimaera') {
|
|
206
|
+
this.distroLike = 'Devuan';
|
|
207
|
+
this.codenameLikeId = 'chimaera';
|
|
208
|
+
/**
|
|
209
|
+
* Devuan daedalus
|
|
210
|
+
*/
|
|
211
|
+
}
|
|
212
|
+
else if (this.codenameId === 'daedalus') {
|
|
213
|
+
this.distroLike = 'Devuan';
|
|
214
|
+
this.codenameLikeId = 'daedalus';
|
|
215
|
+
/**
|
|
216
|
+
* Devuan excalibur
|
|
217
|
+
*/
|
|
218
|
+
}
|
|
219
|
+
else if (this.codenameId === 'excalibur') {
|
|
220
|
+
this.distroLike = 'Devuan';
|
|
221
|
+
this.codenameLikeId = 'excalibur';
|
|
222
|
+
/**
|
|
223
|
+
* Ubuntu bionic
|
|
224
|
+
*/
|
|
225
|
+
}
|
|
226
|
+
else if (this.codenameId === 'bionic') {
|
|
227
|
+
this.distroLike = 'Ubuntu';
|
|
228
|
+
this.codenameLikeId = 'bionic';
|
|
229
|
+
this.liveMediumPath = '/lib/live/mount/medium/';
|
|
230
|
+
/**
|
|
231
|
+
* Ubuntu focal
|
|
232
|
+
*/
|
|
233
|
+
}
|
|
234
|
+
else if (this.codenameId === 'focal') {
|
|
235
|
+
this.distroLike = 'Ubuntu';
|
|
236
|
+
this.codenameLikeId = 'focal';
|
|
237
|
+
/**
|
|
238
|
+
* Ubuntu jammy
|
|
239
|
+
*/
|
|
240
|
+
}
|
|
241
|
+
else if (this.codenameId === 'jammy') {
|
|
242
|
+
this.distroLike = 'Ubuntu';
|
|
243
|
+
this.codenameLikeId = 'jammy';
|
|
244
|
+
/**
|
|
245
|
+
* Ubuntu noble
|
|
246
|
+
*/
|
|
247
|
+
}
|
|
248
|
+
else if (this.codenameId === 'noble') {
|
|
249
|
+
this.distroLike = 'Ubuntu';
|
|
250
|
+
this.codenameLikeId = 'noble';
|
|
251
|
+
/**
|
|
252
|
+
* Ubuntu devel
|
|
253
|
+
*/
|
|
254
|
+
}
|
|
255
|
+
else if (this.codenameId === 'devel') {
|
|
256
|
+
this.distroLike = 'Ubuntu';
|
|
257
|
+
this.codenameLikeId = 'devel';
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
/**
|
|
261
|
+
* patch per Roy VERIFICARE
|
|
262
|
+
*/
|
|
263
|
+
let file = path.resolve(__dirname, '../../conf/derivatives.yaml');
|
|
264
|
+
if (fs.existsSync('/etc/penguins-eggs.d/derivatives.yaml')) {
|
|
265
|
+
file = '/etc/penguins-eggs.d/derivatives.yaml';
|
|
266
|
+
}
|
|
267
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
268
|
+
const distros = yaml.load(content);
|
|
269
|
+
for (const distro of distros) {
|
|
270
|
+
if (distro.ids !== undefined) {
|
|
271
|
+
for (let n = 0; n < distro.ids.length; n++) {
|
|
272
|
+
if (this.codenameId === distro.ids[n]) {
|
|
273
|
+
found = true;
|
|
274
|
+
this.distroLike = distro.distroLike;
|
|
275
|
+
this.codenameLikeId = distro.id;
|
|
276
|
+
this.familyId = distro.family;
|
|
252
277
|
}
|
|
253
278
|
}
|
|
254
|
-
if (!found) {
|
|
255
|
-
console.log(`This distro ${this.distroId}/${this.codenameId} is not yet recognized!`);
|
|
256
|
-
console.log('');
|
|
257
|
-
console.log('You can edit /usr/lib/penguins-eggs/conf/derivatives.yaml to add it -');
|
|
258
|
-
console.log('after that - run: sudo eggs dad -d to re-configure eggs.');
|
|
259
|
-
console.log('If you can create your new iso, you can contribute to the project');
|
|
260
|
-
console.log('by suggesting your modification.');
|
|
261
|
-
process.exit(0);
|
|
262
|
-
}
|
|
263
279
|
}
|
|
264
280
|
}
|
|
281
|
+
if (!found) {
|
|
282
|
+
console.log(`This distro ${this.distroId}/${this.codenameId} is not yet recognized!`);
|
|
283
|
+
console.log('');
|
|
284
|
+
console.log('You can edit /usr/lib/penguins-eggs/conf/derivatives.yaml to add it -');
|
|
285
|
+
console.log('after that - run: sudo eggs dad -d to re-configure eggs.');
|
|
286
|
+
console.log('If you can create your new iso, you can contribute to the project');
|
|
287
|
+
console.log('by suggesting your modification.');
|
|
288
|
+
process.exit(0);
|
|
289
|
+
}
|
|
265
290
|
}
|
|
266
|
-
}
|
|
291
|
+
}
|
|
267
292
|
/**
|
|
268
293
|
* Ultimi ritocchi
|
|
269
294
|
*/
|
|
@@ -274,6 +299,9 @@ class Distro {
|
|
|
274
299
|
if (this.familyId === "debian") {
|
|
275
300
|
this.usrLibPath = '/usr/lib/' + Utils.usrLibPath();
|
|
276
301
|
}
|
|
302
|
+
else if (this.familyId === "opensuse") {
|
|
303
|
+
this.usrLibPath = '/usr/lib64/';
|
|
304
|
+
}
|
|
277
305
|
/**
|
|
278
306
|
* ManjaroLinux e derivate
|
|
279
307
|
*/
|
|
@@ -282,7 +310,7 @@ class Distro {
|
|
|
282
310
|
this.squashfs = 'manjaro/x86_64/livefs.sfs';
|
|
283
311
|
}
|
|
284
312
|
/**
|
|
285
|
-
*
|
|
313
|
+
* lettura os_release per i pulsanti
|
|
286
314
|
*/
|
|
287
315
|
const os_release = '/etc/os-release';
|
|
288
316
|
if (fs.existsSync(os_release)) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/classes/diversions.ts
|
|
3
|
+
* penguins-eggs v.10.0.0 / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* contiene le variazione di nome
|
|
10
|
+
* per ogni famiglia
|
|
11
|
+
*/
|
|
12
|
+
import { IDistro } from '../interfaces/index.js';
|
|
13
|
+
export default class Diversions {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param familyId
|
|
17
|
+
* @returns deluser
|
|
18
|
+
*/
|
|
19
|
+
static deluser(familyId: string): string;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param familyId
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
static grubName(familyId: string): string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param familyId
|
|
29
|
+
* @param volid
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
static kernelParameters(familyId: string, volid: string): string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
static distro(): IDistro;
|
|
38
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/classes/diversions.ts
|
|
3
|
+
* penguins-eggs v.10.0.0 / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import Distro from './distro.js';
|
|
9
|
+
export default class Diversions {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param familyId
|
|
13
|
+
* @returns deluser
|
|
14
|
+
*/
|
|
15
|
+
static deluser(familyId) {
|
|
16
|
+
let deluser = 'deluser';
|
|
17
|
+
if (familyId === 'aldos' ||
|
|
18
|
+
familyId === 'archlinux' ||
|
|
19
|
+
familyId === 'fedora' ||
|
|
20
|
+
familyId === 'openmamba' ||
|
|
21
|
+
familyId === 'opensuse' ||
|
|
22
|
+
familyId === 'voidlinux') {
|
|
23
|
+
deluser = 'userdel';
|
|
24
|
+
}
|
|
25
|
+
return deluser;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param familyId
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
static grubName(familyId) {
|
|
33
|
+
let grubName = 'grub';
|
|
34
|
+
if (familyId === 'aldos' ||
|
|
35
|
+
familyId === 'fedora' ||
|
|
36
|
+
familyId === 'opensuse') {
|
|
37
|
+
grubName = 'grub2';
|
|
38
|
+
}
|
|
39
|
+
return grubName;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param familyId
|
|
44
|
+
* @param volid
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
static kernelParameters(familyId, volid) {
|
|
48
|
+
// GRUB_CMDLINE_LINUX='ipv6.disable=1'
|
|
49
|
+
let kp = "";
|
|
50
|
+
if (familyId === 'aldos') {
|
|
51
|
+
kp += `root=live:CDLABEL=${volid} rd.live.image rd.live.dir=/live rd.live.squashimg=filesystem.squashfs selinux=0 rootfstype=auto rd.locale.LANG=en_US.UTF-8 KEYBOARDTYPE=pc rd.vconsole.keymap=us rootflags=defaults,relatime,commit=60 nmi_watchdog=0 rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM`;
|
|
52
|
+
}
|
|
53
|
+
else if (familyId === 'alpine') {
|
|
54
|
+
kp += `alpinelivelabel=${volid} alpinelivesquashfs=/mnt/live/filesystem.squashfs`;
|
|
55
|
+
}
|
|
56
|
+
else if (familyId === 'archlinux') {
|
|
57
|
+
kp += `boot=live components locales=${process.env.LANG}`;
|
|
58
|
+
const distroId = this.distro().distroId;
|
|
59
|
+
if (isMiso(distroId)) {
|
|
60
|
+
kp += ` misobasedir=manjaro misolabel=${volid}`;
|
|
61
|
+
// shx.exec(`mkdir -p ${this.settings.iso_work}.miso`)
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
kp += ` archisobasedir=arch archisolabel=${volid}`;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (familyId === 'debian') {
|
|
68
|
+
kp += `boot=live components locales=${process.env.LANG} cow_spacesize=2G`;
|
|
69
|
+
}
|
|
70
|
+
else if (familyId === 'fedora') {
|
|
71
|
+
kp += `root=live:CDLABEL=${volid} rd.live.image rd.live.dir=/live rd.live.squashimg=filesystem.squashfs selinux=0`;
|
|
72
|
+
}
|
|
73
|
+
else if (familyId === 'openmamba') {
|
|
74
|
+
kp += `root=live:CDLABEL=${volid} rd.live.image rd.live.dir=/live rd.live.squashimg=filesystem.squashfs selinux=0`;
|
|
75
|
+
}
|
|
76
|
+
else if (familyId === 'opensuse') {
|
|
77
|
+
kp += `root=live:CDLABEL=${volid} rd.live.image rd.live.dir=/live rd.live.squashimg=filesystem.squashfs apparmor=0`;
|
|
78
|
+
}
|
|
79
|
+
else if (familyId === 'voidlinux') {
|
|
80
|
+
kp += `root=live:CDLABEL=${volid} rd.live.image rd.live.dir=/live rd.live.squashimg=filesystem.squashfs rd.debug`;
|
|
81
|
+
}
|
|
82
|
+
return kp;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @returns
|
|
87
|
+
*/
|
|
88
|
+
static distro() {
|
|
89
|
+
return new Distro();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* isMiso
|
|
94
|
+
*/
|
|
95
|
+
function isMiso(distro) {
|
|
96
|
+
let found = false;
|
|
97
|
+
if (distro === 'ManjaroLinux' || distro === `BigLinux`) {
|
|
98
|
+
found = true;
|
|
99
|
+
}
|
|
100
|
+
return found;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* isArchiso: se non zuppa, pan bagnato
|
|
104
|
+
*/
|
|
105
|
+
function isArchiso(distro) {
|
|
106
|
+
return !isMiso(distro);
|
|
107
|
+
}
|
|
@@ -34,16 +34,12 @@ export function branding(remix, distro, theme = '', verbose = false) {
|
|
|
34
34
|
* to work on EFI
|
|
35
35
|
*/
|
|
36
36
|
let bootloaderEntryName = '';
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
default: {
|
|
45
|
-
bootloaderEntryName = distro.distroId;
|
|
46
|
-
}
|
|
37
|
+
const distroId = distro.distroId.toLowerCase();
|
|
38
|
+
if (distroId === 'devuan' || distroId === 'lmde' || distroId === 'syslinuxos') {
|
|
39
|
+
bootloaderEntryName = 'Debian';
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
bootloaderEntryName = distro.distroId;
|
|
47
43
|
}
|
|
48
44
|
const productLogo = `${remix.branding}-logo.png`;
|
|
49
45
|
const productIcon = `${remix.branding}-logo.png`;
|
|
@@ -56,7 +56,7 @@ export default class Fisherman {
|
|
|
56
56
|
*/
|
|
57
57
|
moduleFinished(): Promise<void>;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* packages
|
|
60
60
|
*/
|
|
61
61
|
modulePackages(distro: IDistro, release?: boolean): Promise<void>;
|
|
62
62
|
/**
|
|
@@ -64,7 +64,7 @@ export default class Fisherman {
|
|
|
64
64
|
*/
|
|
65
65
|
moduleRemoveuser(username: string): Promise<void>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* unpackFs
|
|
68
68
|
*/
|
|
69
69
|
moduleUnpackfs(): Promise<void>;
|
|
70
70
|
}
|