penguins-eggs 8.0.30 → 9.0.2
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/README.md +251 -163
- package/addons/README.md +78 -84
- package/addons/{pve → blissos}/theme/applications/install-debian.desktop +0 -0
- package/addons/{pve → blissos}/theme/artwork/install-debian.png +0 -0
- package/addons/blissos/theme/calamares/branding/blissos-logo.png +0 -0
- package/addons/{pve → blissos}/theme/calamares/branding/branding.desc +0 -0
- package/addons/blissos/theme/calamares/branding/languages.png +0 -0
- package/addons/blissos/theme/calamares/branding/show.qml +75 -0
- package/addons/blissos/theme/calamares/branding/slide1.png +0 -0
- package/addons/blissos/theme/calamares/branding/slide2.png +0 -0
- package/addons/blissos/theme/calamares/branding/slide3.png +0 -0
- package/addons/blissos/theme/calamares/branding/welcome.png +0 -0
- package/addons/{pve → blissos}/theme/calamares/modules/partition.yml +2 -2
- package/addons/blissos/theme/livecd/README.md +23 -0
- package/addons/blissos/theme/livecd/grub.template.cfg +34 -0
- package/addons/blissos/theme/livecd/grub.theme.cfg +46 -0
- package/addons/blissos/theme/livecd/isolinux.template.cfg +29 -0
- package/addons/blissos/theme/livecd/isolinux.theme.cfg +45 -0
- package/addons/blissos/theme/livecd/splash.png +0 -0
- package/addons/debian/theme/README.md +23 -0
- package/addons/debian/theme/{branding → calamares/branding}/branding.desc +0 -0
- package/addons/debian/theme/{branding → calamares/branding}/debian-logo.png +0 -0
- package/addons/debian/theme/{branding → calamares/branding}/show.qml +0 -0
- package/addons/debian/theme/{branding → calamares/branding}/slide1.png +0 -0
- package/addons/debian/theme/{branding → calamares/branding}/welcome.png +0 -0
- package/addons/debian/theme/calamares/modules/partition.yml +233 -0
- package/addons/debian/theme/livecd/README.md +23 -0
- package/addons/debian/theme/livecd/grub.template.cfg +34 -0
- package/addons/{pve/theme/livecd/theme.cfg → debian/theme/livecd/grub.theme.cfg} +4 -0
- package/addons/debian/theme/livecd/isolinux.template.cfg +30 -0
- package/{conf/distros/buster/isolinux/stdmenu.template.cfg → addons/debian/theme/livecd/isolinux.theme.cfg} +4 -0
- package/addons/debian/theme/livecd/splash.png +0 -0
- package/addons/deblinux/theme/README.md +19 -12
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
- package/addons/eggs/theme/livecd/README.md +21 -6
- package/addons/eggs/theme/livecd/grub.template.cfg +11 -37
- package/addons/eggs/theme/livecd/{theme.cfg → grub.theme.cfg} +5 -1
- package/addons/eggs/theme/livecd/isolinux.template.cfg +29 -0
- package/addons/eggs/theme/livecd/isolinux.theme.cfg +46 -0
- package/addons/eggs/theme/livecd/splash.png +0 -0
- package/addons/guadalinex/theme/livecd/README.md +23 -0
- package/addons/guadalinex/theme/livecd/{menu.template.cfg → isolinux.template.cfg} +12 -3
- package/addons/guadalinex/theme/livecd/{theme.cfg → isolinux.theme.cfg} +0 -0
- package/addons/neon/theme/livecd/README.md +23 -0
- package/addons/neon/theme/livecd/grub.template.cfg +34 -0
- package/addons/{ufficiozero/theme/livecd/theme.cfg → neon/theme/livecd/grub.theme.cfg} +5 -1
- package/addons/neon/theme/livecd/isolinux.template.cfg +29 -0
- package/addons/neon/theme/livecd/isolinux.theme.cfg +46 -0
- package/addons/neon/theme/livecd/splash.pcx +0 -0
- package/addons/neon/theme/livecd/splash.png +0 -0
- package/addons/openos/theme/livecd/README.md +23 -0
- package/addons/openos/theme/livecd/{theme.cfg → grub.theme.cfg} +0 -0
- package/addons/openos/theme/livecd/{menu.template.cfg → isolinux.template.cfg} +11 -3
- package/addons/openos/theme/livecd/isolinux.theme.cfg +45 -0
- package/addons/ufficiozero/theme/applications/install-debian.desktop +17 -2
- package/assets/penguins-minstall.desktop +95 -0
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +2 -4
- package/conf/distros/bionic/calamares/settings.yml +5 -5
- package/conf/distros/bookworm/README.md +9 -0
- package/conf/distros/bullseye/README.md +6 -8
- package/conf/distros/buster/calamares/modules/shellprocess_eggs-cleanup.yml +6 -0
- package/conf/distros/buster/calamares/settings.yml +14 -3
- package/conf/distros/chimaera/README.md +3 -0
- package/conf/distros/daedalus/README.md +3 -0
- package/conf/distros/focal/calamares/settings.yml +2 -2
- package/conf/distros/hirsute/README.md +1 -1
- package/conf/distros/impish/README.md +9 -0
- package/conf/distros/jammy/README.md +9 -0
- package/conf/distros/rolling/README.md +3 -0
- package/conf/distros/rolling/calamares/calamares-modules/remove-link/module.yml +9 -0
- package/conf/distros/rolling/calamares/calamares-modules/remove-link/remove-link.sh +3 -0
- package/conf/distros/rolling/calamares/modules/displaymanager.yml +22 -0
- package/conf/distros/rolling/calamares/modules/finished.yml +6 -0
- package/conf/distros/rolling/calamares/modules/fstab.yml +13 -0
- package/conf/distros/rolling/calamares/modules/locale.yml +97 -0
- package/conf/distros/rolling/calamares/modules/luksopenswaphookcfg.yml +6 -0
- package/conf/distros/rolling/calamares/modules/mount.yml +38 -0
- package/conf/distros/rolling/calamares/modules/packages.yml +8 -0
- package/conf/distros/rolling/calamares/modules/removeuser.yml +15 -0
- package/conf/distros/rolling/calamares/modules/unpackfs.yml +7 -0
- package/conf/distros/rolling/calamares/modules/users.yml +20 -0
- package/conf/distros/rolling/calamares/modules/welcome.yml +19 -0
- package/conf/distros/{bullseye → rolling}/calamares/settings.yml +17 -12
- package/conf/distros/thirtyfive/README.md +3 -0
- package/conf/distros/tumbleweed/README.md +3 -0
- package/conf/eggs.yaml +1 -1
- package/conf/exclude.list +2 -4
- package/conf/tools.yaml +1 -1
- package/lib/classes/basket.js +24 -20
- package/lib/classes/bleach.js +17 -17
- package/lib/classes/compressors.js +15 -14
- package/lib/classes/daddy.js +38 -31
- package/lib/classes/distro.d.ts +3 -2
- package/lib/classes/distro.js +288 -173
- package/lib/classes/family/archlinux.d.ts +69 -0
- package/lib/classes/family/archlinux.js +181 -0
- package/lib/classes/family/debian.d.ts +64 -0
- package/lib/classes/family/debian.js +227 -0
- package/lib/classes/family/fedora.d.ts +63 -0
- package/lib/classes/family/fedora.js +169 -0
- package/lib/classes/family/suse.d.ts +63 -0
- package/lib/classes/family/suse.js +169 -0
- package/lib/classes/i18n.js +16 -16
- package/lib/classes/incubation/branding.js +5 -4
- package/lib/classes/incubation/distros/bionic.js +1 -2
- package/lib/classes/incubation/distros/buster.js +2 -2
- package/lib/classes/incubation/distros/focal.js +3 -2
- package/lib/classes/incubation/distros/jessie.js +1 -25
- package/lib/classes/incubation/distros/{bullseye.d.ts → rolling.d.ts} +3 -3
- package/lib/classes/incubation/distros/{bullseye.js → rolling.js} +15 -16
- package/lib/classes/incubation/fisherman-helper/displaymanager.js +2 -7
- package/lib/classes/incubation/fisherman-helper/packages.js +31 -32
- package/lib/classes/incubation/fisherman.d.ts +17 -17
- package/lib/classes/incubation/fisherman.js +84 -71
- package/lib/classes/incubation/incubator.js +116 -74
- package/lib/classes/incubation/installer.d.ts +2 -2
- package/lib/classes/incubation/installer.js +6 -20
- package/lib/classes/initrd.d.ts +1 -1
- package/lib/classes/initrd.js +37 -30
- package/lib/classes/krill_install.js +135 -132
- package/lib/classes/krill_prepare.js +51 -51
- package/lib/classes/n8.js +6 -11
- package/lib/classes/ovary.d.ts +29 -11
- package/lib/classes/ovary.js +711 -605
- package/lib/classes/pacman.d.ts +55 -56
- package/lib/classes/pacman.js +514 -419
- package/lib/classes/pve-live.js +6 -6
- package/lib/classes/settings.js +46 -55
- package/lib/classes/systemctl.d.ts +6 -6
- package/lib/classes/systemctl.js +7 -7
- package/lib/classes/tools.d.ts +1 -1
- package/lib/classes/tools.js +10 -10
- package/lib/classes/utils.d.ts +9 -12
- package/lib/classes/utils.js +127 -106
- package/lib/classes/xdg.js +94 -90
- package/lib/classes/yolk.js +36 -29
- package/lib/commands/adapt.d.ts +3 -3
- package/lib/commands/adapt.js +12 -12
- package/lib/commands/bro.d.ts +14 -0
- package/lib/commands/bro.js +31 -0
- package/lib/commands/calamares.d.ts +7 -7
- package/lib/commands/calamares.js +22 -54
- package/lib/commands/config.d.ts +5 -5
- package/lib/commands/config.js +68 -74
- package/lib/commands/dad.d.ts +5 -5
- package/lib/commands/dad.js +11 -11
- package/lib/commands/export/deb.d.ts +8 -8
- package/lib/commands/export/deb.js +16 -16
- package/lib/commands/export/docs.d.ts +2 -2
- package/lib/commands/export/docs.js +9 -9
- package/lib/commands/export/iso.d.ts +4 -4
- package/lib/commands/export/iso.js +12 -17
- package/lib/commands/info.d.ts +9 -3
- package/lib/commands/info.js +14 -164
- package/lib/commands/install.d.ts +4 -4
- package/lib/commands/install.js +19 -14
- package/lib/commands/kill.d.ts +3 -3
- package/lib/commands/kill.js +11 -13
- package/lib/commands/mom.d.ts +2 -2
- package/lib/commands/mom.js +8 -8
- package/lib/commands/produce.d.ts +14 -14
- package/lib/commands/produce.js +42 -45
- package/lib/commands/remove.d.ts +5 -5
- package/lib/commands/remove.js +46 -57
- package/lib/commands/tools/clean.d.ts +3 -3
- package/lib/commands/tools/clean.js +10 -12
- package/lib/commands/tools/locales.d.ts +4 -4
- package/lib/commands/tools/locales.js +8 -8
- package/lib/commands/tools/skel.d.ts +4 -4
- package/lib/commands/tools/skel.js +10 -15
- package/lib/commands/tools/stat.d.ts +7 -4
- package/lib/commands/tools/stat.js +20 -13
- package/lib/commands/tools/yolk.d.ts +3 -3
- package/lib/commands/tools/yolk.js +12 -12
- package/lib/commands/update.d.ts +5 -10
- package/lib/commands/update.js +56 -72
- package/lib/components/elements/information.d.ts +4 -0
- package/lib/components/elements/information.js +166 -0
- package/lib/components/elements/steps.js +1 -1
- package/lib/components/elements/title.js +7 -10
- package/lib/components/finished.js +5 -5
- package/lib/components/install.js +5 -5
- package/lib/components/keyboard.js +5 -5
- package/lib/components/location.js +5 -5
- package/lib/components/network.js +5 -5
- package/lib/components/partitions.js +5 -5
- package/lib/components/summary.js +5 -5
- package/lib/components/users.js +6 -6
- package/lib/components/welcome.js +6 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/interfaces/i-distro.d.ts +3 -2
- package/lib/interfaces/i-settings.d.ts +2 -2
- package/lib/lib/cli-autologin.d.ts +19 -2
- package/lib/lib/cli-autologin.js +114 -39
- package/lib/lib/dependencies.d.ts +9 -6
- package/lib/lib/dependencies.js +22 -13
- package/lib/lib/get_address.js +2 -2
- package/lib/lib/get_dns.js +2 -2
- package/lib/lib/get_domain.js +2 -2
- package/lib/lib/get_gateway.js +2 -2
- package/lib/lib/get_hostname.js +2 -2
- package/lib/lib/get_netmask.js +2 -2
- package/lib/lib/get_password.js +2 -2
- package/lib/lib/get_root_password.js +2 -2
- package/lib/lib/get_userfullname.js +2 -2
- package/lib/lib/get_username.js +2 -2
- package/lib/lib/select_address_type.js +2 -5
- package/lib/lib/select_filesystem_type.js +5 -14
- package/lib/lib/select_installation_device.js +3 -3
- package/lib/lib/select_interface.js +1 -1
- package/lib/lib/select_keyboard_layout.js +2 -10
- package/lib/lib/select_languages.js +2 -2
- package/lib/lib/select_regions.js +1 -12
- package/lib/lib/select_user_swap_choice.js +4 -4
- package/lib/lib/select_zones.js +483 -62
- package/oclif.manifest.json +1 -1
- package/package.json +115 -107
- package/scripts/bros/waydroid-helper.sh +92 -0
- package/scripts/eggs.bash +67 -21
- package/scripts/not-used/eggs-cleanup.sh +7 -0
- package/scripts/not-used/install-eggs-ppa.sh +2 -0
- package/scripts/{mkinitramfs → not-used/mkinitramfs} +0 -0
- package/scripts/{pve-live.sh → not-used/pve-live.sh} +0 -0
- package/addons/eggs/theme/livecd/menu.template.cfg +0 -54
- package/addons/pve/theme/applications/penguins-pve.desktop +0 -24
- package/addons/pve/theme/calamares/branding/pve-logo.png +0 -0
- package/addons/pve/theme/calamares/branding/show.qml +0 -227
- package/addons/pve/theme/calamares/branding/slide1.png +0 -0
- package/addons/pve/theme/calamares/branding/slide2.png +0 -0
- package/addons/pve/theme/calamares/branding/slide3.png +0 -0
- package/addons/pve/theme/calamares/branding/slide4.png +0 -0
- package/addons/pve/theme/calamares/branding/slide5.png +0 -0
- package/addons/pve/theme/calamares/branding/slide6.png +0 -0
- package/addons/pve/theme/calamares/branding/slide7.png +0 -0
- package/addons/pve/theme/calamares/branding/slide8.png +0 -0
- package/addons/pve/theme/calamares/branding/slide9.png +0 -0
- package/addons/pve/theme/calamares/branding/welcome.png +0 -0
- package/addons/pve/theme/livecd/README.md +0 -8
- package/addons/pve/theme/livecd/grub.template.cfg +0 -60
- package/addons/pve/theme/livecd/menu.template.cfg +0 -54
- package/addons/pve/theme/livecd/splash.png +0 -0
- package/addons/ufficiozero/theme/artwork/install-debian.png +0 -0
- package/addons/ufficiozero/theme/livecd/README.md +0 -8
- package/addons/ufficiozero/theme/livecd/grub.template.cfg +0 -60
- package/addons/ufficiozero/theme/livecd/menu.template.cfg +0 -54
- package/changelog.md +0 -127
- package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -28
- package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/module.yml +0 -8
- package/conf/distros/buster/grub/grub.template.cfg +0 -58
- package/conf/distros/buster/grub/loopback.cfg +0 -1
- package/conf/distros/buster/grub/theme.cfg +0 -42
- package/conf/distros/buster/isolinux/isolinux.template.cfg +0 -8
- package/conf/distros/buster/isolinux/menu.template.cfg +0 -56
- package/conf/distros/focal/grub/grub.template.cfg +0 -67
- package/conf/distros/focal/isolinux/menu.template.cfg +0 -54
- package/lib/classes/incubation/distros/beowulf.d.ts +0 -30
- package/lib/classes/incubation/distros/beowulf.js +0 -69
- package/lib/classes/krill_install_compare.d.ts +0 -200
- package/lib/classes/krill_install_compare.js +0 -1110
- package/manpages/doc/man/eggs.1.gz +0 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
5
5
|
const ink_1 = require("ink");
|
|
6
|
-
const utils_1 = tslib_1.__importDefault(require("./utils"));
|
|
7
|
-
const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
|
|
8
|
-
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
6
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
|
|
7
|
+
const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
|
|
8
|
+
const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
|
|
9
9
|
// libraries
|
|
10
10
|
const exec = require('../lib/utils').exec;
|
|
11
|
-
const welcome_1 = tslib_1.__importDefault(require("../components/welcome"));
|
|
12
|
-
const location_1 = tslib_1.__importDefault(require("../components/location"));
|
|
13
|
-
const partitions_1 = tslib_1.__importDefault(require("../components/partitions"));
|
|
14
|
-
const keyboard_1 = tslib_1.__importDefault(require("../components/keyboard"));
|
|
15
|
-
const users_1 = tslib_1.__importDefault(require("../components/users"));
|
|
16
|
-
const network_1 = tslib_1.__importDefault(require("../components/network"));
|
|
17
|
-
const summary_1 = tslib_1.__importDefault(require("../components/summary"));
|
|
18
|
-
const select_languages_1 = tslib_1.__importDefault(require("../lib/select_languages"));
|
|
19
|
-
const select_regions_1 = tslib_1.__importDefault(require("../lib/select_regions"));
|
|
20
|
-
const select_zones_1 = tslib_1.__importDefault(require("../lib/select_zones"));
|
|
21
|
-
const select_installation_device_1 = tslib_1.__importDefault(require("../lib/select_installation_device"));
|
|
22
|
-
const select_installation_mode_1 = tslib_1.__importDefault(require("../lib/select_installation_mode"));
|
|
23
|
-
const select_user_swap_choice_1 = tslib_1.__importDefault(require("../lib/select_user_swap_choice"));
|
|
24
|
-
const select_filesystem_type_1 = tslib_1.__importDefault(require("../lib/select_filesystem_type"));
|
|
25
|
-
const get_username_1 = tslib_1.__importDefault(require("../lib/get_username"));
|
|
26
|
-
const get_userfullname_1 = tslib_1.__importDefault(require("../lib/get_userfullname"));
|
|
27
|
-
const get_hostname_1 = tslib_1.__importDefault(require("../lib/get_hostname"));
|
|
28
|
-
const get_password_1 = tslib_1.__importDefault(require("../lib/get_password"));
|
|
29
|
-
const select_keyboard_layout_1 = tslib_1.__importDefault(require("../lib/select_keyboard_layout"));
|
|
30
|
-
const select_interface_1 = tslib_1.__importDefault(require("../lib/select_interface"));
|
|
31
|
-
const select_address_type_1 = tslib_1.__importDefault(require("../lib/select_address_type"));
|
|
32
|
-
const get_address_1 = tslib_1.__importDefault(require("../lib/get_address"));
|
|
33
|
-
const get_netmask_1 = tslib_1.__importDefault(require("../lib/get_netmask"));
|
|
34
|
-
const get_gateway_1 = tslib_1.__importDefault(require("../lib/get_gateway"));
|
|
35
|
-
const get_domain_1 = tslib_1.__importDefault(require("../lib/get_domain"));
|
|
36
|
-
const get_dns_1 = tslib_1.__importDefault(require("../lib/get_dns"));
|
|
37
|
-
const krill_install_1 = tslib_1.__importDefault(require("./krill_install"));
|
|
11
|
+
const welcome_1 = (0, tslib_1.__importDefault)(require("../components/welcome"));
|
|
12
|
+
const location_1 = (0, tslib_1.__importDefault)(require("../components/location"));
|
|
13
|
+
const partitions_1 = (0, tslib_1.__importDefault)(require("../components/partitions"));
|
|
14
|
+
const keyboard_1 = (0, tslib_1.__importDefault)(require("../components/keyboard"));
|
|
15
|
+
const users_1 = (0, tslib_1.__importDefault)(require("../components/users"));
|
|
16
|
+
const network_1 = (0, tslib_1.__importDefault)(require("../components/network"));
|
|
17
|
+
const summary_1 = (0, tslib_1.__importDefault)(require("../components/summary"));
|
|
18
|
+
const select_languages_1 = (0, tslib_1.__importDefault)(require("../lib/select_languages"));
|
|
19
|
+
const select_regions_1 = (0, tslib_1.__importDefault)(require("../lib/select_regions"));
|
|
20
|
+
const select_zones_1 = (0, tslib_1.__importDefault)(require("../lib/select_zones"));
|
|
21
|
+
const select_installation_device_1 = (0, tslib_1.__importDefault)(require("../lib/select_installation_device"));
|
|
22
|
+
const select_installation_mode_1 = (0, tslib_1.__importDefault)(require("../lib/select_installation_mode"));
|
|
23
|
+
const select_user_swap_choice_1 = (0, tslib_1.__importDefault)(require("../lib/select_user_swap_choice"));
|
|
24
|
+
const select_filesystem_type_1 = (0, tslib_1.__importDefault)(require("../lib/select_filesystem_type"));
|
|
25
|
+
const get_username_1 = (0, tslib_1.__importDefault)(require("../lib/get_username"));
|
|
26
|
+
const get_userfullname_1 = (0, tslib_1.__importDefault)(require("../lib/get_userfullname"));
|
|
27
|
+
const get_hostname_1 = (0, tslib_1.__importDefault)(require("../lib/get_hostname"));
|
|
28
|
+
const get_password_1 = (0, tslib_1.__importDefault)(require("../lib/get_password"));
|
|
29
|
+
const select_keyboard_layout_1 = (0, tslib_1.__importDefault)(require("../lib/select_keyboard_layout"));
|
|
30
|
+
const select_interface_1 = (0, tslib_1.__importDefault)(require("../lib/select_interface"));
|
|
31
|
+
const select_address_type_1 = (0, tslib_1.__importDefault)(require("../lib/select_address_type"));
|
|
32
|
+
const get_address_1 = (0, tslib_1.__importDefault)(require("../lib/get_address"));
|
|
33
|
+
const get_netmask_1 = (0, tslib_1.__importDefault)(require("../lib/get_netmask"));
|
|
34
|
+
const get_gateway_1 = (0, tslib_1.__importDefault)(require("../lib/get_gateway"));
|
|
35
|
+
const get_domain_1 = (0, tslib_1.__importDefault)(require("../lib/get_domain"));
|
|
36
|
+
const get_dns_1 = (0, tslib_1.__importDefault)(require("../lib/get_dns"));
|
|
37
|
+
const krill_install_1 = (0, tslib_1.__importDefault)(require("./krill_install"));
|
|
38
38
|
class Krill {
|
|
39
39
|
async prepare() {
|
|
40
40
|
const oWelcome = await this.welcome();
|
|
@@ -62,7 +62,7 @@ class Krill {
|
|
|
62
62
|
}
|
|
63
63
|
welcomeElem = react_1.default.createElement(welcome_1.default, { language: language });
|
|
64
64
|
redraw(welcomeElem);
|
|
65
|
-
language = await select_languages_1.default();
|
|
65
|
+
language = await (0, select_languages_1.default)();
|
|
66
66
|
}
|
|
67
67
|
return { language: language };
|
|
68
68
|
}
|
|
@@ -84,10 +84,10 @@ class Krill {
|
|
|
84
84
|
}
|
|
85
85
|
locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
|
|
86
86
|
redraw(locationElem);
|
|
87
|
-
region = await select_regions_1.default();
|
|
87
|
+
region = await (0, select_regions_1.default)();
|
|
88
88
|
locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
|
|
89
89
|
redraw(locationElem);
|
|
90
|
-
zone = await select_zones_1.default(region);
|
|
90
|
+
zone = await (0, select_zones_1.default)(region);
|
|
91
91
|
}
|
|
92
92
|
return {
|
|
93
93
|
language: language,
|
|
@@ -117,7 +117,7 @@ class Krill {
|
|
|
117
117
|
keyboardLayout = '';
|
|
118
118
|
keyboardVariant = '';
|
|
119
119
|
}
|
|
120
|
-
keyboardLayout = await select_keyboard_layout_1.default();
|
|
120
|
+
keyboardLayout = await (0, select_keyboard_layout_1.default)();
|
|
121
121
|
}
|
|
122
122
|
return {
|
|
123
123
|
keyboardModel: keyboardModel,
|
|
@@ -147,16 +147,16 @@ class Krill {
|
|
|
147
147
|
}
|
|
148
148
|
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
149
149
|
redraw(partitionsElem);
|
|
150
|
-
installationDevice = await select_installation_device_1.default();
|
|
150
|
+
installationDevice = await (0, select_installation_device_1.default)();
|
|
151
151
|
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
152
152
|
redraw(partitionsElem);
|
|
153
|
-
installationMode = await select_installation_mode_1.default();
|
|
153
|
+
installationMode = await (0, select_installation_mode_1.default)();
|
|
154
154
|
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
155
155
|
redraw(partitionsElem);
|
|
156
|
-
filesystemType = await select_filesystem_type_1.default();
|
|
156
|
+
filesystemType = await (0, select_filesystem_type_1.default)();
|
|
157
157
|
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
158
158
|
redraw(partitionsElem);
|
|
159
|
-
userSwapChoice = await select_user_swap_choice_1.default();
|
|
159
|
+
userSwapChoice = await (0, select_user_swap_choice_1.default)();
|
|
160
160
|
}
|
|
161
161
|
return {
|
|
162
162
|
installationDevice: installationDevice,
|
|
@@ -184,16 +184,16 @@ class Krill {
|
|
|
184
184
|
}
|
|
185
185
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
186
186
|
redraw(usersElem);
|
|
187
|
-
name = await get_username_1.default(name);
|
|
187
|
+
name = await (0, get_username_1.default)(name);
|
|
188
188
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
189
189
|
redraw(usersElem);
|
|
190
|
-
fullname = await get_userfullname_1.default(fullname);
|
|
190
|
+
fullname = await (0, get_userfullname_1.default)(fullname);
|
|
191
191
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
192
192
|
redraw(usersElem);
|
|
193
|
-
password = await get_password_1.default(password);
|
|
193
|
+
password = await (0, get_password_1.default)(password);
|
|
194
194
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
195
195
|
redraw(usersElem);
|
|
196
|
-
hostname = await get_hostname_1.default(hostname);
|
|
196
|
+
hostname = await (0, get_hostname_1.default)(hostname);
|
|
197
197
|
}
|
|
198
198
|
return {
|
|
199
199
|
name: name,
|
|
@@ -230,14 +230,14 @@ class Krill {
|
|
|
230
230
|
if (await confirm(networkElem, "Confirm Network datas?")) {
|
|
231
231
|
break;
|
|
232
232
|
}
|
|
233
|
-
i.iface = await select_interface_1.default(i.iface, ifaces);
|
|
234
|
-
i.addressType = await select_address_type_1.default();
|
|
233
|
+
i.iface = await (0, select_interface_1.default)(i.iface, ifaces);
|
|
234
|
+
i.addressType = await (0, select_address_type_1.default)();
|
|
235
235
|
if (i.addressType === 'static') {
|
|
236
|
-
i.address = await get_address_1.default(i.address);
|
|
237
|
-
i.netmask = await get_netmask_1.default(i.netmask);
|
|
238
|
-
i.gateway = await get_gateway_1.default(i.gateway);
|
|
239
|
-
i.domain = await get_domain_1.default(i.domain);
|
|
240
|
-
i.dns = (await get_dns_1.default(dnsString)).split(';');
|
|
236
|
+
i.address = await (0, get_address_1.default)(i.address);
|
|
237
|
+
i.netmask = await (0, get_netmask_1.default)(i.netmask);
|
|
238
|
+
i.gateway = await (0, get_gateway_1.default)(i.gateway);
|
|
239
|
+
i.domain = await (0, get_domain_1.default)(i.domain);
|
|
240
|
+
i.dns = (await (0, get_dns_1.default)(dnsString)).split(';');
|
|
241
241
|
dnsString = '';
|
|
242
242
|
for (let c = 0; c < i.dns.length; c++) {
|
|
243
243
|
dnsString += i.dns[c].trim();
|
|
@@ -296,7 +296,7 @@ function redraw(elem) {
|
|
|
296
296
|
opt.patchConsole = false;
|
|
297
297
|
opt.debug = false;
|
|
298
298
|
shelljs_1.default.exec('clear');
|
|
299
|
-
ink_1.render(elem, opt);
|
|
299
|
+
(0, ink_1.render)(elem, opt);
|
|
300
300
|
}
|
|
301
301
|
function netmask2CIDR(mask) {
|
|
302
302
|
const countCharOccurences = (string, char) => string.split(char).length - 1;
|
package/lib/classes/n8.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
|
|
10
11
|
class n8 {
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
@@ -15,21 +16,21 @@ class n8 {
|
|
|
15
16
|
static isDirectory(name) {
|
|
16
17
|
// console.log (`isDirectory: ${name}`)
|
|
17
18
|
const path = '/' + name;
|
|
18
|
-
const isDirectory =
|
|
19
|
+
const isDirectory = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isDirectory();
|
|
19
20
|
// console.log(`path: ${path} isDirectory: ${isDirectory}`)
|
|
20
21
|
return isDirectory;
|
|
21
22
|
}
|
|
22
23
|
static isFile(name) {
|
|
23
24
|
// console.log (`isFile: ${name}`)
|
|
24
25
|
const path = '/' + name;
|
|
25
|
-
const isFile =
|
|
26
|
+
const isFile = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isFile();
|
|
26
27
|
// console.log(`path: ${path} isFile: ${isFile}`)
|
|
27
28
|
return isFile;
|
|
28
29
|
}
|
|
29
30
|
static isSymbolicLink(name) {
|
|
30
31
|
// console.log (`isSymbolicLink: ${name}`)
|
|
31
32
|
const path = '/' + name;
|
|
32
|
-
const isSymbolicLink =
|
|
33
|
+
const isSymbolicLink = node_fs_1.default.existsSync(path) && node_fs_1.default.lstatSync(path).isSymbolicLink();
|
|
33
34
|
// console.log(`path: ${path} isSymbolicLink: ${isSymbolicLink}`)
|
|
34
35
|
return isSymbolicLink;
|
|
35
36
|
}
|
|
@@ -37,13 +38,7 @@ class n8 {
|
|
|
37
38
|
// const util = require('util')
|
|
38
39
|
// console.log(util.inspect(dir, false, null, true /* enable colors */))
|
|
39
40
|
let dirname = '';
|
|
40
|
-
|
|
41
|
-
dirname = JSON.stringify(dir).replace(`"`, ``).replace(`"`, ``);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
// se Node>8 restituisce dirent.name
|
|
45
|
-
dirname = dir.name;
|
|
46
|
-
}
|
|
41
|
+
dirname = process.versions.node.split('.')[0] === '8' ? JSON.stringify(dir).replace('"', '').replace('"', '') : dir.name;
|
|
47
42
|
return dirname;
|
|
48
43
|
}
|
|
49
44
|
}
|
package/lib/classes/ovary.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class Ovary {
|
|
|
8
8
|
toNull: string;
|
|
9
9
|
incubator: Incubator;
|
|
10
10
|
settings: Settings;
|
|
11
|
+
familyId: string;
|
|
11
12
|
snapshot_prefix: string;
|
|
12
13
|
snapshot_basename: string;
|
|
13
14
|
theme: string;
|
|
@@ -42,8 +43,8 @@ export default class Ovary {
|
|
|
42
43
|
*/
|
|
43
44
|
editLiveFs(verbose?: boolean): Promise<void>;
|
|
44
45
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
* syslinux
|
|
47
|
+
*/
|
|
47
48
|
syslinux(verbose?: boolean): Promise<void>;
|
|
48
49
|
/**
|
|
49
50
|
* async isolinux
|
|
@@ -52,7 +53,17 @@ export default class Ovary {
|
|
|
52
53
|
/**
|
|
53
54
|
* copy kernel
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
+
kernelCopy(verbose?: boolean): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* necessita di verbose
|
|
59
|
+
*/
|
|
60
|
+
initrdCreate(verbose?: boolean): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param verbose
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
initrdCopy(verbose?: boolean): Promise<void>;
|
|
56
67
|
/**
|
|
57
68
|
* squashFs: crea in live filesystem.squashfs
|
|
58
69
|
*/
|
|
@@ -128,7 +139,7 @@ export default class Ovary {
|
|
|
128
139
|
/**
|
|
129
140
|
*
|
|
130
141
|
*/
|
|
131
|
-
|
|
142
|
+
createXdgAutostart(theme: string | undefined, myAddons: IMyAddons, verbose?: boolean): Promise<void>;
|
|
132
143
|
/**
|
|
133
144
|
* Creazione link desktop per lxde
|
|
134
145
|
* @param name
|
|
@@ -143,18 +154,25 @@ export default class Ovary {
|
|
|
143
154
|
addRemoveExclusion(add: boolean, exclusion: string): void;
|
|
144
155
|
/**
|
|
145
156
|
* makeEfi
|
|
146
|
-
|
|
147
|
-
*/
|
|
157
|
+
*/
|
|
148
158
|
makeEfi(theme?: string, verbose?: boolean): Promise<void>;
|
|
149
159
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
160
|
+
* makeDotDisk
|
|
161
|
+
* create .disk/info, .disk/mksquashfs, .disk/mkiso
|
|
162
|
+
* return mkiso
|
|
163
|
+
*/
|
|
164
|
+
makeDotDisk(backup?: boolean, verbose?: boolean): string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @param backup
|
|
168
|
+
* @returns cmd 4 mkiso
|
|
152
169
|
*/
|
|
153
|
-
|
|
170
|
+
xorrisoCommand(backup?: boolean): string;
|
|
154
171
|
/**
|
|
155
|
-
*
|
|
172
|
+
* makeIso
|
|
173
|
+
* cmd: cmd 4 xorirriso
|
|
156
174
|
*/
|
|
157
|
-
makeIso(
|
|
175
|
+
makeIso(cmd: string, scriptOnly?: boolean, verbose?: boolean): Promise<void>;
|
|
158
176
|
/**
|
|
159
177
|
* finished = show the results
|
|
160
178
|
* @param scriptOnly
|