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
|
@@ -6,59 +6,61 @@
|
|
|
6
6
|
* mail: piero.proietti@gmail.com
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
9
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
13
|
+
const settings_js_1 = __importDefault(require("../classes/settings.js"));
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
13
15
|
const ink_1 = require("ink");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const fs_1 =
|
|
17
|
-
const js_yaml_1 =
|
|
18
|
-
const shelljs_1 =
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
16
|
+
const install_js_1 = __importDefault(require("../components/install.js"));
|
|
17
|
+
const finished_js_1 = __importDefault(require("../components/finished.js"));
|
|
18
|
+
const fs_1 = __importDefault(require("fs"));
|
|
19
|
+
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
20
|
+
const shelljs_1 = __importDefault(require("shelljs"));
|
|
21
|
+
const utils_js_1 = __importDefault(require("../classes/utils.js"));
|
|
22
|
+
const cli_autologin_js_1 = __importDefault(require("../lib/cli-autologin.js"));
|
|
23
|
+
const pacman_js_1 = __importDefault(require("../classes/pacman.js"));
|
|
24
|
+
const installer_js_1 = require("../classes/incubation/installer.js");
|
|
25
|
+
const xdg_js_1 = __importDefault(require("../classes/xdg.js"));
|
|
26
|
+
const distro_js_1 = __importDefault(require("../classes/distro.js"));
|
|
27
|
+
const utils_js_2 = require("../lib/utils.js");
|
|
26
28
|
// import krill modules
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
29
|
+
const partition_js_1 = __importDefault(require("./modules/partition.js"));
|
|
30
|
+
const mount_fs_js_1 = require("./modules/mount-fs.js");
|
|
31
|
+
const mount_vfs_js_1 = require("./modules/mount-vfs.js");
|
|
32
|
+
const unpackfs_js_1 = __importDefault(require("./modules/unpackfs.js"));
|
|
33
|
+
const machine_id_js_1 = __importDefault(require("./modules/machine-id.js"));
|
|
34
|
+
const fstab_js_1 = __importDefault(require("./modules/fstab.js"));
|
|
35
|
+
const locale_js_1 = __importDefault(require("./modules/locale.js"));
|
|
36
|
+
const m_keyboard_js_1 = __importDefault(require("./modules/m-keyboard.js"));
|
|
37
|
+
const locale_cfg_js_1 = __importDefault(require("./modules/locale-cfg.js"));
|
|
36
38
|
// users
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
+
const add_user_js_1 = __importDefault(require("./modules/add-user.js"));
|
|
40
|
+
const change_password_js_1 = __importDefault(require("./modules/change-password.js"));
|
|
39
41
|
// displaymanager: autologin
|
|
40
|
-
const
|
|
42
|
+
const network_cfg_js_1 = __importDefault(require("./modules/network-cfg.js"));
|
|
41
43
|
// hwclock:
|
|
42
44
|
// services-systemd:
|
|
43
45
|
// bootloader-config
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
+
const bootloader_config_js_1 = __importDefault(require("./modules/bootloader-config.js"));
|
|
47
|
+
const bootloader_config_ubuntu_js_1 = __importDefault(require("./modules/bootloader-config-ubuntu.js"));
|
|
46
48
|
//
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const grubcfg_js_1 = __importDefault(require("./modules/grubcfg.js"));
|
|
50
|
+
const bootloader_js_1 = __importDefault(require("./modules/bootloader.js"));
|
|
51
|
+
const packages_js_1 = __importDefault(require("./modules/packages.js"));
|
|
52
|
+
const remove_installer_link_js_1 = __importDefault(require("./modules/remove-installer-link.js"));
|
|
51
53
|
// luksbootkeyfile:
|
|
52
54
|
// plymouthcfg;
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
55
|
+
const initramfs_cfg_js_1 = __importDefault(require("./modules/initramfs-cfg.js"));
|
|
56
|
+
const initramfs_js_1 = __importDefault(require("./modules/initramfs.js"));
|
|
57
|
+
const del_live_user_js_1 = __importDefault(require("./modules/del-live-user.js"));
|
|
56
58
|
// umount already imported
|
|
57
59
|
// to order in same wat
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
60
|
+
const m_timezone_js_1 = __importDefault(require("./modules/m-timezone.js"));
|
|
61
|
+
const umount_js_1 = __importDefault(require("./modules/umount.js"));
|
|
62
|
+
const mkfs_js_1 = __importDefault(require("./modules/mkfs.js"));
|
|
63
|
+
const hostname_js_1 = __importDefault(require("./modules/hostname.js"));
|
|
62
64
|
/**
|
|
63
65
|
* hatching: installazione o cova!!!
|
|
64
66
|
*/
|
|
@@ -67,44 +69,44 @@ class Sequence {
|
|
|
67
69
|
* constructor
|
|
68
70
|
*/
|
|
69
71
|
constructor(location, keyboard, partitions, users, network) {
|
|
70
|
-
this.partition =
|
|
72
|
+
this.partition = partition_js_1.default;
|
|
71
73
|
// mount
|
|
72
|
-
this.mountFs =
|
|
73
|
-
this.mountVfs =
|
|
74
|
+
this.mountFs = mount_fs_js_1.mountFs;
|
|
75
|
+
this.mountVfs = mount_vfs_js_1.mountVfs;
|
|
74
76
|
//
|
|
75
|
-
this.unpackfs =
|
|
76
|
-
this.machineId =
|
|
77
|
-
this.fstab =
|
|
78
|
-
this.locale =
|
|
79
|
-
this.keyboard =
|
|
80
|
-
this.localeCfg =
|
|
77
|
+
this.unpackfs = unpackfs_js_1.default;
|
|
78
|
+
this.machineId = machine_id_js_1.default;
|
|
79
|
+
this.fstab = fstab_js_1.default;
|
|
80
|
+
this.locale = locale_js_1.default;
|
|
81
|
+
this.keyboard = m_keyboard_js_1.default;
|
|
82
|
+
this.localeCfg = locale_cfg_js_1.default;
|
|
81
83
|
// users
|
|
82
|
-
this.addUser =
|
|
83
|
-
this.changePassword =
|
|
84
|
+
this.addUser = add_user_js_1.default;
|
|
85
|
+
this.changePassword = change_password_js_1.default;
|
|
84
86
|
// displaumanager: autologin
|
|
85
|
-
this.networkCfg =
|
|
87
|
+
this.networkCfg = network_cfg_js_1.default;
|
|
86
88
|
// hwclock:
|
|
87
89
|
// services-systemd:
|
|
88
90
|
// bootloader-config
|
|
89
|
-
this.bootloaderConfig =
|
|
90
|
-
this.bootloaderConfigUbuntu =
|
|
91
|
+
this.bootloaderConfig = bootloader_config_js_1.default;
|
|
92
|
+
this.bootloaderConfigUbuntu = bootloader_config_ubuntu_js_1.default;
|
|
91
93
|
//
|
|
92
|
-
this.grubcfg =
|
|
93
|
-
this.bootloader =
|
|
94
|
-
this.packages =
|
|
95
|
-
this.removeInstallerLink =
|
|
94
|
+
this.grubcfg = grubcfg_js_1.default;
|
|
95
|
+
this.bootloader = bootloader_js_1.default;
|
|
96
|
+
this.packages = packages_js_1.default;
|
|
97
|
+
this.removeInstallerLink = remove_installer_link_js_1.default;
|
|
96
98
|
// luksbootkeyfile:
|
|
97
99
|
// plymouthcfg;
|
|
98
|
-
this.initramfsCfg =
|
|
99
|
-
this.initramfs =
|
|
100
|
-
this.delLiveUser =
|
|
101
|
-
this.umountFs =
|
|
102
|
-
this.umountVfs =
|
|
100
|
+
this.initramfsCfg = initramfs_cfg_js_1.default;
|
|
101
|
+
this.initramfs = initramfs_js_1.default;
|
|
102
|
+
this.delLiveUser = del_live_user_js_1.default;
|
|
103
|
+
this.umountFs = mount_fs_js_1.umountFs;
|
|
104
|
+
this.umountVfs = mount_vfs_js_1.umountVfs;
|
|
103
105
|
// to order in same way
|
|
104
|
-
this.timezone =
|
|
105
|
-
this.umount =
|
|
106
|
-
this.mkfs =
|
|
107
|
-
this.hostname =
|
|
106
|
+
this.timezone = m_timezone_js_1.default;
|
|
107
|
+
this.umount = umount_js_1.default;
|
|
108
|
+
this.mkfs = mkfs_js_1.default;
|
|
109
|
+
this.hostname = hostname_js_1.default;
|
|
108
110
|
this.installer = {};
|
|
109
111
|
this.installTarget = '/tmp/calamares-krill-root';
|
|
110
112
|
this.verbose = false;
|
|
@@ -133,8 +135,9 @@ class Sequence {
|
|
|
133
135
|
this.is_clone = fs_1.default.existsSync('/etc/penguins-eggs.d/is_clone');
|
|
134
136
|
this.is_crypted_clone = fs_1.default.existsSync('/etc/penguins-eggs.d/is_crypted_clone');
|
|
135
137
|
this.unattended = false;
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
138
|
+
this.cliAutologin = new cli_autologin_js_1.default();
|
|
139
|
+
this.installer = (0, installer_js_1.installer)();
|
|
140
|
+
this.settings = new settings_js_1.default();
|
|
138
141
|
this.language = location.language;
|
|
139
142
|
this.region = location.region;
|
|
140
143
|
this.zone = location.zone;
|
|
@@ -149,7 +152,7 @@ class Sequence {
|
|
|
149
152
|
this.devices.root = {};
|
|
150
153
|
this.devices.data = {};
|
|
151
154
|
this.devices.swap = {};
|
|
152
|
-
this.distro = new
|
|
155
|
+
this.distro = new distro_js_1.default(this.remix);
|
|
153
156
|
this.efi = fs_1.default.existsSync('/sys/firmware/efi/efivars');
|
|
154
157
|
}
|
|
155
158
|
/**
|
|
@@ -161,7 +164,7 @@ class Sequence {
|
|
|
161
164
|
async start(unattended = false, domain = 'local', verbose = false) {
|
|
162
165
|
this.unattended = unattended;
|
|
163
166
|
this.verbose = verbose;
|
|
164
|
-
this.echo =
|
|
167
|
+
this.echo = utils_js_1.default.setEcho(this.verbose);
|
|
165
168
|
if (this.verbose) {
|
|
166
169
|
this.toNull = '';
|
|
167
170
|
}
|
|
@@ -174,63 +177,63 @@ class Sequence {
|
|
|
174
177
|
message = "Creating partitions";
|
|
175
178
|
percent = 0.03;
|
|
176
179
|
try {
|
|
177
|
-
await redraw(react_1.default.createElement(
|
|
180
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
178
181
|
isPartitioned = await this.partition();
|
|
179
182
|
}
|
|
180
183
|
catch (error) {
|
|
181
|
-
await
|
|
184
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
182
185
|
}
|
|
183
186
|
if (isPartitioned) {
|
|
184
187
|
// formatting
|
|
185
188
|
message = "Formatting file system ";
|
|
186
189
|
percent = 0.06;
|
|
187
190
|
try {
|
|
188
|
-
await redraw(react_1.default.createElement(
|
|
191
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
189
192
|
await this.mkfs();
|
|
190
193
|
}
|
|
191
194
|
catch (error) {
|
|
192
|
-
await
|
|
195
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
193
196
|
}
|
|
194
197
|
// mountFs
|
|
195
198
|
message = "Mounting target file system ";
|
|
196
199
|
percent = 0.09;
|
|
197
200
|
try {
|
|
198
|
-
redraw(react_1.default.createElement(
|
|
201
|
+
redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
199
202
|
await this.mountFs();
|
|
200
203
|
}
|
|
201
204
|
catch (error) {
|
|
202
|
-
await
|
|
205
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
203
206
|
}
|
|
204
207
|
// mountVfs
|
|
205
208
|
message = "Mounting on target VFS ";
|
|
206
209
|
percent = 0.12;
|
|
207
210
|
try {
|
|
208
|
-
await redraw(react_1.default.createElement(
|
|
211
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
209
212
|
await this.mountVfs();
|
|
210
213
|
}
|
|
211
214
|
catch (error) {
|
|
212
|
-
await
|
|
215
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
213
216
|
}
|
|
214
217
|
// unpackfs
|
|
215
218
|
message = "Unpacking filesystem ";
|
|
216
219
|
percent = 0.15;
|
|
217
220
|
try {
|
|
218
|
-
await redraw(react_1.default.createElement(
|
|
221
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
219
222
|
await this.unpackfs();
|
|
220
223
|
}
|
|
221
224
|
catch (error) {
|
|
222
|
-
await
|
|
225
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
223
226
|
}
|
|
224
227
|
// dpkg-unsafe-io
|
|
225
228
|
if (this.distro.familyId === 'debian') {
|
|
226
229
|
message = "dpkg-unsafe-io";
|
|
227
230
|
percent = 0.40;
|
|
228
231
|
try {
|
|
229
|
-
await redraw(react_1.default.createElement(
|
|
232
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
230
233
|
await this.execCalamaresModule('dpkg-unsafe-io');
|
|
231
234
|
}
|
|
232
235
|
catch (error) {
|
|
233
|
-
await
|
|
236
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
234
237
|
}
|
|
235
238
|
}
|
|
236
239
|
// sources-yolk
|
|
@@ -238,32 +241,32 @@ class Sequence {
|
|
|
238
241
|
message = 'sources-yolk';
|
|
239
242
|
percent = 0.43;
|
|
240
243
|
try {
|
|
241
|
-
await redraw(react_1.default.createElement(
|
|
244
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent, spinner: true }));
|
|
242
245
|
await this.execCalamaresModule('sources-yolk');
|
|
243
246
|
}
|
|
244
247
|
catch (error) {
|
|
245
|
-
await
|
|
248
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
246
249
|
}
|
|
247
250
|
}
|
|
248
251
|
// machineid
|
|
249
252
|
message = 'machineid';
|
|
250
253
|
percent = 0.46;
|
|
251
254
|
try {
|
|
252
|
-
await redraw(react_1.default.createElement(
|
|
255
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent, spinner: true }));
|
|
253
256
|
await this.machineId();
|
|
254
257
|
}
|
|
255
258
|
catch (error) {
|
|
256
|
-
await
|
|
259
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
257
260
|
}
|
|
258
261
|
// fstab
|
|
259
262
|
message = "Creating fstab ";
|
|
260
263
|
percent = 0.49;
|
|
261
264
|
try {
|
|
262
|
-
await redraw(react_1.default.createElement(
|
|
265
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
263
266
|
await this.fstab(this.partitions.installationDevice);
|
|
264
267
|
}
|
|
265
268
|
catch (error) {
|
|
266
|
-
await
|
|
269
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
267
270
|
}
|
|
268
271
|
/**
|
|
269
272
|
* CryptedClone exec eggs syncfrom
|
|
@@ -274,16 +277,16 @@ class Sequence {
|
|
|
274
277
|
percent = 0.55;
|
|
275
278
|
let cmd = `eggs syncfrom --rootdir /tmp/calamares-krill-root/ --file ${this.luksFile}`;
|
|
276
279
|
try {
|
|
277
|
-
await redraw(react_1.default.createElement(
|
|
278
|
-
await (0,
|
|
280
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent, spinner: true }));
|
|
281
|
+
await (0, utils_js_2.exec)(cmd, utils_js_1.default.setEcho(true));
|
|
279
282
|
this.is_clone = true; // Adesso è un clone
|
|
280
283
|
}
|
|
281
284
|
catch (error) {
|
|
282
|
-
await
|
|
285
|
+
await utils_js_1.default.pressKeyToExit(cmd);
|
|
283
286
|
}
|
|
284
287
|
}
|
|
285
288
|
else {
|
|
286
|
-
await
|
|
289
|
+
await utils_js_1.default.pressKeyToExit(`Cannot find LUKS file ${this.luksFile}`);
|
|
287
290
|
}
|
|
288
291
|
}
|
|
289
292
|
// networkcfg
|
|
@@ -293,48 +296,48 @@ class Sequence {
|
|
|
293
296
|
await this.networkCfg();
|
|
294
297
|
}
|
|
295
298
|
catch (error) {
|
|
296
|
-
await
|
|
299
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
297
300
|
}
|
|
298
301
|
// hostname
|
|
299
302
|
message = "Create hostname ";
|
|
300
303
|
percent = 0.64;
|
|
301
304
|
try {
|
|
302
|
-
await redraw(react_1.default.createElement(
|
|
305
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
303
306
|
await this.hostname(domain);
|
|
304
307
|
}
|
|
305
308
|
catch (error) {
|
|
306
|
-
await
|
|
309
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
307
310
|
}
|
|
308
311
|
// initramfsCfg
|
|
309
312
|
message = "initramfs configure";
|
|
310
313
|
percent = 0.67;
|
|
311
314
|
try {
|
|
312
|
-
await redraw(react_1.default.createElement(
|
|
315
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
313
316
|
await this.initramfsCfg(this.partitions.installationDevice);
|
|
314
317
|
}
|
|
315
318
|
catch (error) {
|
|
316
|
-
await
|
|
319
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
317
320
|
}
|
|
318
321
|
// initramfs
|
|
319
322
|
message = "initramfs ";
|
|
320
323
|
percent = 0.70;
|
|
321
324
|
try {
|
|
322
|
-
await redraw(react_1.default.createElement(
|
|
325
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
323
326
|
await this.initramfs();
|
|
324
327
|
}
|
|
325
328
|
catch (error) {
|
|
326
|
-
await
|
|
329
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
327
330
|
}
|
|
328
331
|
// dpkg-unsafe-io-undo
|
|
329
332
|
if (this.distro.familyId === 'debian') {
|
|
330
333
|
message = "dpkg-unsafe-io-undo";
|
|
331
334
|
percent = 0.72;
|
|
332
335
|
try {
|
|
333
|
-
await redraw(react_1.default.createElement(
|
|
336
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
334
337
|
await this.execCalamaresModule('dpkg-unsafe-io-undo');
|
|
335
338
|
}
|
|
336
339
|
catch (error) {
|
|
337
|
-
await
|
|
340
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
343
|
/**
|
|
@@ -351,11 +354,11 @@ class Sequence {
|
|
|
351
354
|
message = "Locale";
|
|
352
355
|
percent = 0.74;
|
|
353
356
|
try {
|
|
354
|
-
redraw(react_1.default.createElement(
|
|
357
|
+
redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
355
358
|
await this.locale();
|
|
356
359
|
}
|
|
357
360
|
catch (error) {
|
|
358
|
-
await
|
|
361
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
359
362
|
}
|
|
360
363
|
// keyboard
|
|
361
364
|
message = "settings keyboard";
|
|
@@ -364,60 +367,60 @@ class Sequence {
|
|
|
364
367
|
await this.keyboard();
|
|
365
368
|
}
|
|
366
369
|
catch (error) {
|
|
367
|
-
await
|
|
370
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
368
371
|
}
|
|
369
372
|
// localeCfg
|
|
370
373
|
message = "Locale Configuration";
|
|
371
374
|
percent = 0.76;
|
|
372
375
|
try {
|
|
373
376
|
await this.localeCfg();
|
|
374
|
-
await (0,
|
|
377
|
+
await (0, utils_js_2.exec)("chroot " + this.installTarget + " locale-gen");
|
|
375
378
|
}
|
|
376
379
|
catch (error) {
|
|
377
|
-
await
|
|
380
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
378
381
|
}
|
|
379
382
|
// delLiveUser
|
|
380
383
|
message = "Remove user LIVE";
|
|
381
384
|
percent = 0.75;
|
|
382
385
|
try {
|
|
383
|
-
await redraw(react_1.default.createElement(
|
|
386
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
384
387
|
await this.delLiveUser();
|
|
385
388
|
}
|
|
386
389
|
catch (error) {
|
|
387
|
-
await
|
|
390
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
388
391
|
}
|
|
389
392
|
// addUser
|
|
390
393
|
message = "Add user";
|
|
391
394
|
percent = 0.76;
|
|
392
395
|
try {
|
|
393
|
-
await redraw(react_1.default.createElement(
|
|
396
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
394
397
|
await this.addUser(this.users.name, this.users.password, this.users.fullname, '', '', '');
|
|
395
398
|
}
|
|
396
399
|
catch (error) {
|
|
397
|
-
await
|
|
400
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
398
401
|
}
|
|
399
402
|
// changePassword root
|
|
400
403
|
message = "Add user password";
|
|
401
404
|
percent = 0.77;
|
|
402
405
|
try {
|
|
403
|
-
await redraw(react_1.default.createElement(
|
|
406
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
404
407
|
await this.changePassword('root', this.users.rootPassword);
|
|
405
408
|
}
|
|
406
409
|
catch (error) {
|
|
407
|
-
await
|
|
410
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
408
411
|
}
|
|
409
412
|
// autologin
|
|
410
|
-
if (
|
|
413
|
+
if (pacman_js_1.default.isInstalledGui()) {
|
|
411
414
|
try {
|
|
412
415
|
message = "Autologin GUI";
|
|
413
416
|
percent = 0.78;
|
|
414
417
|
if (this.users.autologin) {
|
|
415
|
-
await
|
|
418
|
+
await xdg_js_1.default.autologin(await utils_js_1.default.getPrimaryUser(), this.users.name, this.installTarget);
|
|
416
419
|
}
|
|
417
|
-
await redraw(react_1.default.createElement(
|
|
420
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
418
421
|
}
|
|
419
422
|
catch (error) {
|
|
420
|
-
await
|
|
423
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
421
424
|
}
|
|
422
425
|
}
|
|
423
426
|
} // IF NOT CLONE END
|
|
@@ -425,59 +428,59 @@ class Sequence {
|
|
|
425
428
|
message = "Remove autologin CLI";
|
|
426
429
|
percent = 0.80;
|
|
427
430
|
try {
|
|
428
|
-
await redraw(react_1.default.createElement(
|
|
429
|
-
await cliAutologin.remove(this.installTarget);
|
|
431
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
432
|
+
await this.cliAutologin.remove(this.installTarget);
|
|
430
433
|
}
|
|
431
434
|
catch (error) {
|
|
432
|
-
await
|
|
435
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
433
436
|
}
|
|
434
437
|
// bootloader-config
|
|
435
438
|
message = "bootloader-config ";
|
|
436
439
|
percent = 0.82;
|
|
437
440
|
try {
|
|
438
|
-
await redraw(react_1.default.createElement(
|
|
441
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
439
442
|
await this.bootloaderConfig();
|
|
440
443
|
}
|
|
441
444
|
catch (error) {
|
|
442
|
-
await
|
|
445
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
443
446
|
}
|
|
444
447
|
// grubcfg
|
|
445
448
|
message = "grubcfg ";
|
|
446
449
|
percent = 0.84;
|
|
447
450
|
try {
|
|
448
|
-
await redraw(react_1.default.createElement(
|
|
451
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
449
452
|
await this.grubcfg();
|
|
450
453
|
}
|
|
451
454
|
catch (error) {
|
|
452
|
-
await
|
|
455
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
453
456
|
}
|
|
454
457
|
// bootloader (grub-install)
|
|
455
458
|
message = "bootloader ";
|
|
456
459
|
percent = 0.86;
|
|
457
460
|
try {
|
|
458
|
-
await redraw(react_1.default.createElement(
|
|
461
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
459
462
|
await this.bootloader();
|
|
460
463
|
}
|
|
461
464
|
catch (error) {
|
|
462
|
-
await
|
|
465
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
463
466
|
}
|
|
464
467
|
// sources-yolk-undo
|
|
465
468
|
if (this.distro.familyId === 'debian') {
|
|
466
469
|
message = "sources-yolk-undo";
|
|
467
470
|
percent = 0.88;
|
|
468
471
|
try {
|
|
469
|
-
await redraw(react_1.default.createElement(
|
|
472
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
470
473
|
await this.execCalamaresModule('sources-yolk-undo');
|
|
471
474
|
}
|
|
472
475
|
catch (error) {
|
|
473
|
-
await
|
|
476
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
474
477
|
}
|
|
475
478
|
}
|
|
476
479
|
// packages
|
|
477
480
|
message = "add/remove packages";
|
|
478
481
|
percent = 0.90;
|
|
479
482
|
try {
|
|
480
|
-
await redraw(react_1.default.createElement(
|
|
483
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
481
484
|
await this.packages();
|
|
482
485
|
}
|
|
483
486
|
catch (error) {
|
|
@@ -487,57 +490,57 @@ class Sequence {
|
|
|
487
490
|
*
|
|
488
491
|
* if calamares is present: remove GUI installer link
|
|
489
492
|
*/
|
|
490
|
-
if (await
|
|
493
|
+
if (await pacman_js_1.default.calamaresCheck()) {
|
|
491
494
|
message = "remove GUI installer link";
|
|
492
495
|
percent = 0.92;
|
|
493
496
|
try {
|
|
494
|
-
await redraw(react_1.default.createElement(
|
|
497
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
495
498
|
await this.removeInstallerLink();
|
|
496
499
|
}
|
|
497
500
|
catch (error) {
|
|
498
|
-
await
|
|
501
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
499
502
|
}
|
|
500
503
|
}
|
|
501
504
|
// remove /etc/penguins_eggs.d/is_clone*
|
|
502
505
|
message = "Cleanup";
|
|
503
506
|
percent = 0.94;
|
|
504
507
|
try {
|
|
505
|
-
await redraw(react_1.default.createElement(
|
|
506
|
-
await (0,
|
|
507
|
-
await (0,
|
|
508
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
509
|
+
await (0, utils_js_2.exec)(`rm -f ${this.installTarget}/etc/penguins-eggs.d/is_clone`);
|
|
510
|
+
await (0, utils_js_2.exec)(`rm -f ${this.installTarget}/etc/penguins-eggs.d/is_crypted_clone`);
|
|
508
511
|
}
|
|
509
512
|
catch (error) {
|
|
510
|
-
await
|
|
513
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
511
514
|
}
|
|
512
515
|
// umountVfs
|
|
513
516
|
message = "umount VFS";
|
|
514
517
|
percent = 0.96;
|
|
515
518
|
try {
|
|
516
|
-
await redraw(react_1.default.createElement(
|
|
519
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
517
520
|
await this.umountVfs();
|
|
518
521
|
}
|
|
519
522
|
catch (error) {
|
|
520
|
-
await
|
|
523
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
521
524
|
}
|
|
522
525
|
// umount
|
|
523
526
|
message = "umount";
|
|
524
527
|
percent = 0.98;
|
|
525
528
|
try {
|
|
526
|
-
await redraw(react_1.default.createElement(
|
|
529
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
527
530
|
await this.umountFs();
|
|
528
531
|
}
|
|
529
532
|
catch (error) {
|
|
530
|
-
await
|
|
533
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
531
534
|
}
|
|
532
535
|
// finished
|
|
533
536
|
message = "finished";
|
|
534
537
|
percent = 100.0;
|
|
535
538
|
try {
|
|
536
|
-
await redraw(react_1.default.createElement(
|
|
539
|
+
await redraw(react_1.default.createElement(install_js_1.default, { message: message, percent: percent }));
|
|
537
540
|
await this.finished();
|
|
538
541
|
}
|
|
539
542
|
catch (error) {
|
|
540
|
-
await
|
|
543
|
+
await utils_js_1.default.pressKeyToExit(JSON.stringify(error));
|
|
541
544
|
}
|
|
542
545
|
}
|
|
543
546
|
}
|
|
@@ -551,7 +554,7 @@ class Sequence {
|
|
|
551
554
|
let command = calamaresModule.command;
|
|
552
555
|
if (command !== '' || command !== undefined) {
|
|
553
556
|
command += this.toNull;
|
|
554
|
-
await (0,
|
|
557
|
+
await (0, utils_js_2.exec)(command, this.echo);
|
|
555
558
|
}
|
|
556
559
|
}
|
|
557
560
|
}
|
|
@@ -559,9 +562,9 @@ class Sequence {
|
|
|
559
562
|
* only show the result
|
|
560
563
|
*/
|
|
561
564
|
async finished() {
|
|
562
|
-
await redraw(react_1.default.createElement(
|
|
565
|
+
await redraw(react_1.default.createElement(finished_js_1.default, { installationDevice: this.partitions.installationDevice, hostName: this.users.hostname, userName: this.users.name }));
|
|
563
566
|
if (!this.unattended) {
|
|
564
|
-
|
|
567
|
+
utils_js_1.default.pressKeyToExit('Press a key to reboot...');
|
|
565
568
|
}
|
|
566
569
|
shelljs_1.default.exec('reboot');
|
|
567
570
|
}
|