penguins-eggs 25.11.12 → 25.11.21
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 +149 -140
- package/README.md +726 -1
- package/README.pdf +1343 -2331
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +0 -0
- package/addons/eggs/pve/applications/eggs-pve.desktop +0 -0
- package/addons/eggs/rsupport/applications/eggs-rsupport.desktop +0 -0
- package/addons/eggs/theme/applications/install-system.desktop +0 -0
- package/assets/calamares/install-system.sh +0 -0
- package/assets/penguins-eggs.desktop +0 -0
- package/assets/penguins-krill.desktop +0 -0
- package/assets/penguins-links-add.desktop +0 -0
- package/assets/penguins-live-installer.desktop +0 -0
- package/bin/dev.js +0 -0
- package/conf/distros/alpine/calamares/calamares-modules/machineid-openrc/machineid-openrc.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/fedora/calamares/calamares-modules/bootloaderspecification/bootloaderspecification.sh +0 -0
- package/conf/distros/focal/calamares/calamares-modules/.keepit +0 -0
- package/conf/distros/focal/calamares/calamares-modules/cleanup/cleanup.sh +20 -0
- package/conf/distros/focal/calamares/calamares-modules/cleanup/module.yml +9 -0
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk/module.yml +8 -0
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk/sources-yolk.sh +50 -0
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk-undo/module.yml +8 -0
- package/conf/distros/focal/calamares/libexec/.keepit +0 -0
- package/conf/distros/focal/calamares/libexec/README.md +5 -0
- package/conf/distros/focal/calamares/libexec/calamares-aptsources.sh +15 -0
- package/conf/distros/focal/calamares/libexec/calamares-l10n-helper.sh +38 -0
- package/conf/distros/focal/calamares/libexec/calamares-logs-helper.sh +34 -0
- package/conf/distros/focal/calamares/libexec/calamares-nomodeset.sh +19 -0
- package/conf/distros/focal/calamares/modules/after_bootloader_context.yml +26 -0
- package/conf/distros/focal/calamares/modules/before_bootloader_context.yml +12 -0
- package/conf/distros/focal/calamares/modules/bootloader.yml +86 -0
- package/conf/distros/focal/calamares/modules/bootloader.yml.old +35 -0
- package/conf/distros/focal/calamares/modules/displaymanager.yml +12 -0
- package/conf/distros/focal/calamares/modules/finished.yml +6 -0
- package/conf/distros/focal/calamares/modules/fstab.yml +63 -0
- package/conf/distros/focal/calamares/modules/grubcfg.yml +51 -0
- package/conf/distros/focal/calamares/modules/keyboard.yml +29 -0
- package/conf/distros/focal/calamares/modules/locale.yml +7 -0
- package/conf/distros/focal/calamares/modules/machineid.yml +10 -0
- package/conf/distros/focal/calamares/modules/mount.yml +20 -0
- package/conf/distros/focal/calamares/modules/netinstall.yml +5 -0
- package/conf/distros/focal/calamares/modules/packages.mustache +5 -0
- package/conf/distros/focal/calamares/modules/partition.yml +21 -0
- package/conf/distros/focal/calamares/modules/removeuser.mustache +3 -0
- package/conf/distros/focal/calamares/modules/shellprocess@aptsources.yml +11 -0
- package/conf/distros/focal/calamares/modules/shellprocess@boot_deploy.yml +9 -0
- package/conf/distros/focal/calamares/modules/shellprocess@boot_reconfigure.yml +15 -0
- package/conf/distros/focal/calamares/modules/shellprocess@install_translations.yml +8 -0
- package/conf/distros/focal/calamares/modules/shellprocess@logs.yml +8 -0
- package/conf/distros/focal/calamares/modules/shellprocess@mkinitramfs.yml +6 -0
- package/conf/distros/focal/calamares/modules/shellprocess@nomodeset.yml +12 -0
- package/conf/distros/focal/calamares/modules/umount.yml +4 -0
- package/conf/distros/focal/calamares/modules/unpackfs.mustache +6 -0
- package/conf/distros/focal/calamares/modules/users.yml +27 -0
- package/conf/distros/focal/calamares/modules/welcome.yml +24 -0
- package/conf/distros/focal/calamares/settings.yml +97 -0
- package/conf/distros/noble/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/noble/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-aptsources.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-l10n-helper.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-logs-helper.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-nomodeset.sh +0 -0
- package/conf/distros/opensuse/calamares/calamares-modules/bootloaderspecification/bootloaderspecification.sh +0 -0
- package/conf/distros/opensuse/calamares/settings.yml +0 -0
- package/conf/distros/opensuse/calamares/zstd2lzo.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/init/unattended.sh +0 -0
- package/dist/appimage/first-run-check.d.ts +8 -0
- package/dist/appimage/first-run-check.js +13 -0
- package/dist/appimage/prerequisites.d.ts +34 -0
- package/dist/appimage/prerequisites.js +350 -0
- package/dist/bin/dev.cmd +3 -0
- package/dist/bin/dev.js +6 -0
- package/dist/bin/run.cmd +3 -0
- package/dist/bin/run.js +5 -0
- package/dist/classes/cli-autologin.js +4 -4
- package/dist/classes/diversions.d.ts +5 -0
- package/dist/classes/diversions.js +23 -7
- package/dist/classes/pacman.js +10 -11
- package/dist/classes/utils.d.ts +4 -0
- package/dist/classes/utils.js +19 -3
- package/dist/commands/calamares.js +1 -1
- package/dist/commands/config.js +2 -2
- package/dist/commands/{analyze.d.ts → export/appimage.d.ts} +10 -9
- package/dist/commands/export/appimage.js +76 -0
- package/dist/commands/export/iso.js +1 -1
- package/dist/commands/export/pkg.d.ts +1 -1
- package/dist/commands/export/pkg.js +2 -2
- package/dist/commands/{install.d.ts → krill.d.ts} +3 -4
- package/dist/commands/{install.js → krill.js} +5 -6
- package/dist/commands/produce.js +1 -1
- package/dist/commands/setup.d.ts +21 -0
- package/dist/commands/setup.js +90 -0
- package/dist/commands/tools/repo.d.ts +0 -5
- package/dist/commands/tools/repo.js +205 -127
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.js +68 -59
- package/dist/krill/components/information.js +2 -2
- package/dist/krill/components/title.js +13 -13
- package/dist/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +24 -32
- package/dracut/create-symlink +0 -0
- package/dracut/export +0 -0
- package/dracut/export-dracut-analysis +0 -0
- package/dracut/export-dracut-log +0 -0
- package/dracut/mkisofs +0 -0
- package/dracut/modules.d/00debug-shell/debug-hook.sh +0 -0
- package/dracut/modules.d/00debug-shell/module-setup.sh +0 -0
- package/dracut/modules.d/90block/block-cmdline.sh +0 -0
- package/dracut/modules.d/90block/module-setup.sh +0 -0
- package/dracut/modules.d/95iso-scan/iso-scan-fallback.sh +0 -0
- package/dracut/modules.d/95iso-scan/iso-scan.sh +0 -0
- package/dracut/modules.d/95iso-scan/module-setup.sh +0 -0
- package/dracut/modules.d/95luks-loop/luks-loop.sh +0 -0
- package/dracut/modules.d/95luks-loop/module-setup.sh +0 -0
- package/dracut/renew-initramfs +0 -0
- package/dracut/sbin2bin +0 -0
- package/dracut/update-dracut-conf-d +0 -0
- package/dracut/update-dracut-modules +0 -0
- package/eui/eui-autostart-cinnamon.desktop +0 -0
- package/eui/eui-autostart-xfce.desktop +0 -0
- package/eui/eui-create-image.sh +0 -0
- package/eui/eui-start.sh +0 -0
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +582 -9
- package/package.json +125 -130
- package/perrisbrewery/scripts/postinst +0 -0
- package/perrisbrewery/scripts/postrm +0 -0
- package/perrisbrewery/scripts/preinst +0 -0
- package/perrisbrewery/scripts/prerm +0 -0
- package/perrisbrewery/template/dependencies.yaml +0 -5
- package/perrisbrewery/template/man.template.md +7 -0
- package/scripts/99clean +0 -0
- package/scripts/_eggs +28 -47
- package/scripts/adapt.sh +0 -0
- package/scripts/appimage-build.sh +152 -0
- package/scripts/appimage-install.sh +43 -0
- package/scripts/bros/waydroid-helper.sh +0 -0
- package/scripts/eggs.bash +3 -4
- package/scripts/lsb_release +0 -0
- package/scripts/mom.sh +0 -0
- package/scripts/pve-live.service +0 -0
- package/scripts/pve-live.sh +0 -0
- package/scripts/resy +0 -0
- package/dist/commands/analyze.js +0 -95
- package/dist/commands/pods.d.ts +0 -22
- package/dist/commands/pods.js +0 -92
- package/scripts/boot-encrypted-root.sh +0 -220
- package/scripts/mount-encrypted-home.sh +0 -324
|
@@ -125,8 +125,8 @@ export default async function information(verbose = false) {
|
|
|
125
125
|
React.createElement(Text, null, " ")),
|
|
126
126
|
React.createElement(Box, { borderStyle: "round", marginRight: 2, flexDirection: "column" },
|
|
127
127
|
React.createElement(Box, null,
|
|
128
|
-
React.createElement(Text, { color: "cyan" }, "eggs
|
|
129
|
-
React.createElement(Text, null, " install your CLI
|
|
128
|
+
React.createElement(Text, { color: "cyan" }, "eggs krill"),
|
|
129
|
+
React.createElement(Text, null, " install your CLI system with TUI installer krill, on GUI use calamares")),
|
|
130
130
|
React.createElement(Box, null,
|
|
131
131
|
React.createElement(Text, { color: "cyan" }, "eggs wardrobe"),
|
|
132
132
|
React.createElement(Text, null, " build your personal system starting from cli")),
|
|
@@ -9,13 +9,19 @@ import React from 'react';
|
|
|
9
9
|
import { Text, Box, Newline } from 'ink';
|
|
10
10
|
// pjson
|
|
11
11
|
import { createRequire } from 'module';
|
|
12
|
+
import Utils from '../../classes/utils.js';
|
|
12
13
|
const require = createRequire(import.meta.url);
|
|
13
14
|
const pjson = require('../../../package.json');
|
|
14
15
|
export default function Title({ title = "", version = "" }) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
let type = "";
|
|
17
|
+
if (Utils.isAppImage()) {
|
|
18
|
+
type = "AppImage:";
|
|
19
|
+
}
|
|
20
|
+
if (title === "")
|
|
21
|
+
title = `${pjson.name}`;
|
|
22
|
+
let green = ` ${type} ${title}`.padEnd(25, " ");
|
|
23
|
+
let white = ` Perri's brewery edition `.padEnd(25, " ");
|
|
24
|
+
let red = ` v${pjson.version} `.padStart(25, " ");
|
|
19
25
|
return (React.createElement(React.Fragment, null,
|
|
20
26
|
React.createElement(Box, { flexDirection: "column" },
|
|
21
27
|
React.createElement(Box, null),
|
|
@@ -23,13 +29,7 @@ export default function Title({ title = "", version = "" }) {
|
|
|
23
29
|
React.createElement(Text, null, "E G G S: reproductive system of penguins")),
|
|
24
30
|
React.createElement(Newline, null)),
|
|
25
31
|
React.createElement(Box, { flexDirection: "row" },
|
|
26
|
-
React.createElement(Text, { backgroundColor: "green" },
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
" "),
|
|
30
|
-
React.createElement(Text, { backgroundColor: "white", color: "blue" }, " Perri's brewery edition "),
|
|
31
|
-
React.createElement(Text, { backgroundColor: "red" },
|
|
32
|
-
" ver. ",
|
|
33
|
-
version,
|
|
34
|
-
" "))));
|
|
32
|
+
React.createElement(Text, { backgroundColor: "green" }, green),
|
|
33
|
+
React.createElement(Text, { backgroundColor: "white", color: "blue" }, white),
|
|
34
|
+
React.createElement(Text, { backgroundColor: "red" }, red))));
|
|
35
35
|
}
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -5,6 +5,22 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Executes shell command as it would happen in BASH script
|
|
10
|
+
* @param {string} command
|
|
11
|
+
* @param {Object} [options] Object with options.
|
|
12
|
+
* echo: true, to echo command passed.
|
|
13
|
+
* ignore: true to ignore stdout
|
|
14
|
+
* capture: true, to capture and return stdout.
|
|
15
|
+
*
|
|
16
|
+
* @returns {Promise<{code: number, data: string | undefined, error: Object}>}
|
|
17
|
+
*
|
|
18
|
+
* https://github.com/oclif/core/issues/453#issuecomment-1200778612
|
|
19
|
+
* codespool:
|
|
20
|
+
* You could wrap spawn in a promise, listen to exit event, and resolve when it happens. That should play nicely with oclif/core.
|
|
21
|
+
* We are using it here:
|
|
22
|
+
* https://github.com/AstarNetwork/swanky-cli/blob/master/src/commands/compile/index.ts
|
|
23
|
+
*/
|
|
8
24
|
import { IExec } from '../interfaces/index.js';
|
|
9
25
|
/**
|
|
10
26
|
*
|
package/dist/lib/utils.js
CHANGED
|
@@ -5,23 +5,7 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
* Executes shell command as it would happen in BASH script
|
|
10
|
-
* @param {string} command
|
|
11
|
-
* @param {Object} [options] Object with options.
|
|
12
|
-
* echo: true, to echo command passed.
|
|
13
|
-
* ignore: true to ignore stdout
|
|
14
|
-
* capture: true, to capture and return stdout.
|
|
15
|
-
*
|
|
16
|
-
* @returns {Promise<{code: number, data: string | undefined, error: Object}>}
|
|
17
|
-
*
|
|
18
|
-
* https://github.com/oclif/core/issues/453#issuecomment-1200778612
|
|
19
|
-
* codespool:
|
|
20
|
-
* You could wrap spawn in a promise, listen to exit event, and resolve when it happens. That should play nicely with oclif/core.
|
|
21
|
-
* We are using it here:
|
|
22
|
-
* https://github.com/AstarNetwork/swanky-cli/blob/master/src/commands/compile/index.ts
|
|
23
|
-
*/
|
|
24
|
-
import { spawn } from 'node:child_process';
|
|
8
|
+
import { spawn } from 'child_process';
|
|
25
9
|
/**
|
|
26
10
|
*
|
|
27
11
|
* @param command
|
|
@@ -29,37 +13,45 @@ import { spawn } from 'node:child_process';
|
|
|
29
13
|
* @returns
|
|
30
14
|
*/
|
|
31
15
|
export async function exec(command, { echo = false, ignore = false, capture = false } = {}) {
|
|
32
|
-
/**
|
|
33
|
-
* You could wrap spawn in a promise,
|
|
34
|
-
* listen to exit event,
|
|
35
|
-
* and resolve when it happens.
|
|
36
|
-
*
|
|
37
|
-
* That should play nicely with oclif/core.
|
|
38
|
-
*/
|
|
39
16
|
return new Promise((resolve, reject) => {
|
|
40
17
|
if (echo) {
|
|
41
|
-
// seem no need!
|
|
42
18
|
console.log(command);
|
|
43
19
|
}
|
|
44
|
-
|
|
20
|
+
// Opzioni di base per spawn
|
|
21
|
+
const spawnOptions = {
|
|
45
22
|
stdio: ignore ? 'ignore' : capture ? 'pipe' : 'inherit'
|
|
46
|
-
}
|
|
23
|
+
};
|
|
24
|
+
// AppImage Detected
|
|
25
|
+
if (process.env.APPIMAGE) {
|
|
26
|
+
// Clona l'ambiente attuale
|
|
27
|
+
const env = { ...process.env };
|
|
28
|
+
// 1. Rimuovi le variabili che causano conflitti di librerie (Kernel Panic)
|
|
29
|
+
delete env.LD_LIBRARY_PATH;
|
|
30
|
+
delete env.LD_PRELOAD;
|
|
31
|
+
delete env.GSETTINGS_SCHEMA_DIR;
|
|
32
|
+
delete env.PYTHONPATH;
|
|
33
|
+
delete env.MANPATH;
|
|
34
|
+
// 2. FORZA IL PATH DI SISTEMA
|
|
35
|
+
env.PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin';
|
|
36
|
+
// Applica l'ambiente pulito alle opzioni di spawn
|
|
37
|
+
spawnOptions.env = env;
|
|
38
|
+
// (Opzionale) Debug visivo per essere sicuri che stia funzionando
|
|
39
|
+
if (echo) {
|
|
40
|
+
console.log(' [AppImage Detected] Environment sanitized for system command.');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const child = spawn('bash', ['-c', command], spawnOptions);
|
|
47
44
|
let stdout = '';
|
|
48
45
|
if (capture) {
|
|
49
46
|
child.stdout?.on('data', (data) => {
|
|
50
47
|
stdout += data;
|
|
51
48
|
});
|
|
52
49
|
}
|
|
53
|
-
// 'error' event
|
|
54
50
|
child.on('error', (error) => {
|
|
55
51
|
reject({ code: 1, error });
|
|
56
52
|
});
|
|
57
|
-
// The 'exit' event is emitted after the child process ends. If the process exited, code is the final exit code of the process,
|
|
58
|
-
// otherwise null. If the process terminated due to receipt of a signal, signal is the string name of the signal, otherwise null.
|
|
59
|
-
// One of the two will always be non-null.
|
|
60
53
|
child.on('exit', (code) => {
|
|
61
54
|
resolve({ code, data: stdout });
|
|
62
55
|
});
|
|
63
|
-
// end promise
|
|
64
56
|
});
|
|
65
57
|
}
|
package/dracut/create-symlink
CHANGED
|
File without changes
|
package/dracut/export
CHANGED
|
File without changes
|
|
File without changes
|
package/dracut/export-dracut-log
CHANGED
|
File without changes
|
package/dracut/mkisofs
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dracut/renew-initramfs
CHANGED
|
File without changes
|
package/dracut/sbin2bin
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/eui/eui-create-image.sh
CHANGED
|
File without changes
|
package/eui/eui-start.sh
CHANGED
|
File without changes
|
|
Binary file
|