penguins-eggs 10.0.33 → 10.0.36
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 +192 -192
- package/README.md +33 -33
- package/addons/eggs/theme/livecd/isolinux.main.alpine.cfg +1 -19
- package/conf/distros/fedora/README.md +3 -0
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/bootloader-config.sh +40 -0
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/module.yml +9 -0
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/cleanup.sh +13 -0
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/module.yml +9 -0
- package/conf/distros/fedora/calamares/modules/bootloader.yml +57 -0
- package/conf/distros/fedora/calamares/modules/displaymanager.yml +23 -0
- package/conf/distros/fedora/calamares/modules/finished.yml +5 -0
- package/conf/distros/fedora/calamares/modules/fstab.yml +12 -0
- package/conf/distros/fedora/calamares/modules/locale.yml +98 -0
- package/conf/distros/fedora/calamares/modules/luksopenswaphookcfg.yml +5 -0
- package/conf/distros/fedora/calamares/modules/machineid.yml +17 -0
- package/conf/distros/fedora/calamares/modules/mount.yml +56 -0
- package/conf/distros/fedora/calamares/modules/packages.yml +6 -0
- package/conf/distros/fedora/calamares/modules/partition.yml +242 -0
- package/conf/distros/fedora/calamares/modules/removeuser.yml +15 -0
- package/conf/distros/fedora/calamares/modules/unpackfs.yml +6 -0
- package/conf/distros/fedora/calamares/modules/users.yml +18 -0
- package/conf/distros/fedora/calamares/modules/welcome.yml +19 -0
- package/conf/distros/fedora/calamares/settings.yml +57 -0
- package/dist/classes/cli-autologin.js +12 -1
- package/dist/classes/distro.js +4 -7
- package/dist/classes/families/alpine.d.ts +0 -4
- package/dist/classes/families/alpine.js +0 -8
- package/dist/classes/families/archlinux.d.ts +0 -4
- package/dist/classes/families/archlinux.js +3 -9
- package/dist/classes/families/debian.d.ts +0 -4
- package/dist/classes/families/debian.js +0 -7
- package/dist/classes/families/fedora.d.ts +0 -4
- package/dist/classes/families/fedora.js +0 -6
- package/dist/classes/families/opensuse.d.ts +0 -4
- package/dist/classes/families/opensuse.js +0 -9
- package/dist/classes/incubation/fisherman-helper/packages.js +1 -1
- package/dist/classes/incubation/incubator.js +8 -0
- package/dist/classes/ovary.js +28 -19
- package/dist/classes/pacman.d.ts +1 -1
- package/dist/classes/pacman.js +16 -24
- package/dist/classes/tailor.js +4 -4
- package/dist/classes/utils.js +26 -8
- package/dist/commands/calamares.js +39 -39
- package/dist/krill/modules/add-user.js +7 -5
- package/dist/krill/modules/bootloader-config.js +26 -0
- package/dist/krill/modules/bootloader.js +8 -1
- package/dist/krill/modules/del-live-user.js +2 -2
- package/dist/krill/modules/locale-cfg.js +0 -3
- package/dist/krill/sequence.js +110 -38
- package/dracut/README.md +5 -79
- package/dracut/dracut.conf +3 -3
- package/dracut/dracut.conf.d/01-live.conf +8 -0
- package/dracut/test.sh +40 -0
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +4 -4
- package/mkinitfs/initramfs-init.in +1039 -0
- package/mkinitfs/sidecar.sh +52 -0
- package/package.json +11 -11
- package/dist/classes/families/mockup.d.ts +0 -60
- package/dist/classes/families/mockup.js +0 -79
- package/dracut/dracut.conf.d/90overlayfs.conf +0 -5
- package/dracut/dracut.conf.d/99custom.conf +0 -4
- package/dracut/install-dracut-99custom +0 -1
- package/dracut/usr/lib/dracut/modules.d/99custom/init-live.sh +0 -4
- package/dracut/usr/lib/dracut/modules.d/99custom/module-setup.sh +0 -15
- package/dracut/usr/lib/dracut/modules.d/99custom/mount-live.sh +0 -25
package/dist/krill/sequence.js
CHANGED
|
@@ -198,8 +198,10 @@ export default class Sequence {
|
|
|
198
198
|
isPartitioned = await this.partition();
|
|
199
199
|
}
|
|
200
200
|
catch (error) {
|
|
201
|
-
|
|
201
|
+
console.log(JSON.stringify(error));
|
|
202
202
|
}
|
|
203
|
+
if (this.verbose)
|
|
204
|
+
await Utils.pressKeyToExit(message);
|
|
203
205
|
if (isPartitioned) {
|
|
204
206
|
// formatting
|
|
205
207
|
message = "Formatting file system ";
|
|
@@ -209,8 +211,10 @@ export default class Sequence {
|
|
|
209
211
|
await this.mkfs();
|
|
210
212
|
}
|
|
211
213
|
catch (error) {
|
|
212
|
-
|
|
214
|
+
console.log(JSON.stringify(error));
|
|
213
215
|
}
|
|
216
|
+
if (this.verbose)
|
|
217
|
+
await Utils.pressKeyToExit(message);
|
|
214
218
|
// mountFs
|
|
215
219
|
message = "Mounting target file system ";
|
|
216
220
|
percent = 0.09;
|
|
@@ -219,9 +223,11 @@ export default class Sequence {
|
|
|
219
223
|
await this.mountFs();
|
|
220
224
|
}
|
|
221
225
|
catch (error) {
|
|
222
|
-
|
|
226
|
+
console.log(JSON.stringify(error));
|
|
223
227
|
}
|
|
224
228
|
await sleep(500); // diamo il tempo di montare
|
|
229
|
+
if (this.verbose)
|
|
230
|
+
await Utils.pressKeyToExit(message);
|
|
225
231
|
// mountVfs
|
|
226
232
|
message = "Mounting on target VFS ";
|
|
227
233
|
percent = 0.12;
|
|
@@ -230,8 +236,10 @@ export default class Sequence {
|
|
|
230
236
|
await this.mountVfs();
|
|
231
237
|
}
|
|
232
238
|
catch (error) {
|
|
233
|
-
|
|
239
|
+
console.log(JSON.stringify(error));
|
|
234
240
|
}
|
|
241
|
+
if (this.verbose)
|
|
242
|
+
await Utils.pressKeyToExit(message);
|
|
235
243
|
// unpackfs
|
|
236
244
|
message = "Unpacking filesystem ";
|
|
237
245
|
percent = 0.15;
|
|
@@ -240,8 +248,10 @@ export default class Sequence {
|
|
|
240
248
|
await this.unpackfs();
|
|
241
249
|
}
|
|
242
250
|
catch (error) {
|
|
243
|
-
|
|
251
|
+
console.log(JSON.stringify(error));
|
|
244
252
|
}
|
|
253
|
+
if (this.verbose)
|
|
254
|
+
await Utils.pressKeyToExit(message);
|
|
245
255
|
// dpkg-unsafe-io
|
|
246
256
|
if (this.distro.familyId === 'debian') {
|
|
247
257
|
message = "dpkg-unsafe-io";
|
|
@@ -251,9 +261,11 @@ export default class Sequence {
|
|
|
251
261
|
await this.execCalamaresModule('dpkg-unsafe-io');
|
|
252
262
|
}
|
|
253
263
|
catch (error) {
|
|
254
|
-
|
|
264
|
+
console.log(JSON.stringify(error));
|
|
255
265
|
}
|
|
256
266
|
}
|
|
267
|
+
if (this.verbose)
|
|
268
|
+
await Utils.pressKeyToExit(message);
|
|
257
269
|
// sources-yolk
|
|
258
270
|
if (this.distro.familyId === 'debian') {
|
|
259
271
|
message = 'sources-yolk';
|
|
@@ -263,9 +275,11 @@ export default class Sequence {
|
|
|
263
275
|
await this.execCalamaresModule('sources-yolk');
|
|
264
276
|
}
|
|
265
277
|
catch (error) {
|
|
266
|
-
|
|
278
|
+
console.log(JSON.stringify(error));
|
|
267
279
|
}
|
|
268
280
|
}
|
|
281
|
+
if (this.verbose)
|
|
282
|
+
await Utils.pressKeyToExit(message);
|
|
269
283
|
// machineid
|
|
270
284
|
message = 'machineid';
|
|
271
285
|
percent = 0.46;
|
|
@@ -274,8 +288,10 @@ export default class Sequence {
|
|
|
274
288
|
await this.machineId();
|
|
275
289
|
}
|
|
276
290
|
catch (error) {
|
|
277
|
-
|
|
291
|
+
console.log(JSON.stringify(error));
|
|
278
292
|
}
|
|
293
|
+
if (this.verbose)
|
|
294
|
+
await Utils.pressKeyToExit(message);
|
|
279
295
|
// fstab
|
|
280
296
|
message = "Creating fstab ";
|
|
281
297
|
percent = 0.49;
|
|
@@ -284,8 +300,10 @@ export default class Sequence {
|
|
|
284
300
|
await this.fstab(this.partitions.installationDevice);
|
|
285
301
|
}
|
|
286
302
|
catch (error) {
|
|
287
|
-
|
|
303
|
+
console.log(JSON.stringify(error));
|
|
288
304
|
}
|
|
305
|
+
if (this.verbose)
|
|
306
|
+
await Utils.pressKeyToExit(message);
|
|
289
307
|
/**
|
|
290
308
|
* CryptedClone exec eggs syncfrom
|
|
291
309
|
*/
|
|
@@ -300,13 +318,15 @@ export default class Sequence {
|
|
|
300
318
|
this.is_clone = true; // Adesso è un clone
|
|
301
319
|
}
|
|
302
320
|
catch (error) {
|
|
303
|
-
|
|
321
|
+
console.log(JSON.stringify(error));
|
|
304
322
|
}
|
|
305
323
|
}
|
|
306
324
|
else {
|
|
307
325
|
await Utils.pressKeyToExit(`Cannot find luks-volume file ${this.luksFile}`);
|
|
308
326
|
}
|
|
309
327
|
}
|
|
328
|
+
if (this.verbose)
|
|
329
|
+
await Utils.pressKeyToExit(message);
|
|
310
330
|
// networkcfg
|
|
311
331
|
message = "networkcfg";
|
|
312
332
|
percent = 0.61;
|
|
@@ -314,8 +334,10 @@ export default class Sequence {
|
|
|
314
334
|
await this.networkCfg();
|
|
315
335
|
}
|
|
316
336
|
catch (error) {
|
|
317
|
-
|
|
337
|
+
console.log(JSON.stringify(error));
|
|
318
338
|
}
|
|
339
|
+
if (this.verbose)
|
|
340
|
+
await Utils.pressKeyToExit(message);
|
|
319
341
|
// hostname
|
|
320
342
|
message = "Create hostname ";
|
|
321
343
|
percent = 0.64;
|
|
@@ -324,8 +346,10 @@ export default class Sequence {
|
|
|
324
346
|
await this.hostname(this.network.domain);
|
|
325
347
|
}
|
|
326
348
|
catch (error) {
|
|
327
|
-
|
|
349
|
+
console.log(JSON.stringify(error));
|
|
328
350
|
}
|
|
351
|
+
if (this.verbose)
|
|
352
|
+
await Utils.pressKeyToExit(message);
|
|
329
353
|
// dpkg-unsafe-io-undo
|
|
330
354
|
if (this.distro.familyId === 'debian') {
|
|
331
355
|
message = "dpkg-unsafe-io-undo";
|
|
@@ -335,9 +359,11 @@ export default class Sequence {
|
|
|
335
359
|
await this.execCalamaresModule('dpkg-unsafe-io-undo');
|
|
336
360
|
}
|
|
337
361
|
catch (error) {
|
|
338
|
-
|
|
362
|
+
console.log(JSON.stringify(error));
|
|
339
363
|
}
|
|
340
364
|
}
|
|
365
|
+
if (this.verbose)
|
|
366
|
+
await Utils.pressKeyToExit(message);
|
|
341
367
|
/**
|
|
342
368
|
* IF NOT CLONE:
|
|
343
369
|
* - locale
|
|
@@ -353,11 +379,15 @@ export default class Sequence {
|
|
|
353
379
|
percent = 0.70;
|
|
354
380
|
try {
|
|
355
381
|
redraw(React.createElement(Install, { message: message, percent: percent }));
|
|
356
|
-
|
|
382
|
+
if (this.distro.familyId !== 'fedora') {
|
|
383
|
+
await this.locale();
|
|
384
|
+
}
|
|
357
385
|
}
|
|
358
386
|
catch (error) {
|
|
359
|
-
|
|
387
|
+
console.log(JSON.stringify(error));
|
|
360
388
|
}
|
|
389
|
+
if (this.verbose)
|
|
390
|
+
await Utils.pressKeyToExit(message);
|
|
361
391
|
// keyboard
|
|
362
392
|
message = "settings keyboard";
|
|
363
393
|
percent = 0.71;
|
|
@@ -365,10 +395,12 @@ export default class Sequence {
|
|
|
365
395
|
await this.keyboard();
|
|
366
396
|
}
|
|
367
397
|
catch (error) {
|
|
368
|
-
|
|
398
|
+
console.log(JSON.stringify(error));
|
|
369
399
|
}
|
|
370
|
-
|
|
371
|
-
|
|
400
|
+
if (this.verbose)
|
|
401
|
+
await Utils.pressKeyToExit(message);
|
|
402
|
+
// localeCfg: no alpine, no fedora
|
|
403
|
+
if (this.distro.familyId === 'debian' || this.distro.familyId === 'archlinux') {
|
|
372
404
|
message = "Locale Configuration";
|
|
373
405
|
percent = 0.72;
|
|
374
406
|
try {
|
|
@@ -376,9 +408,11 @@ export default class Sequence {
|
|
|
376
408
|
await exec("chroot " + this.installTarget + " locale-gen");
|
|
377
409
|
}
|
|
378
410
|
catch (error) {
|
|
379
|
-
|
|
411
|
+
console.log(JSON.stringify(error));
|
|
380
412
|
}
|
|
381
413
|
}
|
|
414
|
+
if (this.verbose)
|
|
415
|
+
await Utils.pressKeyToExit(message);
|
|
382
416
|
// delLiveUser
|
|
383
417
|
message = "Remove user LIVE";
|
|
384
418
|
percent = 0.73;
|
|
@@ -387,8 +421,10 @@ export default class Sequence {
|
|
|
387
421
|
await this.delLiveUser();
|
|
388
422
|
}
|
|
389
423
|
catch (error) {
|
|
390
|
-
|
|
424
|
+
console.log(JSON.stringify(error));
|
|
391
425
|
}
|
|
426
|
+
if (this.verbose)
|
|
427
|
+
await Utils.pressKeyToExit(message);
|
|
392
428
|
// addUser
|
|
393
429
|
message = "Add user";
|
|
394
430
|
percent = 0.74;
|
|
@@ -397,8 +433,10 @@ export default class Sequence {
|
|
|
397
433
|
await this.addUser(this.users.username, this.users.password, this.users.fullname, '', '', '');
|
|
398
434
|
}
|
|
399
435
|
catch (error) {
|
|
400
|
-
|
|
436
|
+
console.log(JSON.stringify(error));
|
|
401
437
|
}
|
|
438
|
+
if (this.verbose)
|
|
439
|
+
await Utils.pressKeyToExit(message);
|
|
402
440
|
// changePassword root
|
|
403
441
|
message = "Add root password";
|
|
404
442
|
percent = 0.75;
|
|
@@ -407,8 +445,10 @@ export default class Sequence {
|
|
|
407
445
|
await this.changePassword('root', this.users.rootPassword);
|
|
408
446
|
}
|
|
409
447
|
catch (error) {
|
|
410
|
-
|
|
448
|
+
console.log(JSON.stringify(error));
|
|
411
449
|
}
|
|
450
|
+
if (this.verbose)
|
|
451
|
+
await Utils.pressKeyToExit(message);
|
|
412
452
|
// autologin GUI
|
|
413
453
|
if (Pacman.isInstalledGui()) {
|
|
414
454
|
try {
|
|
@@ -424,9 +464,11 @@ export default class Sequence {
|
|
|
424
464
|
await redraw(React.createElement(Install, { message: message, percent: percent }));
|
|
425
465
|
}
|
|
426
466
|
catch (error) {
|
|
427
|
-
|
|
467
|
+
console.log(JSON.stringify(error));
|
|
428
468
|
}
|
|
429
469
|
}
|
|
470
|
+
if (this.verbose)
|
|
471
|
+
await Utils.pressKeyToExit(message);
|
|
430
472
|
} // IF NOT CLONE END
|
|
431
473
|
// Remove ALWAYS autologin CLI
|
|
432
474
|
message = "Remove autologin CLI";
|
|
@@ -436,8 +478,10 @@ export default class Sequence {
|
|
|
436
478
|
await this.cliAutologin.remove(this.installTarget);
|
|
437
479
|
}
|
|
438
480
|
catch (error) {
|
|
439
|
-
|
|
481
|
+
console.log(JSON.stringify(error));
|
|
440
482
|
}
|
|
483
|
+
if (this.verbose)
|
|
484
|
+
await Utils.pressKeyToExit(message);
|
|
441
485
|
// bootloader-config
|
|
442
486
|
message = "bootloader-config ";
|
|
443
487
|
percent = 0.81;
|
|
@@ -446,8 +490,10 @@ export default class Sequence {
|
|
|
446
490
|
await this.bootloaderConfig();
|
|
447
491
|
}
|
|
448
492
|
catch (error) {
|
|
449
|
-
|
|
493
|
+
console.log(JSON.stringify(error));
|
|
450
494
|
}
|
|
495
|
+
if (this.verbose)
|
|
496
|
+
await Utils.pressKeyToExit(message);
|
|
451
497
|
// grubcfg
|
|
452
498
|
message = "grubcfg ";
|
|
453
499
|
percent = 0.82;
|
|
@@ -456,8 +502,10 @@ export default class Sequence {
|
|
|
456
502
|
await this.grubcfg();
|
|
457
503
|
}
|
|
458
504
|
catch (error) {
|
|
459
|
-
|
|
505
|
+
console.log(JSON.stringify(error));
|
|
460
506
|
}
|
|
507
|
+
if (this.verbose)
|
|
508
|
+
await Utils.pressKeyToExit(message);
|
|
461
509
|
// bootloader (grub-install)
|
|
462
510
|
message = "bootloader ";
|
|
463
511
|
percent = 0.83;
|
|
@@ -466,8 +514,10 @@ export default class Sequence {
|
|
|
466
514
|
await this.bootloader();
|
|
467
515
|
}
|
|
468
516
|
catch (error) {
|
|
469
|
-
|
|
517
|
+
console.log(JSON.stringify(error));
|
|
470
518
|
}
|
|
519
|
+
if (this.verbose)
|
|
520
|
+
await Utils.pressKeyToExit(message);
|
|
471
521
|
// sources-yolk-undo
|
|
472
522
|
if (this.distro.familyId === 'debian') {
|
|
473
523
|
message = "sources-yolk-undo";
|
|
@@ -477,9 +527,11 @@ export default class Sequence {
|
|
|
477
527
|
await this.execCalamaresModule('sources-yolk-undo');
|
|
478
528
|
}
|
|
479
529
|
catch (error) {
|
|
480
|
-
|
|
530
|
+
console.log(JSON.stringify(error));
|
|
481
531
|
}
|
|
482
532
|
}
|
|
533
|
+
if (this.verbose)
|
|
534
|
+
await Utils.pressKeyToExit(message);
|
|
483
535
|
// packages
|
|
484
536
|
message = "add/remove same packages";
|
|
485
537
|
percent = 0.85;
|
|
@@ -488,8 +540,10 @@ export default class Sequence {
|
|
|
488
540
|
await this.packages();
|
|
489
541
|
}
|
|
490
542
|
catch (error) {
|
|
491
|
-
|
|
543
|
+
console.log(JSON.stringify(error));
|
|
492
544
|
}
|
|
545
|
+
if (this.verbose)
|
|
546
|
+
await Utils.pressKeyToExit(message);
|
|
493
547
|
// initramfsCfg
|
|
494
548
|
message = "initramfs configure";
|
|
495
549
|
percent = 0.86;
|
|
@@ -498,8 +552,10 @@ export default class Sequence {
|
|
|
498
552
|
await this.initramfsCfg(this.partitions.installationDevice);
|
|
499
553
|
}
|
|
500
554
|
catch (error) {
|
|
501
|
-
|
|
555
|
+
console.log(JSON.stringify(error));
|
|
502
556
|
}
|
|
557
|
+
if (this.verbose)
|
|
558
|
+
await Utils.pressKeyToExit(message);
|
|
503
559
|
// initramfs
|
|
504
560
|
message = "initramfs ";
|
|
505
561
|
percent = 0.87;
|
|
@@ -508,8 +564,10 @@ export default class Sequence {
|
|
|
508
564
|
await this.initramfs();
|
|
509
565
|
}
|
|
510
566
|
catch (error) {
|
|
511
|
-
|
|
567
|
+
console.log(JSON.stringify(error));
|
|
512
568
|
}
|
|
569
|
+
if (this.verbose)
|
|
570
|
+
await Utils.pressKeyToExit(message);
|
|
513
571
|
/**
|
|
514
572
|
*
|
|
515
573
|
* remove CLI/GUI installer link
|
|
@@ -521,8 +579,10 @@ export default class Sequence {
|
|
|
521
579
|
await this.removeInstallerLink();
|
|
522
580
|
}
|
|
523
581
|
catch (error) {
|
|
524
|
-
|
|
582
|
+
console.log(JSON.stringify(error));
|
|
525
583
|
}
|
|
584
|
+
if (this.verbose)
|
|
585
|
+
await Utils.pressKeyToExit(message);
|
|
526
586
|
// remove /etc/penguins_eggs.d/is_clone*
|
|
527
587
|
message = "Cleanup";
|
|
528
588
|
percent = 0.89;
|
|
@@ -532,8 +592,10 @@ export default class Sequence {
|
|
|
532
592
|
await exec(`rm -f ${this.installTarget}/etc/penguins-eggs.d/is_crypted_clone`);
|
|
533
593
|
}
|
|
534
594
|
catch (error) {
|
|
535
|
-
|
|
595
|
+
console.log(JSON.stringify(error));
|
|
536
596
|
}
|
|
597
|
+
if (this.verbose)
|
|
598
|
+
await Utils.pressKeyToExit(message);
|
|
537
599
|
/**
|
|
538
600
|
* custom final steps
|
|
539
601
|
*/
|
|
@@ -548,9 +610,11 @@ export default class Sequence {
|
|
|
548
610
|
await this.execCalamaresModule(step);
|
|
549
611
|
}
|
|
550
612
|
catch (error) {
|
|
551
|
-
|
|
613
|
+
console.log(JSON.stringify(error));
|
|
552
614
|
}
|
|
553
615
|
}
|
|
616
|
+
if (this.verbose)
|
|
617
|
+
await Utils.pressKeyToExit(message);
|
|
554
618
|
}
|
|
555
619
|
// chroot
|
|
556
620
|
if (chroot) {
|
|
@@ -566,9 +630,11 @@ export default class Sequence {
|
|
|
566
630
|
cliCursor.hide();
|
|
567
631
|
}
|
|
568
632
|
catch (error) {
|
|
569
|
-
|
|
633
|
+
console.log(JSON.stringify(error));
|
|
570
634
|
}
|
|
571
635
|
}
|
|
636
|
+
if (this.verbose)
|
|
637
|
+
await Utils.pressKeyToExit(message);
|
|
572
638
|
// umountVfs
|
|
573
639
|
message = "umount VFS";
|
|
574
640
|
percent = 0.96;
|
|
@@ -577,8 +643,10 @@ export default class Sequence {
|
|
|
577
643
|
await this.umountVfs();
|
|
578
644
|
}
|
|
579
645
|
catch (error) {
|
|
580
|
-
|
|
646
|
+
console.log(JSON.stringify(error));
|
|
581
647
|
}
|
|
648
|
+
if (this.verbose)
|
|
649
|
+
await Utils.pressKeyToExit(message);
|
|
582
650
|
message = "umount";
|
|
583
651
|
percent = 0.97;
|
|
584
652
|
try {
|
|
@@ -586,8 +654,10 @@ export default class Sequence {
|
|
|
586
654
|
await this.umountFs();
|
|
587
655
|
}
|
|
588
656
|
catch (error) {
|
|
589
|
-
|
|
657
|
+
console.log(JSON.stringify(error));
|
|
590
658
|
}
|
|
659
|
+
if (this.verbose)
|
|
660
|
+
await Utils.pressKeyToExit(message);
|
|
591
661
|
// finished
|
|
592
662
|
message = "finished";
|
|
593
663
|
percent = 100.0;
|
|
@@ -596,8 +666,10 @@ export default class Sequence {
|
|
|
596
666
|
await this.finished();
|
|
597
667
|
}
|
|
598
668
|
catch (error) {
|
|
599
|
-
|
|
669
|
+
console.log(JSON.stringify(error));
|
|
600
670
|
}
|
|
671
|
+
if (this.verbose)
|
|
672
|
+
await Utils.pressKeyToExit(message);
|
|
601
673
|
}
|
|
602
674
|
}
|
|
603
675
|
/**
|
package/dracut/README.md
CHANGED
|
@@ -1,84 +1,10 @@
|
|
|
1
|
-
# dracut
|
|
2
|
-
E' solo un tentativo...:
|
|
1
|
+
# dracut on Fedora
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
* installare dracut in Alpine
|
|
6
|
-
* modificare initrdAlpine in ovary.ts
|
|
7
|
-
* create modulo 99custom
|
|
8
|
-
* create script 99custom/module-setup.sh
|
|
9
|
-
* create script 99custom/mount-live.sh
|
|
10
|
-
* create script 99custom/init-live.sh
|
|
3
|
+
## Install
|
|
11
4
|
|
|
12
|
-
## 99custom
|
|
13
5
|
```
|
|
14
|
-
|
|
6
|
+
sudo dnf -y install \
|
|
7
|
+
dracut \
|
|
8
|
+
dracut-live
|
|
15
9
|
```
|
|
16
10
|
|
|
17
|
-
## 99custom/module-setup.sh
|
|
18
|
-
```
|
|
19
|
-
#!/bin/bash
|
|
20
|
-
|
|
21
|
-
check() {
|
|
22
|
-
return 0
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
depends() {
|
|
26
|
-
echo "shutdown"
|
|
27
|
-
return 0
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
install() {
|
|
31
|
-
inst_hook cmdline 90 "$moddir/mount-live.sh"
|
|
32
|
-
inst_hook pre-mount 50 "$moddir/init-live.sh"
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## 99custom/mount-live.sh
|
|
37
|
-
```
|
|
38
|
-
#!/bin/sh
|
|
39
|
-
|
|
40
|
-
mount_live() {
|
|
41
|
-
# Trova il dispositivo CD-ROM
|
|
42
|
-
for device in $(ls /dev/sr*); do
|
|
43
|
-
if mount -r $device /mnt; then
|
|
44
|
-
break
|
|
45
|
-
fi
|
|
46
|
-
done
|
|
47
|
-
|
|
48
|
-
# Monta il filesystem squashfs in RO
|
|
49
|
-
if [ -e /mnt/live/filesystem.squashfs ]; then
|
|
50
|
-
mkdir -p /run/rootro
|
|
51
|
-
mount -t squashfs -o ro /mnt/live/filesystem.squashfs /run/rootro
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
# Monta il filesystem union (overlay)
|
|
55
|
-
if [ -d /run/rootro ]; then
|
|
56
|
-
mkdir -p /run/root-rw /run/overlay
|
|
57
|
-
mount -t tmpfs -o rw,noatime,mode=755 tmpfs /run/root-rw
|
|
58
|
-
mount -t overlay -o lowerdir=/run/rootro,upperdir=/run/root-rw,workdir=/run/overlay overlay /sysroot
|
|
59
|
-
fi
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
mount_live
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## 99custom/init-live.sh
|
|
66
|
-
```
|
|
67
|
-
#!/bin/sh
|
|
68
|
-
|
|
69
|
-
# Esempio di inizializzazioni aggiuntive
|
|
70
|
-
echo "Inizializzazioni aggiuntive possono essere aggiunte qui"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
# Comando in ovary
|
|
74
|
-
```
|
|
75
|
-
let initrdImg = 'initramfs-lts'
|
|
76
|
-
// dracut
|
|
77
|
-
const pathConf = path.resolve(__dirname, `../../dracut/dracut.conf.d`)
|
|
78
|
-
await exec(`dracut --confdir ${pathConf} ${this.settings.iso_work}live/${initrdImg}`, Utils.setEcho(true))
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
# TESTING
|
|
82
|
-
sudo ./install-dracut-99-custom
|
|
83
|
-
sudo dracut --confdir dracut/dracut.conf.d initramfs-dummy
|
|
84
|
-
|
package/dracut/dracut.conf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
|
|
1
|
+
# dracut.conf
|
|
2
|
+
# intentionally blank
|
|
3
|
+
|
package/dracut/test.sh
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# https://github.com/dracutdevs/fedora-container/blob/master/Dockerfile-latest
|
|
2
|
+
# but don't install dnssquash-live
|
|
3
|
+
dnf -y install --setopt=install_weak_deps=False \
|
|
4
|
+
dash \
|
|
5
|
+
asciidoc \
|
|
6
|
+
mdadm \
|
|
7
|
+
lvm2 \
|
|
8
|
+
dmraid \
|
|
9
|
+
cryptsetup \
|
|
10
|
+
nfs-utils \
|
|
11
|
+
nbd \
|
|
12
|
+
dhcp-server \
|
|
13
|
+
scsi-target-utils \
|
|
14
|
+
iscsi-initiator-utils \
|
|
15
|
+
strace \
|
|
16
|
+
btrfs-progs \
|
|
17
|
+
kmod-devel \
|
|
18
|
+
gcc \
|
|
19
|
+
bzip2 \
|
|
20
|
+
xz \
|
|
21
|
+
tar \
|
|
22
|
+
wget \
|
|
23
|
+
rpm-build \
|
|
24
|
+
make \
|
|
25
|
+
git \
|
|
26
|
+
bash-completion \
|
|
27
|
+
sudo \
|
|
28
|
+
kernel \
|
|
29
|
+
dhcp-client \
|
|
30
|
+
/usr/bin/qemu-kvm \
|
|
31
|
+
/usr/bin/qemu-system-$(uname -i) \
|
|
32
|
+
e2fsprogs \
|
|
33
|
+
tcpdump \
|
|
34
|
+
iproute \
|
|
35
|
+
iputils \
|
|
36
|
+
dbus-daemon \
|
|
37
|
+
kbd \
|
|
38
|
+
NetworkManager \
|
|
39
|
+
python3-imgcreate \
|
|
40
|
+
&& dnf clean all
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
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 v10.0.
|
|
9
|
+
<h1>eggs(1) -- the reproductive system of penguins: eggs v10.0.36</h1>
|
|
10
10
|
<h1>SYNOPSIS</h1>
|
|
11
11
|
<p>eggs is a console utility, in active development, who let you to remaster your system and redistribuite it as live ISO image.</p>
|
|
12
12
|
<h1>INSTALL</h1>
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
</code></pre>
|
|
16
16
|
<p>Arch</p>
|
|
17
17
|
<pre><code>$ sudo pacman -S penguins-eggs
|
|
18
|
-
$ sudo pacman -U penguins-eggs_10.0.
|
|
18
|
+
$ sudo pacman -U penguins-eggs_10.0.36-1_amd64-1-x86_64.pkg.tar.zst
|
|
19
19
|
</code></pre>
|
|
20
20
|
<p>Debian/Devuan/Ubuntu</p>
|
|
21
21
|
<pre><code>$ sudo apt install penguins-eggs
|
|
22
|
-
$ sudo dpkg -i penguins-eggs_10.0.
|
|
22
|
+
$ sudo dpkg -i penguins-eggs_10.0.36-1_amd64.deb
|
|
23
23
|
</code></pre>
|
|
24
24
|
<p>Manjaro</p>
|
|
25
25
|
<pre><code>$ sudo pamac install penguins-eggs
|
|
@@ -27,7 +27,7 @@ $ sudo dpkg -i penguins-eggs_10.0.33-1_i386.deb
|
|
|
27
27
|
<h1>USAGE</h1>
|
|
28
28
|
<pre><code>$ eggs (-v|--version|version)
|
|
29
29
|
|
|
30
|
-
penguins-eggs/10.0.
|
|
30
|
+
penguins-eggs/10.0.36
|
|
31
31
|
$ eggs --help [COMMAND]
|
|
32
32
|
|
|
33
33
|
USAGE
|