penguins-eggs 9.3.26 → 9.3.28
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/conf/derivatives.yaml +7 -0
- package/dist/classes/bleach.js +26 -24
- package/dist/classes/compressors.js +7 -5
- package/dist/classes/daddy.js +38 -36
- package/dist/classes/distro.js +30 -27
- package/dist/classes/family/archlinux.js +21 -19
- package/dist/classes/family/debian.js +33 -31
- package/dist/classes/family/fedora.js +19 -17
- package/dist/classes/family/suse.js +19 -17
- package/dist/classes/incubation/branding.js +8 -6
- package/dist/classes/incubation/distros/bionic.js +5 -3
- package/dist/classes/incubation/distros/buster.js +5 -3
- package/dist/classes/incubation/distros/focal.js +5 -3
- package/dist/classes/incubation/distros/jessie.js +6 -4
- package/dist/classes/incubation/distros/rolling.js +9 -7
- package/dist/classes/incubation/fisherman-helper/displaymanager.js +5 -3
- package/dist/classes/incubation/fisherman-helper/packages.js +17 -15
- package/dist/classes/incubation/fisherman.js +19 -19
- package/dist/classes/incubation/incubator.js +37 -35
- package/dist/classes/incubation/installer.js +8 -6
- package/dist/classes/initrd.js +5 -3
- package/dist/classes/keyboards.js +25 -23
- package/dist/classes/locales.js +19 -17
- package/dist/classes/n8.js +4 -2
- package/dist/classes/network.js +9 -9
- package/dist/classes/ovary.js +280 -281
- package/dist/classes/pacman.js +128 -128
- package/dist/classes/pve-live.js +7 -5
- package/dist/classes/pxe.js +141 -138
- package/dist/classes/settings.js +34 -32
- package/dist/classes/sources_list.js +31 -31
- package/dist/classes/systemctl.js +16 -14
- package/dist/classes/tailor.js +255 -262
- package/dist/classes/tools.js +7 -5
- package/dist/classes/users.js +30 -28
- package/dist/classes/utils.js +22 -20
- package/dist/classes/xdg.js +60 -58
- package/dist/classes/yolk.js +33 -33
- package/dist/commands/adapt.js +14 -12
- package/dist/commands/analyze.js +48 -15
- package/dist/commands/calamares.js +28 -26
- package/dist/commands/config.js +77 -79
- package/dist/commands/cuckoo.js +19 -17
- package/dist/commands/dad.js +16 -14
- package/dist/commands/export/deb.js +19 -17
- package/dist/commands/export/iso.js +17 -15
- package/dist/commands/install.js +31 -29
- package/dist/commands/kill.js +17 -15
- package/dist/commands/mom.js +11 -9
- package/dist/commands/produce.js +30 -28
- package/dist/commands/status.js +7 -5
- package/dist/commands/syncfrom.js +41 -41
- package/dist/commands/syncto.js +77 -80
- package/dist/commands/tools/clean.js +13 -11
- package/dist/commands/tools/ppa.js +26 -24
- package/dist/commands/tools/skel.js +18 -16
- package/dist/commands/tools/stat.js +12 -10
- package/dist/commands/tools/yolk.js +13 -11
- package/dist/commands/update.js +29 -27
- package/dist/commands/wardrobe/get.js +14 -12
- package/dist/commands/wardrobe/list.js +25 -23
- package/dist/commands/wardrobe/show.js +25 -23
- package/dist/commands/wardrobe/wear.js +24 -22
- package/dist/components/elements/information.js +21 -19
- package/dist/components/elements/steps.js +4 -2
- package/dist/components/elements/title.js +4 -2
- package/dist/components/finished.js +10 -8
- package/dist/components/install.js +10 -8
- package/dist/components/keyboard.js +10 -8
- package/dist/components/location.js +10 -8
- package/dist/components/network.js +10 -8
- package/dist/components/partitions.js +10 -8
- package/dist/components/summary.js +10 -8
- package/dist/components/users.js +33 -8
- package/dist/components/welcome.js +10 -8
- package/dist/interfaces/i-packages.js +1 -1
- package/dist/interfaces/i-pxe.js +39 -0
- package/dist/krill/krill-prepare.js +92 -90
- package/dist/krill/krill-sequence.js +148 -145
- package/dist/krill/modules/add-user.js +11 -9
- package/dist/krill/modules/bootloader-config-ubuntu.js +25 -23
- package/dist/krill/modules/bootloader.js +11 -9
- package/dist/krill/modules/change-password.js +2 -2
- package/dist/krill/modules/del-live-user.js +8 -6
- package/dist/krill/modules/fstab.js +35 -33
- package/dist/krill/modules/grubcfg.js +8 -6
- package/dist/krill/modules/hostname.js +19 -17
- package/dist/krill/modules/initramfs-cfg.js +6 -4
- package/dist/krill/modules/initramfs.js +17 -15
- package/dist/krill/modules/locale-cfg.js +12 -10
- package/dist/krill/modules/locale.js +13 -11
- package/dist/krill/modules/m-keyboard.js +33 -31
- package/dist/krill/modules/m-timezone.js +7 -5
- package/dist/krill/modules/machine-id.js +8 -6
- package/dist/krill/modules/mkfs.js +7 -7
- package/dist/krill/modules/mount-fs.js +22 -22
- package/dist/krill/modules/mount-vfs.js +12 -12
- package/dist/krill/modules/network-cfg.js +21 -21
- package/dist/krill/modules/packages.js +20 -18
- package/dist/krill/modules/partition.js +148 -139
- package/dist/krill/modules/remove-installer-link.js +5 -3
- package/dist/krill/modules/umount.js +9 -7
- package/dist/krill/modules/unpackfs.js +8 -6
- package/dist/lib/cli-autologin.js +163 -163
- package/dist/lib/dependencies.js +10 -10
- package/dist/lib/get_address.js +6 -4
- package/dist/lib/get_dns.js +6 -4
- package/dist/lib/get_domain.js +6 -4
- package/dist/lib/get_gateway.js +6 -4
- package/dist/lib/get_hostname.js +6 -4
- package/dist/lib/get_netmask.js +6 -4
- package/dist/lib/get_password.js +8 -6
- package/dist/lib/get_root_password.js +7 -5
- package/dist/lib/get_userfullname.js +6 -4
- package/dist/lib/get_username.js +6 -4
- package/dist/lib/select_address_type.js +6 -4
- package/dist/lib/select_filesystem_type.js +8 -6
- package/dist/lib/select_installation_device.js +7 -5
- package/dist/lib/select_installation_mode.js +6 -4
- package/dist/lib/select_interface.js +6 -4
- package/dist/lib/select_keyboard_layout.js +10 -8
- package/dist/lib/select_keyboard_model.js +10 -8
- package/dist/lib/select_keyboard_option.js +10 -8
- package/dist/lib/select_keyboard_variant.js +10 -8
- package/dist/lib/select_languages.js +9 -7
- package/dist/lib/select_regions.js +6 -4
- package/dist/lib/select_user_swap_choice.js +8 -6
- package/dist/lib/select_zones.js +12 -10
- package/dist/lib/utils.js +3 -3
- package/package.json +12 -5
- package/dist/dhcpd/dhcpd.js +0 -222
- package/dist/dhcpd/index.js +0 -7
- package/dist/dhcpd/packet/converters.js +0 -377
- package/dist/dhcpd/packet/options.js +0 -2
- package/dist/dhcpd/packet/types.js +0 -2
- package/dist/dhcpd/packet.js +0 -251
- package/dist/dhcpd/proxy.js +0 -152
- package/dist/dhcpd/server.js +0 -152
- package/dist/dhcpd/sprintf.js +0 -170
- package/dist/dhcpd/utils.js +0 -190
- package/dist/interfaces/i-pxe-options.js +0 -2
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const utils_2 = require("../../lib/utils");
|
|
12
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
|
+
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
+
const utils_js_1 = __importDefault(require("../utils.js"));
|
|
15
|
+
const pacman_js_1 = __importDefault(require("../pacman.js"));
|
|
16
|
+
const dependencies_js_1 = require("../../lib/dependencies.js");
|
|
17
|
+
const utils_js_2 = require("../../lib/utils.js");
|
|
16
18
|
/**
|
|
17
19
|
* Utils: general porpourse utils
|
|
18
20
|
* @remarks all the utilities
|
|
@@ -61,10 +63,10 @@ class Archlinux {
|
|
|
61
63
|
*
|
|
62
64
|
*/
|
|
63
65
|
static async prerequisitesInstall(verbose = true) {
|
|
64
|
-
const echo =
|
|
66
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
65
67
|
const retVal = false;
|
|
66
|
-
await (0,
|
|
67
|
-
if (!
|
|
68
|
+
await (0, utils_js_2.exec)(`pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
69
|
+
if (!pacman_js_1.default.isInstalledGui()) {
|
|
68
70
|
/**
|
|
69
71
|
* live-config-getty-generator
|
|
70
72
|
*
|
|
@@ -77,7 +79,7 @@ class Archlinux {
|
|
|
77
79
|
*/
|
|
78
80
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
79
81
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
80
|
-
await (0,
|
|
82
|
+
await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
return retVal;
|
|
@@ -100,13 +102,13 @@ class Archlinux {
|
|
|
100
102
|
*/
|
|
101
103
|
static async calamaresInstall(verbose = false) {
|
|
102
104
|
verbose = true; // serve per pacman
|
|
103
|
-
const echo =
|
|
104
|
-
|
|
105
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
106
|
+
const cmd = `pacman -Sy --noconfirm ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`;
|
|
105
107
|
try {
|
|
106
|
-
await (0,
|
|
108
|
+
await (0, utils_js_2.exec)(cmd, echo);
|
|
107
109
|
}
|
|
108
110
|
catch {
|
|
109
|
-
|
|
111
|
+
utils_js_1.default.error(`Archlinux.calamaresInstall(): ${cmd}`); // + e.error)
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
114
|
/**
|
|
@@ -114,19 +116,19 @@ class Archlinux {
|
|
|
114
116
|
*/
|
|
115
117
|
static async calamaresPolicies() {
|
|
116
118
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
117
|
-
await (0,
|
|
119
|
+
await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
*
|
|
121
123
|
*/
|
|
122
124
|
static async calamaresRemove(verbose = true) {
|
|
123
125
|
verbose = true; // serve per pacman
|
|
124
|
-
const echo =
|
|
126
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
125
127
|
const retVal = false;
|
|
126
128
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
127
|
-
await (0,
|
|
129
|
+
await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
|
|
128
130
|
}
|
|
129
|
-
await (0,
|
|
131
|
+
await (0, utils_js_2.exec)('yay -Rns calamares', echo);
|
|
130
132
|
return retVal;
|
|
131
133
|
}
|
|
132
134
|
/**
|
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const dependencies_1 = require("../../lib/dependencies");
|
|
12
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
|
+
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
+
const utils_js_1 = __importDefault(require("../utils.js"));
|
|
15
|
+
const pacman_js_1 = __importDefault(require("../pacman.js"));
|
|
16
|
+
const utils_js_2 = require("../../lib/utils.js");
|
|
17
|
+
const dependencies_js_1 = require("../../lib/dependencies.js");
|
|
16
18
|
/**
|
|
17
19
|
* Utils: general porpourse utils
|
|
18
20
|
* @remarks all the utilities
|
|
@@ -23,14 +25,14 @@ class Debian {
|
|
|
23
25
|
* @returns true if xorg is installed
|
|
24
26
|
*/
|
|
25
27
|
static isInstalledXorg() {
|
|
26
|
-
|
|
28
|
+
const test = 'xserver-xorg-core';
|
|
27
29
|
// if (Pacman.distro().codenameLikeId === 'bionic') {
|
|
28
30
|
/*
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
* BUT_ on Ubuntu bionic we have:
|
|
32
|
+
* xserver-xorg-core-hwe-18.04
|
|
33
|
+
*/
|
|
32
34
|
// test = 'xserver-xorg-core-hwe-18.04'
|
|
33
|
-
//}
|
|
35
|
+
// }
|
|
34
36
|
return this.packageIsInstalled(test);
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
@@ -47,7 +49,7 @@ class Debian {
|
|
|
47
49
|
let packages = [];
|
|
48
50
|
const toInstall = [];
|
|
49
51
|
const toRemove = [];
|
|
50
|
-
for (const elem of
|
|
52
|
+
for (const elem of dependencies_js_1.depCommon) {
|
|
51
53
|
if (!this.packageIsInstalled(elem)) {
|
|
52
54
|
toInstall.push(elem);
|
|
53
55
|
}
|
|
@@ -55,8 +57,8 @@ class Debian {
|
|
|
55
57
|
toRemove.push(elem);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
const arch =
|
|
59
|
-
for (const dep of
|
|
60
|
+
const arch = utils_js_1.default.machineArch();
|
|
61
|
+
for (const dep of dependencies_js_1.depArch) {
|
|
60
62
|
if (dep.arch.includes(arch)) {
|
|
61
63
|
if (!this.packageIsInstalled(dep.package)) {
|
|
62
64
|
toInstall.push(dep.package);
|
|
@@ -67,7 +69,7 @@ class Debian {
|
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
const initType = shelljs_1.default.exec('ps --no-headers -o comm 1', { silent: !verbose }).trim();
|
|
70
|
-
for (const dep of
|
|
72
|
+
for (const dep of dependencies_js_1.depInit) {
|
|
71
73
|
if (dep.init.includes(initType)) {
|
|
72
74
|
if (!this.packageIsInstalled(dep.package)) {
|
|
73
75
|
toInstall.push(dep.package);
|
|
@@ -87,10 +89,10 @@ class Debian {
|
|
|
87
89
|
*
|
|
88
90
|
*/
|
|
89
91
|
static async prerequisitesInstall(verbose = true) {
|
|
90
|
-
const echo =
|
|
92
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
91
93
|
const retVal = false;
|
|
92
|
-
await (0,
|
|
93
|
-
if (!
|
|
94
|
+
await (0, utils_js_2.exec)(`apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
95
|
+
if (!pacman_js_1.default.isInstalledGui()) {
|
|
94
96
|
/**
|
|
95
97
|
* live-config-getty-generator
|
|
96
98
|
*
|
|
@@ -103,7 +105,7 @@ class Debian {
|
|
|
103
105
|
*/
|
|
104
106
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
105
107
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
106
|
-
await (0,
|
|
108
|
+
await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
return retVal;
|
|
@@ -126,24 +128,24 @@ class Debian {
|
|
|
126
128
|
*/
|
|
127
129
|
static async liveInstallerPolicies() {
|
|
128
130
|
const policyFile = '/usr/share/polkit-1/actions/com.github.pieroproietti.penguins-eggs.policy';
|
|
129
|
-
await (0,
|
|
131
|
+
await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
130
132
|
}
|
|
131
133
|
/**
|
|
132
134
|
*
|
|
133
135
|
*/
|
|
134
136
|
static async calamaresInstall(verbose = true) {
|
|
135
|
-
const echo =
|
|
137
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
136
138
|
try {
|
|
137
|
-
await (0,
|
|
139
|
+
await (0, utils_js_2.exec)('apt-get update --yes', echo);
|
|
138
140
|
}
|
|
139
141
|
catch {
|
|
140
|
-
|
|
142
|
+
utils_js_1.default.error('Debian.calamaresInstall() apt-get update --yes '); // + e.error as string)
|
|
141
143
|
}
|
|
142
144
|
try {
|
|
143
|
-
await (0,
|
|
145
|
+
await (0, utils_js_2.exec)(`apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.debs4calamares)}`, echo);
|
|
144
146
|
}
|
|
145
147
|
catch {
|
|
146
|
-
|
|
148
|
+
utils_js_1.default.error(`Debian.calamaresInstall() apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.debs4calamares)}`); // + e.error)
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
151
|
/**
|
|
@@ -151,19 +153,19 @@ class Debian {
|
|
|
151
153
|
*/
|
|
152
154
|
static async calamaresPolicies() {
|
|
153
155
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
154
|
-
await (0,
|
|
156
|
+
await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
155
157
|
}
|
|
156
158
|
/**
|
|
157
159
|
*
|
|
158
160
|
*/
|
|
159
161
|
static async calamaresRemove(verbose = true) {
|
|
160
|
-
const echo =
|
|
162
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
161
163
|
const retVal = false;
|
|
162
164
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
163
|
-
await (0,
|
|
165
|
+
await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
|
|
164
166
|
}
|
|
165
|
-
await (0,
|
|
166
|
-
await (0,
|
|
167
|
+
await (0, utils_js_2.exec)('apt-get remove --purge --yes calamares', echo);
|
|
168
|
+
await (0, utils_js_2.exec)('apt-get autoremove --yes', echo);
|
|
167
169
|
return retVal;
|
|
168
170
|
}
|
|
169
171
|
/**
|
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const utils_2 = require("../../lib/utils");
|
|
12
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
|
+
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
+
const utils_js_1 = __importDefault(require("../utils.js"));
|
|
15
|
+
const pacman_js_1 = __importDefault(require("../pacman.js"));
|
|
16
|
+
const dependencies_js_1 = require("../../lib/dependencies.js");
|
|
17
|
+
const utils_js_2 = require("../../lib/utils.js");
|
|
16
18
|
/**
|
|
17
19
|
* Utils: general porpourse utils
|
|
18
20
|
* @remarks all the utilities
|
|
@@ -57,10 +59,10 @@ class Fedora {
|
|
|
57
59
|
*
|
|
58
60
|
*/
|
|
59
61
|
static async prerequisitesInstall(verbose = true) {
|
|
60
|
-
const echo =
|
|
62
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
61
63
|
const retVal = false;
|
|
62
|
-
await (0,
|
|
63
|
-
if (!
|
|
64
|
+
await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
65
|
+
if (!pacman_js_1.default.isInstalledGui()) {
|
|
64
66
|
/**
|
|
65
67
|
* live-config-getty-generator
|
|
66
68
|
*
|
|
@@ -73,7 +75,7 @@ class Fedora {
|
|
|
73
75
|
*/
|
|
74
76
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
75
77
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
76
|
-
await (0,
|
|
78
|
+
await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
return retVal;
|
|
@@ -95,12 +97,12 @@ class Fedora {
|
|
|
95
97
|
*
|
|
96
98
|
*/
|
|
97
99
|
static async calamaresInstall(verbose = true) {
|
|
98
|
-
const echo =
|
|
100
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
99
101
|
try {
|
|
100
|
-
await (0,
|
|
102
|
+
await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`, echo);
|
|
101
103
|
}
|
|
102
104
|
catch {
|
|
103
|
-
|
|
105
|
+
utils_js_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`); // + e.error)
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
/**
|
|
@@ -117,12 +119,12 @@ class Fedora {
|
|
|
117
119
|
*
|
|
118
120
|
*/
|
|
119
121
|
static async calamaresRemove(verbose = true) {
|
|
120
|
-
const echo =
|
|
122
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
121
123
|
const retVal = false;
|
|
122
124
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
123
|
-
await (0,
|
|
125
|
+
await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
|
|
124
126
|
}
|
|
125
|
-
await (0,
|
|
127
|
+
await (0, utils_js_2.exec)('yay -Rns calamares', echo);
|
|
126
128
|
return retVal;
|
|
127
129
|
}
|
|
128
130
|
/**
|
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const utils_2 = require("../../lib/utils");
|
|
12
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
|
+
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
+
const utils_js_1 = __importDefault(require("../utils.js"));
|
|
15
|
+
const pacman_js_1 = __importDefault(require("../pacman.js"));
|
|
16
|
+
const dependencies_js_1 = require("../../lib/dependencies.js");
|
|
17
|
+
const utils_js_2 = require("../../lib/utils.js");
|
|
16
18
|
/**
|
|
17
19
|
* Utils: general porpourse utils
|
|
18
20
|
* @remarks all the utilities
|
|
@@ -57,10 +59,10 @@ class Suse {
|
|
|
57
59
|
*
|
|
58
60
|
*/
|
|
59
61
|
static async prerequisitesInstall(verbose = true) {
|
|
60
|
-
const echo =
|
|
62
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
61
63
|
const retVal = false;
|
|
62
|
-
await (0,
|
|
63
|
-
if (!
|
|
64
|
+
await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
65
|
+
if (!pacman_js_1.default.isInstalledGui()) {
|
|
64
66
|
/**
|
|
65
67
|
* live-config-getty-generator
|
|
66
68
|
*
|
|
@@ -73,7 +75,7 @@ class Suse {
|
|
|
73
75
|
*/
|
|
74
76
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
75
77
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
76
|
-
await (0,
|
|
78
|
+
await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
return retVal;
|
|
@@ -95,12 +97,12 @@ class Suse {
|
|
|
95
97
|
*
|
|
96
98
|
*/
|
|
97
99
|
static async calamaresInstall(verbose = true) {
|
|
98
|
-
const echo =
|
|
100
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
99
101
|
try {
|
|
100
|
-
await (0,
|
|
102
|
+
await (0, utils_js_2.exec)(`zypper install ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`, echo);
|
|
101
103
|
}
|
|
102
104
|
catch {
|
|
103
|
-
|
|
105
|
+
utils_js_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`); // + e.error)
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
/**
|
|
@@ -117,12 +119,12 @@ class Suse {
|
|
|
117
119
|
*
|
|
118
120
|
*/
|
|
119
121
|
static async calamaresRemove(verbose = true) {
|
|
120
|
-
const echo =
|
|
122
|
+
const echo = utils_js_1.default.setEcho(verbose);
|
|
121
123
|
const retVal = false;
|
|
122
124
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
123
|
-
await (0,
|
|
125
|
+
await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
|
|
124
126
|
}
|
|
125
|
-
await (0,
|
|
127
|
+
await (0, utils_js_2.exec)('zypper remove calamares', echo);
|
|
126
128
|
return retVal;
|
|
127
129
|
}
|
|
128
130
|
/**
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.branding = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
7
|
/**
|
|
6
8
|
* penguins-eggs: buster/branding.ts
|
|
7
9
|
*
|
|
8
10
|
* author: Piero Proietti
|
|
9
11
|
* mail: piero.proietti@gmail.com
|
|
10
12
|
*/
|
|
11
|
-
const js_yaml_1 =
|
|
13
|
+
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @param remix
|
|
@@ -65,20 +67,20 @@ function branding(remix, distro, theme = '', verbose = false) {
|
|
|
65
67
|
productUrl: productUrl,
|
|
66
68
|
supportUrl: supportUrl,
|
|
67
69
|
bugReportUrl: bugReportUrl,
|
|
68
|
-
releaseNotesUrl: releaseNotesUrl
|
|
70
|
+
releaseNotesUrl: releaseNotesUrl,
|
|
69
71
|
},
|
|
70
72
|
images: {
|
|
71
73
|
productLogo: productLogo,
|
|
72
74
|
productIcon: productIcon,
|
|
73
|
-
productWelcome: productWelcome
|
|
75
|
+
productWelcome: productWelcome,
|
|
74
76
|
},
|
|
75
77
|
slideshowAPI: 1,
|
|
76
78
|
slideshow: slideshow,
|
|
77
79
|
style: {
|
|
78
80
|
sidebarBackground: '#2c3133',
|
|
79
81
|
sidebarText: '#FFFFFF',
|
|
80
|
-
sidebarTextSelect: '#4d7079'
|
|
81
|
-
}
|
|
82
|
+
sidebarTextSelect: '#4d7079',
|
|
83
|
+
},
|
|
82
84
|
};
|
|
83
85
|
return js_yaml_1.default.dump(branding);
|
|
84
86
|
}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* author: Piero Proietti
|
|
6
6
|
* mail: piero.proietti@gmail.com
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.Bionic = void 0;
|
|
10
|
-
const
|
|
11
|
-
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
13
|
+
const fisherman_js_1 = __importDefault(require("../fisherman.js"));
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
*/
|
|
@@ -34,7 +36,7 @@ class Bionic {
|
|
|
34
36
|
* locale, partitions, users can come from themes
|
|
35
37
|
*/
|
|
36
38
|
async create() {
|
|
37
|
-
const fisherman = new
|
|
39
|
+
const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
|
|
38
40
|
await fisherman.settings(this.remix.branding);
|
|
39
41
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
40
42
|
await fisherman.buildModule('mount');
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
* author: Piero Proietti
|
|
8
8
|
* mail: piero.proietti@gmail.com
|
|
9
9
|
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
10
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
14
|
exports.Buster = void 0;
|
|
12
|
-
const
|
|
13
|
-
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
15
|
+
const fisherman_js_1 = __importDefault(require("../fisherman.js"));
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
*/
|
|
@@ -37,7 +39,7 @@ class Buster {
|
|
|
37
39
|
* locale, partitions, users can come from themes
|
|
38
40
|
*/
|
|
39
41
|
async create() {
|
|
40
|
-
const fisherman = new
|
|
42
|
+
const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
|
|
41
43
|
await fisherman.settings(this.theme);
|
|
42
44
|
await fisherman.buildModule('partition', this.theme);
|
|
43
45
|
await fisherman.buildModule('mount');
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* author: Piero Proietti
|
|
6
6
|
* mail: piero.proietti@gmail.com
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.Focal = void 0;
|
|
10
|
-
const
|
|
11
|
-
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
13
|
+
const fisherman_js_1 = __importDefault(require("../fisherman.js"));
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
*/
|
|
@@ -35,7 +37,7 @@ class Focal {
|
|
|
35
37
|
* locale, partitions, users can come from themes
|
|
36
38
|
*/
|
|
37
39
|
async create() {
|
|
38
|
-
const fisherman = new
|
|
40
|
+
const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
|
|
39
41
|
await fisherman.settings(this.remix.branding);
|
|
40
42
|
await fisherman.buildModule('partition', this.theme);
|
|
41
43
|
await fisherman.buildModule('mount');
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
* author: Piero Proietti
|
|
8
8
|
* mail: piero.proietti@gmail.com
|
|
9
9
|
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
10
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
14
|
exports.Jessie = void 0;
|
|
12
|
-
const
|
|
13
|
-
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
15
|
+
const fisherman_js_1 = __importDefault(require("../fisherman.js"));
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
*/
|
|
@@ -30,13 +32,13 @@ class Jessie {
|
|
|
30
32
|
this.distro = distro;
|
|
31
33
|
this.user_opt = user_opt;
|
|
32
34
|
this.verbose = verbose;
|
|
33
|
-
this.release = release; // nel senso di --final
|
|
35
|
+
this.release = release; // nel senso di --final
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* partitions can come from themes
|
|
37
39
|
*/
|
|
38
40
|
async create() {
|
|
39
|
-
const fisherman = new
|
|
41
|
+
const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
|
|
40
42
|
await fisherman.settings(this.remix.branding);
|
|
41
43
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
42
44
|
await fisherman.buildCalamaresModule('sources-yolk', true);
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* author: Piero Proietti
|
|
8
8
|
* mail: piero.proietti@gmail.com
|
|
9
9
|
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
10
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
14
|
exports.Rolling = void 0;
|
|
12
|
-
const
|
|
13
|
-
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
15
|
+
const fisherman_js_1 = __importDefault(require("../fisherman.js"));
|
|
14
16
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
17
19
|
class Rolling {
|
|
18
20
|
/**
|
|
19
21
|
* @param remix
|
|
@@ -33,10 +35,10 @@ class Rolling {
|
|
|
33
35
|
this.release = release;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
* locale, partitions, users can come from themes
|
|
39
|
+
*/
|
|
38
40
|
async create() {
|
|
39
|
-
const fisherman = new
|
|
41
|
+
const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
|
|
40
42
|
await fisherman.settings(this.remix.branding);
|
|
41
43
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
42
44
|
await fisherman.buildModule('mount');
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
5
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
9
|
exports.displaymanager = void 0;
|
|
7
|
-
const
|
|
8
|
-
const pacman_1 = tslib_1.__importDefault(require("../../pacman"));
|
|
10
|
+
const pacman_js_1 = __importDefault(require("../../pacman.js"));
|
|
9
11
|
/**
|
|
10
12
|
* restituisce displaymanagers in uso
|
|
11
13
|
*/
|
|
@@ -27,7 +29,7 @@ exports.displaymanager = displaymanager;
|
|
|
27
29
|
*/
|
|
28
30
|
function addIfExist(package2check) {
|
|
29
31
|
let content = '';
|
|
30
|
-
if (
|
|
32
|
+
if (pacman_js_1.default.packageIsInstalled(package2check)) {
|
|
31
33
|
let displayManager = package2check;
|
|
32
34
|
if (package2check === 'gdm3') {
|
|
33
35
|
// gdm3 is treat as gdm
|