penguins-eggs 8.1.0 → 9.0.9
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 +256 -167
- package/addons/README.md +78 -84
- package/addons/{pve → blissos}/theme/applications/install-debian.desktop +0 -0
- package/addons/{deblinux → blissos}/theme/artwork/install-debian.png +0 -0
- package/addons/blissos/theme/calamares/branding/blissos-logo.png +0 -0
- package/addons/{guadalinex → 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/{guadalinex → blissos}/theme/calamares/modules/partition.yml +1 -1
- package/addons/blissos/theme/livecd/README.md +23 -0
- package/{conf/distros/buster/grub/theme.cfg → addons/blissos/theme/livecd/grub.theme.cfg} +10 -10
- package/{conf/distros/buster/isolinux/stdmenu.template.cfg → addons/blissos/theme/livecd/isolinux.theme.cfg} +4 -0
- package/addons/blissos/theme/livecd/splash.png +0 -0
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
- package/addons/eggs/theme/livecd/README.md +21 -6
- package/addons/eggs/theme/livecd/{theme.cfg → grub.theme.cfg} +13 -12
- package/addons/eggs/theme/livecd/isolinux.theme.cfg +46 -0
- package/addons/eggs/theme/livecd/splash.png +0 -0
- package/addons/neon/theme/livecd/README.md +23 -0
- package/addons/{ufficiozero/theme/livecd/theme.cfg → neon/theme/livecd/grub.theme.cfg} +13 -12
- 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/templates/grub.template +28 -0
- package/addons/templates/isolinux.template +29 -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/calamares-modules/sources-yolk/sources-yolk.sh +1 -1
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.working.sh +1 -1
- 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/jessie/krill/krill-modules/sources-yolk/sources-yolk.sh +1 -1
- 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 +3 -3
- package/conf/exclude.list +12 -7
- package/conf/tools.yaml +1 -1
- package/lib/classes/basket.js +24 -20
- package/lib/classes/bleach.js +19 -19
- package/lib/classes/compressors.js +15 -14
- package/lib/classes/daddy.js +44 -31
- package/lib/classes/distro.d.ts +3 -2
- package/lib/classes/distro.js +313 -173
- package/lib/classes/family/archlinux.d.ts +69 -0
- package/lib/classes/family/archlinux.js +182 -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 +155 -138
- package/lib/classes/krill_prepare.d.ts +6 -2
- package/lib/classes/krill_prepare.js +72 -60
- package/lib/classes/n8.js +6 -11
- package/lib/classes/ovary.d.ts +29 -11
- package/lib/classes/ovary.js +750 -611
- package/lib/classes/pacman.d.ts +55 -56
- package/lib/classes/pacman.js +520 -419
- package/lib/classes/pve-live.js +6 -6
- package/lib/classes/settings.js +47 -56
- 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 +10 -13
- package/lib/classes/utils.js +128 -107
- package/lib/classes/xdg.js +112 -91
- package/lib/classes/yolk.js +38 -31
- 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 +5 -4
- package/lib/commands/install.js +25 -15
- 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 +48 -46
- 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 +13 -13
- 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.d.ts +2 -1
- package/lib/components/partitions.js +9 -7
- 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-krill.d.ts +1 -0
- 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 +3 -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/manpages/doc/man/eggs.html +508 -0
- package/manpages/doc/man/eggs.roll.gz +0 -0
- package/oclif.manifest.json +1 -1
- package/package.json +115 -107
- package/scripts/_eggs +246 -0
- package/scripts/bros/waydroid-helper.sh +92 -0
- package/scripts/eggs.bash +67 -21
- package/scripts/mom-cli.sh +6 -5
- 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/debian/theme/applications/install-debian.desktop +0 -13
- package/addons/debian/theme/artwork/install-debian.png +0 -0
- package/addons/debian/theme/branding/branding.desc +0 -27
- package/addons/debian/theme/branding/debian-logo.png +0 -0
- package/addons/debian/theme/branding/show.qml +0 -51
- package/addons/debian/theme/branding/slide1.png +0 -0
- package/addons/debian/theme/branding/welcome.png +0 -0
- package/addons/deblinux/theme/README.md +0 -16
- package/addons/deblinux/theme/applications/install-debian.desktop +0 -13
- package/addons/deblinux/theme/calamares/branding/branding.desc +0 -23
- package/addons/deblinux/theme/calamares/branding/deblinux-logo.png +0 -0
- package/addons/deblinux/theme/calamares/branding/show.qml +0 -46
- package/addons/deblinux/theme/calamares/branding/slide1.png +0 -0
- package/addons/deblinux/theme/calamares/branding/welcome.png +0 -0
- package/addons/deblinux/theme/calamares/modules/partition.yml +0 -233
- package/addons/eggs/theme/livecd/grub.template.cfg +0 -60
- package/addons/eggs/theme/livecd/menu.template.cfg +0 -54
- package/addons/guadalinex/theme/README.md +0 -9
- package/addons/guadalinex/theme/applications/install-debian.desktop +0 -28
- package/addons/guadalinex/theme/artwork/install-debian.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/guadalinex-logo.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/show.qml +0 -85
- package/addons/guadalinex/theme/calamares/branding/slide1.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide2.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide3.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide4.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide5.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide6.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide7.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/welcome.png +0 -0
- package/addons/guadalinex/theme/livecd/menu.template.cfg +0 -54
- package/addons/guadalinex/theme/livecd/splash.png +0 -0
- package/addons/guadalinex/theme/livecd/theme.cfg +0 -42
- package/addons/openos/theme/applications/Install-OpenOS-Neon_RLTS-Desktop.png +0 -0
- package/addons/openos/theme/applications/install-debian.desktop +0 -24
- package/addons/openos/theme/artwork/install-debian.png +0 -0
- package/addons/openos/theme/calamares/branding/branding.desc +0 -28
- package/addons/openos/theme/calamares/branding/openos-logo.png +0 -0
- package/addons/openos/theme/calamares/branding/show.qml +0 -203
- package/addons/openos/theme/calamares/branding/slide1.png +0 -0
- package/addons/openos/theme/calamares/branding/slide10.png +0 -0
- package/addons/openos/theme/calamares/branding/slide11.png +0 -0
- package/addons/openos/theme/calamares/branding/slide12.png +0 -0
- package/addons/openos/theme/calamares/branding/slide13.png +0 -0
- package/addons/openos/theme/calamares/branding/slide14.png +0 -0
- package/addons/openos/theme/calamares/branding/slide15.png +0 -0
- package/addons/openos/theme/calamares/branding/slide16.png +0 -0
- package/addons/openos/theme/calamares/branding/slide2.png +0 -0
- package/addons/openos/theme/calamares/branding/slide3.png +0 -0
- package/addons/openos/theme/calamares/branding/slide4.png +0 -0
- package/addons/openos/theme/calamares/branding/slide5.png +0 -0
- package/addons/openos/theme/calamares/branding/slide6.png +0 -0
- package/addons/openos/theme/calamares/branding/slide7.png +0 -0
- package/addons/openos/theme/calamares/branding/slide8.png +0 -0
- package/addons/openos/theme/calamares/branding/slide9.png +0 -0
- package/addons/openos/theme/calamares/branding/welcome.png +0 -0
- package/addons/openos/theme/calamares/branding.desc +0 -24
- package/addons/openos/theme/calamares/lang/calamares-default_ar.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_en.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_eo.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_fr.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_nl.qm +0 -0
- package/addons/openos/theme/calamares/modules/partition.yml +0 -233
- package/addons/openos/theme/livecd/grub.template.cfg +0 -60
- package/addons/openos/theme/livecd/menu.template.cfg +0 -54
- package/addons/openos/theme/livecd/splash.png +0 -0
- package/addons/openos/theme/livecd/theme.cfg +0 -42
- package/addons/pve/theme/applications/penguins-pve.desktop +0 -24
- package/addons/pve/theme/artwork/install-debian.png +0 -0
- package/addons/pve/theme/calamares/branding/branding.desc +0 -1
- 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/calamares/modules/partition.yml +0 -233
- 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/pve/theme/livecd/theme.cfg +0 -42
- 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 -130
- 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/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,7 +1,11 @@
|
|
|
1
1
|
import { INet } from '../interfaces';
|
|
2
2
|
import { IWelcome, ILocation, IKeyboard, IPartitions, IUsers } from '../interfaces/i-krill';
|
|
3
3
|
export default class Krill {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param cryped
|
|
7
|
+
*/
|
|
8
|
+
prepare(cryped?: boolean): Promise<void>;
|
|
5
9
|
/**
|
|
6
10
|
* WELCOME
|
|
7
11
|
*/
|
|
@@ -17,7 +21,7 @@ export default class Krill {
|
|
|
17
21
|
/**
|
|
18
22
|
* PARTITIONS
|
|
19
23
|
*/
|
|
20
|
-
partitions(): Promise<IPartitions>;
|
|
24
|
+
partitions(crypted?: boolean): Promise<IPartitions>;
|
|
21
25
|
/**
|
|
22
26
|
* USERS
|
|
23
27
|
*/
|
|
@@ -1,46 +1,50 @@
|
|
|
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
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param cryped
|
|
42
|
+
*/
|
|
43
|
+
async prepare(cryped = false) {
|
|
40
44
|
const oWelcome = await this.welcome();
|
|
41
45
|
const oLocation = await this.location(oWelcome.language);
|
|
42
46
|
const oKeyboard = await this.keyboard();
|
|
43
|
-
const oPartitions = await this.partitions();
|
|
47
|
+
const oPartitions = await this.partitions(cryped);
|
|
44
48
|
const oUsers = await this.users();
|
|
45
49
|
const oNetwork = await this.network();
|
|
46
50
|
await this.summary(oLocation, oKeyboard, oPartitions);
|
|
@@ -62,7 +66,7 @@ class Krill {
|
|
|
62
66
|
}
|
|
63
67
|
welcomeElem = react_1.default.createElement(welcome_1.default, { language: language });
|
|
64
68
|
redraw(welcomeElem);
|
|
65
|
-
language = await select_languages_1.default();
|
|
69
|
+
language = await (0, select_languages_1.default)();
|
|
66
70
|
}
|
|
67
71
|
return { language: language };
|
|
68
72
|
}
|
|
@@ -84,10 +88,10 @@ class Krill {
|
|
|
84
88
|
}
|
|
85
89
|
locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
|
|
86
90
|
redraw(locationElem);
|
|
87
|
-
region = await select_regions_1.default();
|
|
91
|
+
region = await (0, select_regions_1.default)();
|
|
88
92
|
locationElem = react_1.default.createElement(location_1.default, { language: language, region: region, zone: zone });
|
|
89
93
|
redraw(locationElem);
|
|
90
|
-
zone = await select_zones_1.default(region);
|
|
94
|
+
zone = await (0, select_zones_1.default)(region);
|
|
91
95
|
}
|
|
92
96
|
return {
|
|
93
97
|
language: language,
|
|
@@ -117,7 +121,7 @@ class Krill {
|
|
|
117
121
|
keyboardLayout = '';
|
|
118
122
|
keyboardVariant = '';
|
|
119
123
|
}
|
|
120
|
-
keyboardLayout = await select_keyboard_layout_1.default();
|
|
124
|
+
keyboardLayout = await (0, select_keyboard_layout_1.default)();
|
|
121
125
|
}
|
|
122
126
|
return {
|
|
123
127
|
keyboardModel: keyboardModel,
|
|
@@ -128,39 +132,47 @@ class Krill {
|
|
|
128
132
|
/**
|
|
129
133
|
* PARTITIONS
|
|
130
134
|
*/
|
|
131
|
-
async partitions() {
|
|
135
|
+
async partitions(crypted = false) {
|
|
132
136
|
let installationDevice = '/dev/sda';
|
|
133
137
|
let installationMode = 'standard';
|
|
138
|
+
let luksPassphrase = 'evolution';
|
|
134
139
|
let filesystemType = 'ext4';
|
|
135
140
|
let userSwapChoice = 'small';
|
|
141
|
+
if (crypted = true) {
|
|
142
|
+
installationMode = 'full-encrypted';
|
|
143
|
+
}
|
|
136
144
|
let partitionsElem;
|
|
137
145
|
while (true) {
|
|
138
|
-
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
146
|
+
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
139
147
|
if (await confirm(partitionsElem, "Confirm Partitions datas?")) {
|
|
140
148
|
break;
|
|
141
149
|
}
|
|
142
150
|
else {
|
|
143
151
|
installationDevice = '';
|
|
144
|
-
|
|
152
|
+
if (crypted = true) {
|
|
153
|
+
installationMode = 'full-encrypted';
|
|
154
|
+
}
|
|
155
|
+
luksPassphrase = 'evolution';
|
|
145
156
|
filesystemType = '';
|
|
146
157
|
userSwapChoice = '';
|
|
147
158
|
}
|
|
148
|
-
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
159
|
+
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
149
160
|
redraw(partitionsElem);
|
|
150
|
-
installationDevice = await select_installation_device_1.default();
|
|
151
|
-
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
161
|
+
installationDevice = await (0, select_installation_device_1.default)();
|
|
162
|
+
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
152
163
|
redraw(partitionsElem);
|
|
153
|
-
installationMode = await select_installation_mode_1.default();
|
|
154
|
-
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
164
|
+
installationMode = await (0, select_installation_mode_1.default)();
|
|
165
|
+
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
155
166
|
redraw(partitionsElem);
|
|
156
|
-
filesystemType = await select_filesystem_type_1.default();
|
|
157
|
-
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
167
|
+
filesystemType = await (0, select_filesystem_type_1.default)();
|
|
168
|
+
partitionsElem = react_1.default.createElement(partitions_1.default, { installationDevice: installationDevice, installationMode: installationMode, luksPassphrase: luksPassphrase, filesystemType: filesystemType, userSwapChoice: userSwapChoice });
|
|
158
169
|
redraw(partitionsElem);
|
|
159
|
-
userSwapChoice = await select_user_swap_choice_1.default();
|
|
170
|
+
userSwapChoice = await (0, select_user_swap_choice_1.default)();
|
|
160
171
|
}
|
|
161
172
|
return {
|
|
162
173
|
installationDevice: installationDevice,
|
|
163
174
|
installationMode: installationMode,
|
|
175
|
+
luksPassphrase: luksPassphrase,
|
|
164
176
|
filesystemType: filesystemType,
|
|
165
177
|
userSwapChoice: userSwapChoice
|
|
166
178
|
};
|
|
@@ -184,16 +196,16 @@ class Krill {
|
|
|
184
196
|
}
|
|
185
197
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
186
198
|
redraw(usersElem);
|
|
187
|
-
name = await get_username_1.default(name);
|
|
199
|
+
name = await (0, get_username_1.default)(name);
|
|
188
200
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
189
201
|
redraw(usersElem);
|
|
190
|
-
fullname = await get_userfullname_1.default(fullname);
|
|
202
|
+
fullname = await (0, get_userfullname_1.default)(fullname);
|
|
191
203
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
192
204
|
redraw(usersElem);
|
|
193
|
-
password = await get_password_1.default(password);
|
|
205
|
+
password = await (0, get_password_1.default)(password);
|
|
194
206
|
usersElem = react_1.default.createElement(users_1.default, { name: name, fullname: fullname, hostname: hostname, password: password, rootPassword: rootPassword, autologin: autologin, sameUserPassword: sameUserPassword });
|
|
195
207
|
redraw(usersElem);
|
|
196
|
-
hostname = await get_hostname_1.default(hostname);
|
|
208
|
+
hostname = await (0, get_hostname_1.default)(hostname);
|
|
197
209
|
}
|
|
198
210
|
return {
|
|
199
211
|
name: name,
|
|
@@ -230,14 +242,14 @@ class Krill {
|
|
|
230
242
|
if (await confirm(networkElem, "Confirm Network datas?")) {
|
|
231
243
|
break;
|
|
232
244
|
}
|
|
233
|
-
i.iface = await select_interface_1.default(i.iface, ifaces);
|
|
234
|
-
i.addressType = await select_address_type_1.default();
|
|
245
|
+
i.iface = await (0, select_interface_1.default)(i.iface, ifaces);
|
|
246
|
+
i.addressType = await (0, select_address_type_1.default)();
|
|
235
247
|
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(';');
|
|
248
|
+
i.address = await (0, get_address_1.default)(i.address);
|
|
249
|
+
i.netmask = await (0, get_netmask_1.default)(i.netmask);
|
|
250
|
+
i.gateway = await (0, get_gateway_1.default)(i.gateway);
|
|
251
|
+
i.domain = await (0, get_domain_1.default)(i.domain);
|
|
252
|
+
i.dns = (await (0, get_dns_1.default)(dnsString)).split(';');
|
|
241
253
|
dnsString = '';
|
|
242
254
|
for (let c = 0; c < i.dns.length; c++) {
|
|
243
255
|
dnsString += i.dns[c].trim();
|
|
@@ -296,7 +308,7 @@ function redraw(elem) {
|
|
|
296
308
|
opt.patchConsole = false;
|
|
297
309
|
opt.debug = false;
|
|
298
310
|
shelljs_1.default.exec('clear');
|
|
299
|
-
ink_1.render(elem, opt);
|
|
311
|
+
(0, ink_1.render)(elem, opt);
|
|
300
312
|
}
|
|
301
313
|
function netmask2CIDR(mask) {
|
|
302
314
|
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
|