penguins-eggs 25.10.28 → 25.11.8
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 +4 -4
- package/README.md +770 -3
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +0 -0
- package/addons/eggs/pve/applications/eggs-pve.desktop +0 -0
- package/addons/eggs/rsupport/applications/eggs-rsupport.desktop +0 -0
- package/addons/eggs/theme/applications/install-system.desktop +8 -6
- package/assets/calamares/install-system.sh +0 -0
- package/assets/calamares/io.calamares.calamares.policy +25 -0
- package/assets/penguins-eggs.desktop +0 -0
- package/assets/penguins-krill.desktop +0 -0
- package/assets/penguins-links-add.desktop +0 -0
- package/assets/penguins-live-installer.desktop +0 -0
- package/bin/dev.js +0 -0
- package/conf/distros/alpine/calamares/calamares-modules/machineid-openrc/machineid-openrc.sh +0 -0
- package/conf/distros/alpine/calamares/modules/packages.mustache +1 -0
- package/conf/distros/alpine/calamares/modules/removeuser.mustache +2 -14
- package/conf/distros/alpine/calamares/modules/unpackfs.mustache +2 -2
- package/conf/distros/buster/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/buster/calamares/modules/shellprocess@boot_deploy.yml +1 -16
- package/conf/distros/fedora/calamares/calamares-modules/bootloaderspecification/bootloaderspecification.sh +0 -0
- package/conf/distros/noble/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/noble/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-aptsources.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-l10n-helper.sh +0 -0
- package/conf/distros/noble/calamares/libexec/calamares-logs-helper.sh +1 -1
- package/conf/distros/noble/calamares/libexec/calamares-nomodeset.sh +0 -0
- package/conf/distros/noble/calamares/modules/shellprocess@boot_deploy.yml +1 -11
- package/conf/distros/noble/calamares/modules/shellprocess@logs.yml +1 -1
- package/conf/distros/opensuse/calamares/calamares-modules/bootloaderspecification/bootloaderspecification.sh +0 -0
- package/conf/distros/opensuse/calamares/settings.yml +0 -0
- package/conf/distros/opensuse/calamares/zstd2lzo.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/cleanup/cleanup.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +0 -0
- package/conf/distros/trixie/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/trixie/calamares/modules/shellprocess@boot_deploy.yml +2 -10
- package/conf/init/unattended.sh +0 -0
- package/dist/classes/bleach.d.ts +37 -0
- package/dist/classes/bleach.js +148 -0
- package/dist/classes/cli-autologin.d.ts +14 -0
- package/dist/classes/cli-autologin.js +227 -0
- package/dist/classes/compressors.d.ts +54 -0
- package/dist/classes/compressors.js +109 -0
- package/dist/classes/daddy.d.ts +44 -0
- package/dist/classes/daddy.js +208 -0
- package/dist/classes/distro-hossein.d.ts +52 -0
- package/dist/classes/distro-hossein.js +239 -0
- package/dist/classes/distro.d.ts +32 -0
- package/dist/classes/distro.js +363 -0
- package/dist/classes/diversions.d.ts +19 -0
- package/dist/classes/diversions.js +100 -0
- package/dist/classes/incubation/branding.d.ts +17 -0
- package/dist/classes/incubation/branding.js +85 -0
- package/dist/classes/incubation/customize/customize-partitions.d.ts +12 -0
- package/dist/classes/incubation/customize/customize-partitions.js +37 -0
- package/dist/classes/incubation/fisherman-helper/initcpio.d.ts +1 -0
- package/dist/classes/incubation/fisherman-helper/initcpio.js +69 -0
- package/dist/classes/incubation/fisherman-helper/packages.d.ts +20 -0
- package/dist/classes/incubation/fisherman-helper/packages.js +72 -0
- package/dist/classes/incubation/fisherman-helper/settings.d.ts +15 -0
- package/dist/classes/incubation/fisherman-helper/settings.js +116 -0
- package/dist/classes/incubation/fisherman.d.ts +76 -0
- package/dist/classes/incubation/fisherman.js +301 -0
- package/dist/classes/incubation/incubator.d/alpine.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/alpine.js +78 -0
- package/dist/classes/incubation/incubator.d/archlinux.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/archlinux.js +82 -0
- package/dist/classes/incubation/incubator.d/bionic.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/bionic.js +83 -0
- package/dist/classes/incubation/incubator.d/buster.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/buster.js +101 -0
- package/dist/classes/incubation/incubator.d/fedora.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/fedora.js +81 -0
- package/dist/classes/incubation/incubator.d/manjaro.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/manjaro.js +82 -0
- package/dist/classes/incubation/incubator.d/noble.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/noble.js +106 -0
- package/dist/classes/incubation/incubator.d/openmamba.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/openmamba.js +81 -0
- package/dist/classes/incubation/incubator.d/opensuse.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/opensuse.js +81 -0
- package/dist/classes/incubation/incubator.d/trixie.d.ts +32 -0
- package/dist/classes/incubation/incubator.d/trixie.js +98 -0
- package/dist/classes/incubation/incubator.d.ts +49 -0
- package/dist/classes/incubation/incubator.js +382 -0
- package/dist/classes/incubation/installer.d.ts +13 -0
- package/dist/classes/incubation/installer.js +52 -0
- package/dist/classes/keyboards.d.ts +31 -0
- package/dist/classes/keyboards.js +136 -0
- package/dist/classes/locales.d.ts +21 -0
- package/dist/classes/locales.js +77 -0
- package/dist/classes/network.d.ts +37 -0
- package/dist/classes/network.js +98 -0
- package/dist/classes/ovary.d/bind-live-fs.d.ts +18 -0
- package/dist/classes/ovary.d/bind-live-fs.js +185 -0
- package/dist/classes/ovary.d/bind-vfs.d.ts +17 -0
- package/dist/classes/ovary.d/bind-vfs.js +37 -0
- package/dist/classes/ovary.d/create-xdg-autostart.d.ts +13 -0
- package/dist/classes/ovary.d/create-xdg-autostart.js +193 -0
- package/dist/classes/ovary.d/edit-live-fs.d.ts +20 -0
- package/dist/classes/ovary.d/edit-live-fs.js +239 -0
- package/dist/classes/ovary.d/fertilization.d.ts +12 -0
- package/dist/classes/ovary.d/fertilization.js +53 -0
- package/dist/classes/ovary.d/finished.d.ts +13 -0
- package/dist/classes/ovary.d/finished.js +40 -0
- package/dist/classes/ovary.d/initrd.d.ts +21 -0
- package/dist/classes/ovary.d/initrd.js +91 -0
- package/dist/classes/ovary.d/kernel-copy.d.ts +12 -0
- package/dist/classes/ovary.d/kernel-copy.js +22 -0
- package/dist/classes/ovary.d/live-create-structure.d.ts +12 -0
- package/dist/classes/ovary.d/live-create-structure.js +70 -0
- package/dist/classes/ovary.d/luks-get-password.d.ts +12 -0
- package/dist/classes/ovary.d/luks-get-password.js +58 -0
- package/dist/classes/ovary.d/luks-helpers.d.ts +19 -0
- package/dist/classes/ovary.d/luks-helpers.js +73 -0
- package/dist/classes/ovary.d/luks-home-support.d.ts +12 -0
- package/dist/classes/ovary.d/luks-home-support.js +70 -0
- package/dist/classes/ovary.d/luks-home.d.ts +15 -0
- package/dist/classes/ovary.d/luks-home.js +132 -0
- package/dist/classes/ovary.d/luks-interactive-crypto-config.d.ts +47 -0
- package/dist/classes/ovary.d/luks-interactive-crypto-config.js +139 -0
- package/dist/classes/ovary.d/luks-root-initrd.d.ts +17 -0
- package/dist/classes/ovary.d/luks-root-initrd.js +213 -0
- package/dist/classes/ovary.d/luks-root.d.ts +15 -0
- package/dist/classes/ovary.d/luks-root.js +123 -0
- package/dist/classes/ovary.d/make-dot-disk.d.ts +12 -0
- package/dist/classes/ovary.d/make-dot-disk.js +71 -0
- package/dist/classes/ovary.d/make-efi.d.ts +14 -0
- package/dist/classes/ovary.d/make-efi.js +296 -0
- package/dist/classes/ovary.d/make-iso.d.ts +13 -0
- package/dist/classes/ovary.d/make-iso.js +45 -0
- package/dist/classes/ovary.d/make-squashfs.d.ts +18 -0
- package/dist/classes/ovary.d/make-squashfs.js +111 -0
- package/dist/classes/ovary.d/merged.d.ts +27 -0
- package/dist/classes/ovary.d/merged.js +78 -0
- package/dist/classes/ovary.d/produce.d.ts +23 -0
- package/dist/classes/ovary.d/produce.js +349 -0
- package/dist/classes/ovary.d/rexec.d.ts +13 -0
- package/dist/classes/ovary.d/rexec.js +34 -0
- package/dist/classes/ovary.d/syslinux.d.ts +12 -0
- package/dist/classes/ovary.d/syslinux.js +99 -0
- package/dist/classes/ovary.d/user-create-live.d.ts +14 -0
- package/dist/classes/ovary.d/user-create-live.js +97 -0
- package/dist/classes/ovary.d/users-remove.d.ts +9 -0
- package/dist/classes/ovary.d/users-remove.js +38 -0
- package/dist/classes/ovary.d/xorriso-command.d.ts +14 -0
- package/dist/classes/ovary.d/xorriso-command.js +125 -0
- package/dist/classes/ovary.d.ts +111 -0
- package/dist/classes/ovary.js +122 -0
- package/dist/classes/pacman.d/alpine.d.ts +56 -0
- package/dist/classes/pacman.d/alpine.js +167 -0
- package/dist/classes/pacman.d/archlinux.d.ts +62 -0
- package/dist/classes/pacman.d/archlinux.js +128 -0
- package/dist/classes/pacman.d/debian.d.ts +65 -0
- package/dist/classes/pacman.d/debian.js +143 -0
- package/dist/classes/pacman.d/fedora.d.ts +53 -0
- package/dist/classes/pacman.d/fedora.js +107 -0
- package/dist/classes/pacman.d/openmamba.d.ts +52 -0
- package/dist/classes/pacman.d/openmamba.js +106 -0
- package/dist/classes/pacman.d/opensuse.d.ts +53 -0
- package/dist/classes/pacman.d/opensuse.js +109 -0
- package/dist/classes/pacman.d.ts +139 -0
- package/dist/classes/pacman.js +681 -0
- package/dist/classes/pve-live.d.ts +17 -0
- package/dist/classes/pve-live.js +52 -0
- package/dist/classes/pxe.d.ts +76 -0
- package/dist/classes/pxe.js +353 -0
- package/dist/classes/settings.d.ts +52 -0
- package/dist/classes/settings.js +185 -0
- package/dist/classes/sources_list.d.ts +28 -0
- package/dist/classes/sources_list.js +89 -0
- package/dist/classes/systemctl.d.ts +47 -0
- package/dist/classes/systemctl.js +86 -0
- package/dist/classes/tailor.d.ts +50 -0
- package/dist/classes/tailor.js +563 -0
- package/dist/classes/tools.d.ts +26 -0
- package/dist/classes/tools.js +50 -0
- package/dist/classes/users.d.ts +28 -0
- package/dist/classes/users.js +143 -0
- package/dist/classes/utils.d/kernel.d.ts +39 -0
- package/dist/classes/utils.d/kernel.js +206 -0
- package/dist/classes/utils.d.ts +330 -0
- package/dist/classes/utils.js +968 -0
- package/dist/classes/xdg.d.ts +45 -0
- package/dist/classes/xdg.js +337 -0
- package/dist/classes/yolk.d.ts +33 -0
- package/dist/classes/yolk.js +114 -0
- package/dist/commands/adapt.d.ts +17 -0
- package/dist/commands/adapt.js +33 -0
- package/dist/commands/analyze.d.ts +26 -0
- package/dist/commands/analyze.js +95 -0
- package/dist/commands/calamares.d.ts +29 -0
- package/dist/commands/calamares.js +112 -0
- package/dist/commands/config.d.ts +35 -0
- package/dist/commands/config.js +120 -0
- package/dist/commands/cuckoo.d.ts +17 -0
- package/dist/commands/cuckoo.js +61 -0
- package/dist/commands/dad.d.ts +21 -0
- package/dist/commands/dad.js +47 -0
- package/dist/commands/export/iso.d.ts +19 -0
- package/dist/commands/export/iso.js +55 -0
- package/dist/commands/export/pkg.d.ts +29 -0
- package/dist/commands/export/pkg.js +173 -0
- package/dist/commands/export/tarballs.d.ts +27 -0
- package/dist/commands/export/tarballs.js +79 -0
- package/dist/commands/install.d.ts +39 -0
- package/dist/commands/install.js +113 -0
- package/dist/commands/kill.d.ts +24 -0
- package/dist/commands/kill.js +50 -0
- package/dist/commands/love.d.ts +25 -0
- package/dist/commands/love.js +118 -0
- package/dist/commands/mom.d.ts +16 -0
- package/dist/commands/mom.js +30 -0
- package/dist/commands/pods.d.ts +22 -0
- package/dist/commands/pods.js +92 -0
- package/dist/commands/produce.d.ts +37 -0
- package/dist/commands/produce.js +232 -0
- package/dist/commands/status.d.ts +23 -0
- package/dist/commands/status.js +31 -0
- package/dist/commands/tools/clean.d.ts +18 -0
- package/dist/commands/tools/clean.js +37 -0
- package/dist/commands/tools/repo.d.ts +31 -0
- package/dist/commands/tools/repo.js +413 -0
- package/dist/commands/tools/skel.d.ts +18 -0
- package/dist/commands/tools/skel.js +44 -0
- package/dist/commands/tools/stat.d.ts +31 -0
- package/dist/commands/tools/stat.js +70 -0
- package/dist/commands/tools/yolk.d.ts +24 -0
- package/dist/commands/tools/yolk.js +45 -0
- package/dist/commands/update.d.ts +46 -0
- package/dist/commands/update.js +238 -0
- package/dist/commands/wardrobe/get.d.ts +23 -0
- package/dist/commands/wardrobe/get.js +52 -0
- package/dist/commands/wardrobe/list.d.ts +24 -0
- package/dist/commands/wardrobe/list.js +125 -0
- package/dist/commands/wardrobe/show.d.ts +25 -0
- package/dist/commands/wardrobe/show.js +97 -0
- package/dist/commands/wardrobe/wear.d.ts +26 -0
- package/dist/commands/wardrobe/wear.js +84 -0
- package/dist/dhcpd-proxy/classes/packet.d.ts +36 -0
- package/dist/dhcpd-proxy/classes/packet.js +124 -0
- package/dist/dhcpd-proxy/index.d.ts +4 -0
- package/dist/dhcpd-proxy/index.js +4 -0
- package/dist/dhcpd-proxy/interfaces/i-pxe.d.ts +45 -0
- package/dist/dhcpd-proxy/interfaces/i-pxe.js +1 -0
- package/dist/dhcpd-proxy/lib/packet/converters.d.ts +11 -0
- package/dist/dhcpd-proxy/lib/packet/converters.js +395 -0
- package/dist/dhcpd-proxy/lib/packet/message-types.d.ts +10 -0
- package/dist/dhcpd-proxy/lib/packet/message-types.js +12 -0
- package/dist/dhcpd-proxy/lib/packet/options.d.ts +8 -0
- package/dist/dhcpd-proxy/lib/packet/options.js +264 -0
- package/dist/dhcpd-proxy/lib/sprintf.d.ts +6 -0
- package/dist/dhcpd-proxy/lib/sprintf.js +130 -0
- package/dist/dhcpd-proxy/lib/utils.d.ts +126 -0
- package/dist/dhcpd-proxy/lib/utils.js +255 -0
- package/dist/dhcpd-proxy/simple-proxy.d.ts +11 -0
- package/dist/dhcpd-proxy/simple-proxy.js +118 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/interfaces/calamares/i-calamares-bootloader.d.ts +23 -0
- package/dist/interfaces/calamares/i-calamares-bootloader.js +7 -0
- package/dist/interfaces/calamares/i-calamares-branding.d.ts +46 -0
- package/dist/interfaces/calamares/i-calamares-branding.js +1 -0
- package/dist/interfaces/calamares/i-calamares-displaymanager.d.ts +34 -0
- package/dist/interfaces/calamares/i-calamares-displaymanager.js +1 -0
- package/dist/interfaces/calamares/i-calamares-finished.d.ts +14 -0
- package/dist/interfaces/calamares/i-calamares-finished.js +1 -0
- package/dist/interfaces/calamares/i-calamares-packages.d.ts +26 -0
- package/dist/interfaces/calamares/i-calamares-packages.js +1 -0
- package/dist/interfaces/calamares/i-calamares-partitions.d.ts +39 -0
- package/dist/interfaces/calamares/i-calamares-partitions.js +1 -0
- package/dist/interfaces/calamares/i-calamares-settings.d.ts +36 -0
- package/dist/interfaces/calamares/i-calamares-settings.js +1 -0
- package/dist/interfaces/i-addons.d.ts +12 -0
- package/dist/interfaces/i-addons.js +8 -0
- package/dist/interfaces/i-analyze.d.ts +17 -0
- package/dist/interfaces/i-analyze.js +17 -0
- package/dist/interfaces/i-app.d.ts +14 -0
- package/dist/interfaces/i-app.js +8 -0
- package/dist/interfaces/i-config-tools.d.ts +15 -0
- package/dist/interfaces/i-config-tools.js +8 -0
- package/dist/interfaces/i-devices.d.ts +20 -0
- package/dist/interfaces/i-devices.js +8 -0
- package/dist/interfaces/i-distro.d.ts +23 -0
- package/dist/interfaces/i-distro.js +8 -0
- package/dist/interfaces/i-drive-list.d.ts +33 -0
- package/dist/interfaces/i-drive-list.js +8 -0
- package/dist/interfaces/i-eggs-config.d.ts +32 -0
- package/dist/interfaces/i-eggs-config.js +8 -0
- package/dist/interfaces/i-excludes.d.ts +14 -0
- package/dist/interfaces/i-excludes.js +8 -0
- package/dist/interfaces/i-exec.d.ts +11 -0
- package/dist/interfaces/i-exec.js +8 -0
- package/dist/interfaces/i-initrd.d.ts +13 -0
- package/dist/interfaces/i-initrd.js +8 -0
- package/dist/interfaces/i-install.d.ts +16 -0
- package/dist/interfaces/i-install.js +8 -0
- package/dist/interfaces/i-installer.d.ts +17 -0
- package/dist/interfaces/i-installer.js +8 -0
- package/dist/interfaces/i-luks-passphrase.d.ts +11 -0
- package/dist/interfaces/i-luks-passphrase.js +8 -0
- package/dist/interfaces/i-materia.d.ts +36 -0
- package/dist/interfaces/i-materia.js +8 -0
- package/dist/interfaces/i-net.d.ts +16 -0
- package/dist/interfaces/i-net.js +8 -0
- package/dist/interfaces/i-os-release.d.ts +5 -0
- package/dist/interfaces/i-os-release.js +1 -0
- package/dist/interfaces/i-packages.d.ts +16 -0
- package/dist/interfaces/i-packages.js +8 -0
- package/dist/interfaces/i-partitions.d.ts +16 -0
- package/dist/interfaces/i-partitions.js +8 -0
- package/dist/interfaces/i-pxe.d.ts +45 -0
- package/dist/interfaces/i-pxe.js +1 -0
- package/dist/interfaces/i-remix.d.ts +21 -0
- package/dist/interfaces/i-remix.js +8 -0
- package/dist/interfaces/i-settings.d.ts +33 -0
- package/dist/interfaces/i-settings.js +8 -0
- package/dist/interfaces/i-user.d.ts +14 -0
- package/dist/interfaces/i-user.js +8 -0
- package/dist/interfaces/i-workdir.d.ts +14 -0
- package/dist/interfaces/i-workdir.js +8 -0
- package/dist/interfaces/i-xkb-model.d.ts +24 -0
- package/dist/interfaces/i-xkb-model.js +8 -0
- package/dist/interfaces/index.d.ts +26 -0
- package/dist/interfaces/index.js +8 -0
- package/dist/krill/classes/cfs.d.ts +17 -0
- package/dist/krill/classes/cfs.js +39 -0
- package/dist/krill/classes/krill_enums.d.ts +37 -0
- package/dist/krill/classes/krill_enums.js +41 -0
- package/dist/krill/classes/prepare.d/confirm.d.ts +5 -0
- package/dist/krill/classes/prepare.d/confirm.js +30 -0
- package/dist/krill/classes/prepare.d/keyboard.d.ts +14 -0
- package/dist/krill/classes/prepare.d/keyboard.js +62 -0
- package/dist/krill/classes/prepare.d/location.d.ts +17 -0
- package/dist/krill/classes/prepare.d/location.js +59 -0
- package/dist/krill/classes/prepare.d/network.d.ts +14 -0
- package/dist/krill/classes/prepare.d/network.js +68 -0
- package/dist/krill/classes/prepare.d/partitions.d.ts +14 -0
- package/dist/krill/classes/prepare.d/partitions.js +86 -0
- package/dist/krill/classes/prepare.d/summary.d.ts +15 -0
- package/dist/krill/classes/prepare.d/summary.js +72 -0
- package/dist/krill/classes/prepare.d/users.d.ts +6 -0
- package/dist/krill/classes/prepare.d/users.js +63 -0
- package/dist/krill/classes/prepare.d/welcome.d.ts +6 -0
- package/dist/krill/classes/prepare.d/welcome.js +30 -0
- package/dist/krill/classes/prepare.d.ts +89 -0
- package/dist/krill/classes/prepare.js +319 -0
- package/dist/krill/classes/sequence.d/add_user.d.ts +20 -0
- package/dist/krill/classes/sequence.d/add_user.js +77 -0
- package/dist/krill/classes/sequence.d/bootloader.d.ts +14 -0
- package/dist/krill/classes/sequence.d/bootloader.js +117 -0
- package/dist/krill/classes/sequence.d/bootloader_config.d.ts +14 -0
- package/dist/krill/classes/sequence.d/bootloader_config.js +192 -0
- package/dist/krill/classes/sequence.d/change_password.d.ts +15 -0
- package/dist/krill/classes/sequence.d/change_password.js +18 -0
- package/dist/krill/classes/sequence.d/del_live_user.d.ts +14 -0
- package/dist/krill/classes/sequence.d/del_live_user.js +39 -0
- package/dist/krill/classes/sequence.d/fstab.d.ts +14 -0
- package/dist/krill/classes/sequence.d/fstab.js +177 -0
- package/dist/krill/classes/sequence.d/grubcfg.d.ts +17 -0
- package/dist/krill/classes/sequence.d/grubcfg.js +35 -0
- package/dist/krill/classes/sequence.d/hostname.d.ts +13 -0
- package/dist/krill/classes/sequence.d/hostname.js +50 -0
- package/dist/krill/classes/sequence.d/initramfs.d.ts +13 -0
- package/dist/krill/classes/sequence.d/initramfs.js +54 -0
- package/dist/krill/classes/sequence.d/initramfs_cfg.d.ts +14 -0
- package/dist/krill/classes/sequence.d/initramfs_cfg.js +35 -0
- package/dist/krill/classes/sequence.d/locale.d.ts +13 -0
- package/dist/krill/classes/sequence.d/locale.js +91 -0
- package/dist/krill/classes/sequence.d/locale_cfg.d.ts +10 -0
- package/dist/krill/classes/sequence.d/locale_cfg.js +58 -0
- package/dist/krill/classes/sequence.d/m_keyboard.d.ts +14 -0
- package/dist/krill/classes/sequence.d/m_keyboard.js +58 -0
- package/dist/krill/classes/sequence.d/machine_id.d.ts +15 -0
- package/dist/krill/classes/sequence.d/machine_id.js +33 -0
- package/dist/krill/classes/sequence.d/mkfs.d.ts +15 -0
- package/dist/krill/classes/sequence.d/mkfs.js +88 -0
- package/dist/krill/classes/sequence.d/mount_fs.d.ts +17 -0
- package/dist/krill/classes/sequence.d/mount_fs.js +68 -0
- package/dist/krill/classes/sequence.d/mount_vfs.d.ts +17 -0
- package/dist/krill/classes/sequence.d/mount_vfs.js +59 -0
- package/dist/krill/classes/sequence.d/network_cfg.d.ts +19 -0
- package/dist/krill/classes/sequence.d/network_cfg.js +73 -0
- package/dist/krill/classes/sequence.d/packages.d.ts +14 -0
- package/dist/krill/classes/sequence.d/packages.js +111 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_luks.d.ts +17 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_luks.js +73 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_standard.d.ts +16 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_standard.js +51 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_luks.d.ts +17 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_luks.js +77 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_standard.d.ts +10 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_standard.js +33 -0
- package/dist/krill/classes/sequence.d/partition.d.ts +14 -0
- package/dist/krill/classes/sequence.d/partition.js +84 -0
- package/dist/krill/classes/sequence.d/remove_installer_link.d.ts +13 -0
- package/dist/krill/classes/sequence.d/remove_installer_link.js +35 -0
- package/dist/krill/classes/sequence.d/umount.d.ts +14 -0
- package/dist/krill/classes/sequence.d/umount.js +28 -0
- package/dist/krill/classes/sequence.d/unpackfs.d.ts +13 -0
- package/dist/krill/classes/sequence.d/unpackfs.js +21 -0
- package/dist/krill/classes/sequence.d.ts +134 -0
- package/dist/krill/classes/sequence.js +400 -0
- package/dist/krill/components/finished.d.ts +16 -0
- package/dist/krill/components/finished.js +56 -0
- package/dist/krill/components/information.d.ts +8 -0
- package/dist/krill/components/information.js +162 -0
- package/dist/krill/components/install.d.ts +15 -0
- package/dist/krill/components/install.js +60 -0
- package/dist/krill/components/keyboard.d.ts +16 -0
- package/dist/krill/components/keyboard.js +54 -0
- package/dist/krill/components/location.d.ts +16 -0
- package/dist/krill/components/location.js +59 -0
- package/dist/krill/components/network.d.ts +19 -0
- package/dist/krill/components/network.js +65 -0
- package/dist/krill/components/partitions.d.ts +18 -0
- package/dist/krill/components/partitions.js +89 -0
- package/dist/krill/components/steps.d.ts +13 -0
- package/dist/krill/components/steps.js +148 -0
- package/dist/krill/components/summary.d.ts +25 -0
- package/dist/krill/components/summary.js +77 -0
- package/dist/krill/components/title.d.ts +11 -0
- package/dist/krill/components/title.js +35 -0
- package/dist/krill/components/users.d.ts +24 -0
- package/dist/krill/components/users.js +80 -0
- package/dist/krill/components/welcome.d.ts +13 -0
- package/dist/krill/components/welcome.js +63 -0
- package/dist/krill/interfaces/i_krill.d.ts +44 -0
- package/dist/krill/interfaces/i_krill.js +8 -0
- package/dist/krill/interfaces/i_krill_config.d.ts +35 -0
- package/dist/krill/interfaces/i_krill_config.js +8 -0
- package/dist/krill/lib/get_address.d.ts +8 -0
- package/dist/krill/lib/get_address.js +23 -0
- package/dist/krill/lib/get_dns.d.ts +8 -0
- package/dist/krill/lib/get_dns.js +23 -0
- package/dist/krill/lib/get_domain.d.ts +8 -0
- package/dist/krill/lib/get_domain.js +23 -0
- package/dist/krill/lib/get_gateway.d.ts +8 -0
- package/dist/krill/lib/get_gateway.js +23 -0
- package/dist/krill/lib/get_hostname.d.ts +8 -0
- package/dist/krill/lib/get_hostname.js +23 -0
- package/dist/krill/lib/get_luks_passphrase.d.ts +8 -0
- package/dist/krill/lib/get_luks_passphrase.js +32 -0
- package/dist/krill/lib/get_netmask.d.ts +8 -0
- package/dist/krill/lib/get_netmask.js +23 -0
- package/dist/krill/lib/get_password.d.ts +8 -0
- package/dist/krill/lib/get_password.js +36 -0
- package/dist/krill/lib/get_userfullname.d.ts +8 -0
- package/dist/krill/lib/get_userfullname.js +23 -0
- package/dist/krill/lib/get_username.d.ts +8 -0
- package/dist/krill/lib/get_username.js +23 -0
- package/dist/krill/lib/select_address_type.d.ts +8 -0
- package/dist/krill/lib/select_address_type.js +24 -0
- package/dist/krill/lib/select_filesystem_type.d.ts +8 -0
- package/dist/krill/lib/select_filesystem_type.js +40 -0
- package/dist/krill/lib/select_installation_device.d.ts +8 -0
- package/dist/krill/lib/select_installation_device.js +40 -0
- package/dist/krill/lib/select_installation_mode.d.ts +9 -0
- package/dist/krill/lib/select_installation_mode.js +25 -0
- package/dist/krill/lib/select_interface.d.ts +8 -0
- package/dist/krill/lib/select_interface.js +24 -0
- package/dist/krill/lib/select_keyboard_layout.d.ts +11 -0
- package/dist/krill/lib/select_keyboard_layout.js +36 -0
- package/dist/krill/lib/select_keyboard_model.d.ts +11 -0
- package/dist/krill/lib/select_keyboard_model.js +34 -0
- package/dist/krill/lib/select_keyboard_option.d.ts +11 -0
- package/dist/krill/lib/select_keyboard_option.js +34 -0
- package/dist/krill/lib/select_keyboard_variant.d.ts +11 -0
- package/dist/krill/lib/select_keyboard_variant.js +35 -0
- package/dist/krill/lib/select_languages.d.ts +8 -0
- package/dist/krill/lib/select_languages.js +28 -0
- package/dist/krill/lib/select_regions.d.ts +8 -0
- package/dist/krill/lib/select_regions.js +24 -0
- package/dist/krill/lib/select_replaced_partition.d.ts +8 -0
- package/dist/krill/lib/select_replaced_partition.js +31 -0
- package/dist/krill/lib/select_user_swap_choice.d.ts +9 -0
- package/dist/krill/lib/select_user_swap_choice.js +35 -0
- package/dist/krill/lib/select_zones.d.ts +8 -0
- package/dist/krill/lib/select_zones.js +518 -0
- package/dist/lib/kill_me_softly.d.ts +11 -0
- package/dist/lib/kill_me_softly.js +61 -0
- package/dist/lib/utils.d.ts +19 -0
- package/dist/lib/utils.js +65 -0
- package/dracut/create-symlink +0 -0
- package/dracut/dracut.conf.d/50-live.conf +12 -13
- package/dracut/export +0 -0
- package/dracut/export-dracut-analysis +0 -0
- package/dracut/export-dracut-log +0 -0
- package/dracut/mkisofs +0 -0
- package/dracut/modules.d/00debug-shell/debug-hook.sh +0 -0
- package/dracut/modules.d/00debug-shell/module-setup.sh +0 -0
- package/dracut/modules.d/90block/block-cmdline.sh +0 -0
- package/dracut/modules.d/90block/module-setup.sh +0 -0
- package/dracut/modules.d/95iso-scan/iso-scan-fallback.sh +0 -0
- package/dracut/modules.d/95iso-scan/iso-scan.sh +0 -0
- package/dracut/modules.d/95iso-scan/module-setup.sh +0 -0
- package/dracut/modules.d/95luks-loop/luks-loop.sh +0 -0
- package/dracut/modules.d/95luks-loop/module-setup.sh +0 -0
- package/dracut/renew-initramfs +0 -0
- package/dracut/sbin2bin +0 -0
- package/dracut/update-dracut-conf-d +0 -0
- package/dracut/update-dracut-modules +0 -0
- package/eui/eui-autostart-cinnamon.desktop +0 -0
- package/eui/eui-autostart-xfce.desktop +0 -0
- package/eui/eui-create-image.sh +0 -0
- package/eui/eui-start.sh +0 -0
- package/package.json +130 -124
- package/perrisbrewery/scripts/postinst +0 -0
- package/perrisbrewery/scripts/postrm +0 -0
- package/perrisbrewery/scripts/preinst +0 -0
- package/perrisbrewery/scripts/prerm +0 -0
- package/perrisbrewery/template/dependencies.yaml +7 -5
- package/scripts/99clean +0 -0
- package/scripts/adapt.sh +0 -0
- package/scripts/boot-encrypted-root.sh +0 -0
- package/scripts/bros/waydroid-helper.sh +0 -0
- package/scripts/lsb_release +0 -0
- package/scripts/mom.sh +0 -0
- package/scripts/mount-encrypted-home.sh +0 -0
- package/scripts/pve-live.service +0 -0
- package/scripts/pve-live.sh +0 -0
- package/scripts/resy +0 -0
- package/conf/distros/focal/calamares/calamares-modules/.keepit +0 -0
- package/conf/distros/focal/calamares/calamares-modules/cleanup/cleanup.sh +0 -20
- package/conf/distros/focal/calamares/calamares-modules/cleanup/module.yml +0 -9
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk/module.yml +0 -8
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -50
- package/conf/distros/focal/calamares/calamares-modules/sources-yolk-undo/module.yml +0 -8
- package/conf/distros/focal/calamares/modules/after_bootloader_context.yml +0 -19
- package/conf/distros/focal/calamares/modules/automirror.yml +0 -6
- package/conf/distros/focal/calamares/modules/before_bootloader_context.yml +0 -19
- package/conf/distros/focal/calamares/modules/before_bootloader_mkdirs_context.yml +0 -11
- package/conf/distros/focal/calamares/modules/bootloader.yml +0 -34
- package/conf/distros/focal/calamares/modules/displaymanager.yml +0 -12
- package/conf/distros/focal/calamares/modules/finished.yml +0 -4
- package/conf/distros/focal/calamares/modules/fstab.yml +0 -13
- package/conf/distros/focal/calamares/modules/grubcfg.yml +0 -5
- package/conf/distros/focal/calamares/modules/locale.yml +0 -9
- package/conf/distros/focal/calamares/modules/machineid.yml +0 -9
- package/conf/distros/focal/calamares/modules/mount.yml +0 -41
- package/conf/distros/focal/calamares/modules/packages.mustache +0 -5
- package/conf/distros/focal/calamares/modules/partition.yml +0 -10
- package/conf/distros/focal/calamares/modules/removeuser.mustache +0 -3
- package/conf/distros/focal/calamares/modules/shellprocess_add386arch.yml +0 -6
- package/conf/distros/focal/calamares/modules/shellprocess_bug-LP#1829805.yml +0 -5
- package/conf/distros/focal/calamares/modules/shellprocess_logs.yml +0 -6
- package/conf/distros/focal/calamares/modules/unpackfs.mustache +0 -6
- package/conf/distros/focal/calamares/modules/users.yml +0 -19
- package/conf/distros/focal/calamares/modules/welcome.yml +0 -26
- package/conf/distros/focal/calamares/settings.yml +0 -72
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/steps.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Text, Box } from 'ink';
|
|
10
|
+
export default function Steps({ step = 1 }) {
|
|
11
|
+
let activeWelcome = false;
|
|
12
|
+
let activeLocation = false;
|
|
13
|
+
let activeKeyboard = false;
|
|
14
|
+
let activePartitions = false;
|
|
15
|
+
let activeUsers = false;
|
|
16
|
+
let activeNetwork = false;
|
|
17
|
+
let activeSummary = false;
|
|
18
|
+
let activeInstall = false;
|
|
19
|
+
let activeFinish = false;
|
|
20
|
+
if (step === 1) {
|
|
21
|
+
activeWelcome = true;
|
|
22
|
+
}
|
|
23
|
+
else if (step === 2) {
|
|
24
|
+
activeLocation = true;
|
|
25
|
+
}
|
|
26
|
+
else if (step === 3) {
|
|
27
|
+
activeKeyboard = true;
|
|
28
|
+
}
|
|
29
|
+
else if (step === 4) {
|
|
30
|
+
activePartitions = true;
|
|
31
|
+
}
|
|
32
|
+
else if (step === 5) {
|
|
33
|
+
activeUsers = true;
|
|
34
|
+
}
|
|
35
|
+
else if (step === 6) {
|
|
36
|
+
activeNetwork = true;
|
|
37
|
+
}
|
|
38
|
+
else if (step === 7) {
|
|
39
|
+
activeSummary = true;
|
|
40
|
+
}
|
|
41
|
+
else if (step === 8) {
|
|
42
|
+
activeInstall = true;
|
|
43
|
+
}
|
|
44
|
+
else if (step === 9) {
|
|
45
|
+
activeFinish = true;
|
|
46
|
+
}
|
|
47
|
+
return (React.createElement(React.Fragment, null,
|
|
48
|
+
React.createElement(Box, { width: 13, height: 9, flexDirection: "column" },
|
|
49
|
+
React.createElement(WelcomeTab, { active: activeWelcome }),
|
|
50
|
+
React.createElement(LocationTab, { active: activeLocation }),
|
|
51
|
+
React.createElement(KeyboardTab, { active: activeKeyboard }),
|
|
52
|
+
React.createElement(PartitionTab, { active: activePartitions }),
|
|
53
|
+
React.createElement(UsersTab, { active: activeUsers }),
|
|
54
|
+
React.createElement(NetworkTab, { active: activeNetwork }),
|
|
55
|
+
React.createElement(SummaryTab, { active: activeSummary }),
|
|
56
|
+
React.createElement(InstallTab, { active: activeInstall }),
|
|
57
|
+
React.createElement(FinishTab, { active: activeFinish }))));
|
|
58
|
+
}
|
|
59
|
+
function WelcomeTab({ active = false }) {
|
|
60
|
+
let backgroundColor = 'white';
|
|
61
|
+
let color = 'black';
|
|
62
|
+
if (active) {
|
|
63
|
+
backgroundColor = 'black';
|
|
64
|
+
color = 'white';
|
|
65
|
+
}
|
|
66
|
+
return React.createElement(Box, null,
|
|
67
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Welcome "));
|
|
68
|
+
}
|
|
69
|
+
function LocationTab({ active = false }) {
|
|
70
|
+
let backgroundColor = 'white';
|
|
71
|
+
let color = 'black';
|
|
72
|
+
if (active) {
|
|
73
|
+
backgroundColor = 'black';
|
|
74
|
+
color = 'white';
|
|
75
|
+
}
|
|
76
|
+
return React.createElement(Box, null,
|
|
77
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Location "));
|
|
78
|
+
}
|
|
79
|
+
function KeyboardTab({ active = false }) {
|
|
80
|
+
let backgroundColor = 'white';
|
|
81
|
+
let color = 'black';
|
|
82
|
+
if (active) {
|
|
83
|
+
backgroundColor = 'black';
|
|
84
|
+
color = 'white';
|
|
85
|
+
}
|
|
86
|
+
return React.createElement(Box, null,
|
|
87
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Keyboard "));
|
|
88
|
+
}
|
|
89
|
+
function PartitionTab({ active = false }) {
|
|
90
|
+
let backgroundColor = 'white';
|
|
91
|
+
let color = 'black';
|
|
92
|
+
if (active) {
|
|
93
|
+
backgroundColor = 'black';
|
|
94
|
+
color = 'white';
|
|
95
|
+
}
|
|
96
|
+
return React.createElement(Box, null,
|
|
97
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Partitions "));
|
|
98
|
+
}
|
|
99
|
+
function UsersTab({ active = false }) {
|
|
100
|
+
let backgroundColor = 'white';
|
|
101
|
+
let color = 'black';
|
|
102
|
+
if (active) {
|
|
103
|
+
backgroundColor = 'black';
|
|
104
|
+
color = 'white';
|
|
105
|
+
}
|
|
106
|
+
return React.createElement(Box, null,
|
|
107
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Users "));
|
|
108
|
+
}
|
|
109
|
+
function NetworkTab({ active = false }) {
|
|
110
|
+
let backgroundColor = 'white';
|
|
111
|
+
let color = 'black';
|
|
112
|
+
if (active) {
|
|
113
|
+
backgroundColor = 'black';
|
|
114
|
+
color = 'white';
|
|
115
|
+
}
|
|
116
|
+
return React.createElement(Box, null,
|
|
117
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Network "));
|
|
118
|
+
}
|
|
119
|
+
function SummaryTab({ active = false }) {
|
|
120
|
+
let backgroundColor = 'white';
|
|
121
|
+
let color = 'black';
|
|
122
|
+
if (active) {
|
|
123
|
+
backgroundColor = 'black';
|
|
124
|
+
color = 'white';
|
|
125
|
+
}
|
|
126
|
+
return React.createElement(Box, null,
|
|
127
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Summary "));
|
|
128
|
+
}
|
|
129
|
+
function InstallTab({ active = false }) {
|
|
130
|
+
let backgroundColor = 'white';
|
|
131
|
+
let color = 'black';
|
|
132
|
+
if (active) {
|
|
133
|
+
backgroundColor = 'black';
|
|
134
|
+
color = 'white';
|
|
135
|
+
}
|
|
136
|
+
return React.createElement(Box, null,
|
|
137
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Install "));
|
|
138
|
+
}
|
|
139
|
+
function FinishTab({ active = false }) {
|
|
140
|
+
let backgroundColor = 'white';
|
|
141
|
+
let color = 'black';
|
|
142
|
+
if (active) {
|
|
143
|
+
backgroundColor = 'black';
|
|
144
|
+
color = 'white';
|
|
145
|
+
}
|
|
146
|
+
return React.createElement(Box, null,
|
|
147
|
+
React.createElement(Text, { color: color, backgroundColor: backgroundColor }, " Finish "));
|
|
148
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/summary.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
type SummaryProps = {
|
|
10
|
+
language?: string;
|
|
11
|
+
region?: string;
|
|
12
|
+
zone?: string;
|
|
13
|
+
keyboardModel?: string;
|
|
14
|
+
keyboardLayout?: string;
|
|
15
|
+
installationDevice?: string;
|
|
16
|
+
filesystemType?: string;
|
|
17
|
+
username?: string;
|
|
18
|
+
password?: string;
|
|
19
|
+
rootPassword?: string;
|
|
20
|
+
hostname?: string;
|
|
21
|
+
message?: string;
|
|
22
|
+
erase?: string;
|
|
23
|
+
};
|
|
24
|
+
export default function Summary({ username, password, rootPassword, hostname, region, zone, language, keyboardModel, keyboardLayout, installationDevice, filesystemType, message, erase }: SummaryProps): React.JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/summary.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import Title from './title.js';
|
|
10
|
+
import Steps from './steps.js';
|
|
11
|
+
import yaml from 'js-yaml';
|
|
12
|
+
import fs from 'fs';
|
|
13
|
+
import { Text, Box } from 'ink';
|
|
14
|
+
export default function Summary({ username = '', password = '', rootPassword = '', hostname = '', region = '', zone = '', language = '', keyboardModel = '', keyboardLayout = '', installationDevice = '', filesystemType, message = '', erase = '' }) {
|
|
15
|
+
let productName = 'unknown';
|
|
16
|
+
let version = 'x.x.x';
|
|
17
|
+
let configRoot = '/etc/penguins-eggs.d/krill/';
|
|
18
|
+
if (fs.existsSync('/etc/calamares/settings.conf')) {
|
|
19
|
+
configRoot = '/etc/calamares/';
|
|
20
|
+
}
|
|
21
|
+
const settings = yaml.load(fs.readFileSync(configRoot + 'settings.conf', 'utf-8'));
|
|
22
|
+
const branding = settings.branding;
|
|
23
|
+
const calamares = yaml.load(fs.readFileSync(configRoot + 'branding/' + branding + '/branding.desc', 'utf-8'));
|
|
24
|
+
productName = calamares.string_product_name;
|
|
25
|
+
version = calamares.string_product_version;
|
|
26
|
+
/**
|
|
27
|
+
* totale width=75
|
|
28
|
+
* step width=15
|
|
29
|
+
* finestra with=59
|
|
30
|
+
*/
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement(Title, null),
|
|
33
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
34
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
35
|
+
React.createElement(Box, { flexDirection: "row" },
|
|
36
|
+
React.createElement(Steps, { step: 7 }),
|
|
37
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
38
|
+
React.createElement(Box, null,
|
|
39
|
+
React.createElement(Text, null, "Installing "),
|
|
40
|
+
React.createElement(Text, { color: "green" }, productName)),
|
|
41
|
+
React.createElement(Box, null,
|
|
42
|
+
React.createElement(Text, null),
|
|
43
|
+
React.createElement(Text, { color: "green" }, username),
|
|
44
|
+
React.createElement(Text, null, "/"),
|
|
45
|
+
React.createElement(Text, { color: "green" },
|
|
46
|
+
password,
|
|
47
|
+
" "),
|
|
48
|
+
React.createElement(Text, null, "pwd root "),
|
|
49
|
+
React.createElement(Text, { color: "green" },
|
|
50
|
+
rootPassword,
|
|
51
|
+
" "),
|
|
52
|
+
React.createElement(Text, null, "hostname "),
|
|
53
|
+
React.createElement(Text, { color: "green" }, hostname)),
|
|
54
|
+
React.createElement(Box, null,
|
|
55
|
+
React.createElement(Text, null, "Set timezone to "),
|
|
56
|
+
React.createElement(Text, { color: "green" },
|
|
57
|
+
region,
|
|
58
|
+
"/",
|
|
59
|
+
zone)),
|
|
60
|
+
React.createElement(Box, null,
|
|
61
|
+
React.createElement(Text, null, "The system language will be set to "),
|
|
62
|
+
React.createElement(Text, { color: "green" }, language)),
|
|
63
|
+
React.createElement(Box, null,
|
|
64
|
+
React.createElement(Text, null, "Numbers and date locale will be set to "),
|
|
65
|
+
React.createElement(Text, { color: "green" }, language)),
|
|
66
|
+
React.createElement(Box, null,
|
|
67
|
+
React.createElement(Text, null, "Set keyboard model to "),
|
|
68
|
+
React.createElement(Text, { color: "green" },
|
|
69
|
+
keyboardModel,
|
|
70
|
+
" "),
|
|
71
|
+
React.createElement(Text, null, "layout "),
|
|
72
|
+
React.createElement(Text, { color: "green" }, keyboardLayout)),
|
|
73
|
+
React.createElement(Box, null,
|
|
74
|
+
React.createElement(Text, null, erase)),
|
|
75
|
+
React.createElement(Box, null,
|
|
76
|
+
React.createElement(Text, { color: "white", backgroundColor: "red" }, message))))))));
|
|
77
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/title.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
export default function Title({ title, version }: {
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
version?: string | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/title.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Text, Box, Newline } from 'ink';
|
|
10
|
+
// pjson
|
|
11
|
+
import { createRequire } from 'module';
|
|
12
|
+
const require = createRequire(import.meta.url);
|
|
13
|
+
const pjson = require('../../../package.json');
|
|
14
|
+
export default function Title({ title = "", version = "" }) {
|
|
15
|
+
if (title == "")
|
|
16
|
+
title = pjson.name;
|
|
17
|
+
if (version == "")
|
|
18
|
+
version = pjson.version;
|
|
19
|
+
return (React.createElement(React.Fragment, null,
|
|
20
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
21
|
+
React.createElement(Box, null),
|
|
22
|
+
React.createElement(Box, null,
|
|
23
|
+
React.createElement(Text, null, "E G G S: reproductive system of penguins")),
|
|
24
|
+
React.createElement(Newline, null)),
|
|
25
|
+
React.createElement(Box, { flexDirection: "row" },
|
|
26
|
+
React.createElement(Text, { backgroundColor: "green" },
|
|
27
|
+
" ",
|
|
28
|
+
title,
|
|
29
|
+
" "),
|
|
30
|
+
React.createElement(Text, { backgroundColor: "white", color: "blue" }, " Perri's brewery edition "),
|
|
31
|
+
React.createElement(Text, { backgroundColor: "red" },
|
|
32
|
+
" ver. ",
|
|
33
|
+
version,
|
|
34
|
+
" "))));
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/users.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
type UsersProps = {
|
|
10
|
+
username?: string;
|
|
11
|
+
fullname?: string;
|
|
12
|
+
password?: string;
|
|
13
|
+
rootPassword?: string;
|
|
14
|
+
hostname?: string;
|
|
15
|
+
autologin?: boolean;
|
|
16
|
+
sameUserPassword?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param param0
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export default function Users({ username, fullname, password, rootPassword, hostname, autologin, sameUserPassword }: UsersProps): React.JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/users.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import { Text, Box } from 'ink';
|
|
10
|
+
import Title from './title.js';
|
|
11
|
+
import Steps from './steps.js';
|
|
12
|
+
import yaml from 'js-yaml';
|
|
13
|
+
import fs from 'fs';
|
|
14
|
+
// pjson
|
|
15
|
+
import { createRequire } from 'module';
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
const pjson = require('../../../package.json');
|
|
18
|
+
// create your forceUpdate hook
|
|
19
|
+
function useForceUpdate() {
|
|
20
|
+
const [value, setValue] = useState(0); // integer state
|
|
21
|
+
return () => setValue((value) => value + 1); // update the state to force render
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param param0
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export default function Users({ username, fullname, password, rootPassword, hostname, autologin, sameUserPassword }) {
|
|
29
|
+
let productName = 'unknown';
|
|
30
|
+
let version = 'x.x.x';
|
|
31
|
+
let configRoot = '/etc/penguins-eggs.d/krill/';
|
|
32
|
+
if (fs.existsSync('/etc/calamares/settings.conf')) {
|
|
33
|
+
configRoot = '/etc/calamares/';
|
|
34
|
+
}
|
|
35
|
+
const settings = yaml.load(fs.readFileSync(configRoot + 'settings.conf', 'utf-8'));
|
|
36
|
+
const branding = settings.branding;
|
|
37
|
+
const calamares = yaml.load(fs.readFileSync(configRoot + 'branding/' + branding + '/branding.desc', 'utf-8'));
|
|
38
|
+
productName = calamares.string_product_name;
|
|
39
|
+
version = calamares.string_product_version;
|
|
40
|
+
/**
|
|
41
|
+
* totale width=75
|
|
42
|
+
* step width=15
|
|
43
|
+
* finestra with=59
|
|
44
|
+
*/
|
|
45
|
+
let charAutologin = "[x] ";
|
|
46
|
+
if (autologin) {
|
|
47
|
+
charAutologin = "[ ]";
|
|
48
|
+
}
|
|
49
|
+
charAutologin = ""; // Hidden
|
|
50
|
+
if (sameUserPassword) {
|
|
51
|
+
rootPassword = password;
|
|
52
|
+
}
|
|
53
|
+
const forceUpdate = useForceUpdate();
|
|
54
|
+
return (React.createElement(React.Fragment, null,
|
|
55
|
+
React.createElement(Title, null),
|
|
56
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
57
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
58
|
+
React.createElement(Box, { flexDirection: "row" },
|
|
59
|
+
React.createElement(Steps, { step: 5 }),
|
|
60
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
61
|
+
React.createElement(Box, null,
|
|
62
|
+
React.createElement(Text, null, "username : "),
|
|
63
|
+
React.createElement(Text, { color: "cyan" }, username)),
|
|
64
|
+
React.createElement(Box, null,
|
|
65
|
+
React.createElement(Text, null, "full username: "),
|
|
66
|
+
React.createElement(Text, { color: "cyan" }, fullname)),
|
|
67
|
+
React.createElement(Box, null,
|
|
68
|
+
React.createElement(Text, null, "user password: "),
|
|
69
|
+
React.createElement(Text, { color: "cyan" }, password)),
|
|
70
|
+
React.createElement(Box, null),
|
|
71
|
+
React.createElement(Box, null,
|
|
72
|
+
React.createElement(Text, null, "root password: "),
|
|
73
|
+
React.createElement(Text, { color: "cyan" }, rootPassword)),
|
|
74
|
+
React.createElement(Box, null,
|
|
75
|
+
React.createElement(Text, null, "hostname : "),
|
|
76
|
+
React.createElement(Text, { color: "cyan" }, hostname)),
|
|
77
|
+
React.createElement(Box, null,
|
|
78
|
+
React.createElement(Text, null, " "),
|
|
79
|
+
React.createElement(Text, { color: "cyan" }, charAutologin))))))));
|
|
80
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/welcome.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
type WelcomeProps = {
|
|
10
|
+
language?: string;
|
|
11
|
+
};
|
|
12
|
+
export default function Welcome({ language }: WelcomeProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/components/welcome.tsx
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import Title from './title.js';
|
|
10
|
+
import Steps from './steps.js';
|
|
11
|
+
import yaml from 'js-yaml';
|
|
12
|
+
import fs from 'fs';
|
|
13
|
+
import { Box, Newline, Text } from 'ink';
|
|
14
|
+
// pjson
|
|
15
|
+
import { createRequire } from 'module';
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
const pjson = require('../../../package.json');
|
|
18
|
+
export default function Welcome({ language = '' }) {
|
|
19
|
+
let productName = 'unknown';
|
|
20
|
+
let configRoot = '/etc/penguins-eggs.d/krill/';
|
|
21
|
+
let version = 'unknown';
|
|
22
|
+
if (fs.existsSync('/etc/calamares/settings.conf')) {
|
|
23
|
+
configRoot = '/etc/calamares/';
|
|
24
|
+
}
|
|
25
|
+
const settings = yaml.load(fs.readFileSync(configRoot + 'settings.conf', 'utf-8'));
|
|
26
|
+
const branding = settings.branding;
|
|
27
|
+
const calamares = yaml.load(fs.readFileSync(configRoot + 'branding/' + branding + '/branding.desc', 'utf-8'));
|
|
28
|
+
productName = calamares.string_product_name;
|
|
29
|
+
version = calamares.string_product_version;
|
|
30
|
+
/**
|
|
31
|
+
* totale width=75
|
|
32
|
+
* step width=15
|
|
33
|
+
* finestra with=59
|
|
34
|
+
*/
|
|
35
|
+
return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement(Title, null),
|
|
37
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
38
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
39
|
+
React.createElement(Box, { flexDirection: "row" },
|
|
40
|
+
React.createElement(Steps, { step: 1 }),
|
|
41
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
42
|
+
React.createElement(Text, null,
|
|
43
|
+
"Welcome to ",
|
|
44
|
+
pjson.name,
|
|
45
|
+
" system installer"),
|
|
46
|
+
React.createElement(Newline, null),
|
|
47
|
+
React.createElement(Text, null, "We are installing "),
|
|
48
|
+
React.createElement(Box, null,
|
|
49
|
+
React.createElement(Text, null, "Linux "),
|
|
50
|
+
React.createElement(Text, { color: "cyan" },
|
|
51
|
+
productName,
|
|
52
|
+
" "),
|
|
53
|
+
React.createElement(Text, null, "version "),
|
|
54
|
+
React.createElement(Text, { color: "cyan" }, version),
|
|
55
|
+
React.createElement(Text, null, " on "),
|
|
56
|
+
React.createElement(Text, { color: "cyan" }, process.arch)),
|
|
57
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
58
|
+
React.createElement(Newline, null),
|
|
59
|
+
React.createElement(Text, null,
|
|
60
|
+
"Language: ",
|
|
61
|
+
language,
|
|
62
|
+
" "))))))));
|
|
63
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/interfaces/i-krill.ts
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import { SwapChoice } from '../classes/krill_enums.js';
|
|
9
|
+
export interface IWelcome {
|
|
10
|
+
language: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ILocation {
|
|
13
|
+
language: string;
|
|
14
|
+
region: string;
|
|
15
|
+
zone: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IKeyboard {
|
|
18
|
+
keyboardLayout: string;
|
|
19
|
+
keyboardModel: string;
|
|
20
|
+
keyboardOption: string;
|
|
21
|
+
keyboardVariant: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IPartitions {
|
|
24
|
+
filesystemType: string;
|
|
25
|
+
installationDevice: string;
|
|
26
|
+
installationMode: string;
|
|
27
|
+
userSwapChoice: SwapChoice;
|
|
28
|
+
replacedPartition: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IUsers {
|
|
31
|
+
autologin: boolean;
|
|
32
|
+
fullname: string;
|
|
33
|
+
hostname: string;
|
|
34
|
+
password: string;
|
|
35
|
+
rootPassword: string;
|
|
36
|
+
username: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ICalamaresModule {
|
|
39
|
+
command: string;
|
|
40
|
+
interface: string;
|
|
41
|
+
name: string;
|
|
42
|
+
timeout: number;
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/interfaces/i-krill-config.ts
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import { SwapChoice } from '../classes/krill_enums.js';
|
|
9
|
+
export interface IKrillConfig {
|
|
10
|
+
address: string;
|
|
11
|
+
addressType: string;
|
|
12
|
+
autologin: boolean;
|
|
13
|
+
dns: string;
|
|
14
|
+
domain: string;
|
|
15
|
+
filesystemType: string;
|
|
16
|
+
fullname: string;
|
|
17
|
+
gateway: string;
|
|
18
|
+
hostname: string;
|
|
19
|
+
iface: string;
|
|
20
|
+
installationDevice: string;
|
|
21
|
+
replacedPartition: string;
|
|
22
|
+
installationMode: string;
|
|
23
|
+
keyboardLayout: string;
|
|
24
|
+
keyboardModel: string;
|
|
25
|
+
keyboardOption: string;
|
|
26
|
+
keyboardVariant: string;
|
|
27
|
+
language: string;
|
|
28
|
+
name: string;
|
|
29
|
+
netmask: string;
|
|
30
|
+
password: string;
|
|
31
|
+
region: string;
|
|
32
|
+
rootPassword: string;
|
|
33
|
+
userSwapChoice: SwapChoice;
|
|
34
|
+
zone: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/lib/get_address.ts
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import inquirer from 'inquirer';
|
|
9
|
+
export default async function getAddress(initial) {
|
|
10
|
+
return new Promise((resolve) => {
|
|
11
|
+
const questions = [
|
|
12
|
+
{
|
|
13
|
+
default: initial,
|
|
14
|
+
message: 'What is ip address of this computer? ',
|
|
15
|
+
name: 'address',
|
|
16
|
+
type: 'input'
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
inquirer.prompt(questions).then((options) => {
|
|
20
|
+
resolve(options.address);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/lib/get_dns.ts
|
|
3
|
+
* penguins-eggs v.25.7.x / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
import inquirer from 'inquirer';
|
|
9
|
+
export default async function getDns(initial) {
|
|
10
|
+
return new Promise((resolve) => {
|
|
11
|
+
const questions = [
|
|
12
|
+
{
|
|
13
|
+
default: initial,
|
|
14
|
+
message: 'use ; to separe: ',
|
|
15
|
+
name: 'dns',
|
|
16
|
+
type: 'input'
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
inquirer.prompt(questions).then((options) => {
|
|
20
|
+
resolve(options.dns);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|