penguins-eggs 9.3.28 → 9.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oclif.manifest.json +1 -1
- package/dist/classes/bleach.js +22 -22
- package/dist/classes/daddy.js +25 -25
- package/dist/classes/family/archlinux.js +16 -16
- package/dist/classes/family/debian.js +23 -23
- package/dist/classes/family/fedora.js +14 -14
- package/dist/classes/family/suse.js +14 -14
- package/dist/classes/incubation/distros/bionic.js +5 -4
- package/dist/classes/incubation/distros/buster.js +5 -4
- package/dist/classes/incubation/distros/focal.js +5 -4
- package/dist/classes/incubation/distros/jessie.js +2 -2
- package/dist/classes/incubation/distros/rolling.js +6 -4
- package/dist/classes/incubation/fisherman-helper/displaymanager.js +2 -2
- package/dist/classes/incubation/fisherman-helper/packages.js +6 -6
- package/dist/classes/incubation/fisherman.js +13 -17
- package/dist/classes/incubation/incubator.js +26 -25
- package/dist/classes/incubation/installer.js +5 -5
- package/dist/classes/keyboards.js +5 -5
- package/dist/classes/locales.js +6 -6
- package/dist/classes/n8.js +1 -1
- package/dist/classes/network.js +6 -0
- package/dist/classes/ovary.js +235 -225
- package/dist/classes/pacman.js +121 -121
- package/dist/classes/pve-live.js +2 -2
- package/dist/classes/pxe.js +32 -32
- package/dist/classes/settings.js +24 -24
- package/dist/classes/sources_list.js +8 -8
- package/dist/classes/systemctl.js +11 -11
- package/dist/classes/tailor.js +57 -57
- package/dist/classes/tools.js +2 -2
- package/dist/classes/users.js +2 -2
- package/dist/classes/utils.js +12 -12
- package/dist/classes/xdg.js +38 -38
- package/dist/classes/yolk.js +27 -27
- package/dist/commands/adapt.js +15 -9
- package/dist/commands/analyze.js +11 -11
- package/dist/commands/calamares.js +19 -19
- package/dist/commands/config.js +67 -67
- package/dist/commands/cuckoo.js +8 -8
- package/dist/commands/dad.js +8 -8
- package/dist/commands/export/deb.js +9 -9
- package/dist/commands/export/iso.js +8 -8
- package/dist/commands/install.js +8 -8
- package/dist/commands/kill.js +11 -12
- package/dist/commands/mom.js +5 -5
- package/dist/commands/produce.js +15 -15
- package/dist/commands/status.js +2 -2
- package/dist/commands/syncfrom.js +34 -34
- package/dist/commands/syncto.js +42 -42
- package/dist/commands/tools/clean.js +7 -7
- package/dist/commands/tools/ppa.js +17 -17
- package/dist/commands/tools/skel.js +11 -11
- package/dist/commands/tools/stat.js +2 -2
- package/dist/commands/tools/yolk.js +6 -6
- package/dist/commands/update.js +21 -21
- package/dist/commands/wardrobe/get.js +13 -7
- package/dist/commands/wardrobe/list.js +11 -5
- package/dist/commands/wardrobe/show.js +10 -7
- package/dist/commands/wardrobe/wear.js +16 -10
- package/dist/components/elements/information.js +16 -16
- package/dist/components/finished.js +4 -4
- package/dist/components/install.js +4 -4
- package/dist/components/keyboard.js +4 -4
- package/dist/components/location.js +4 -4
- package/dist/components/network.js +4 -4
- package/dist/components/partitions.js +4 -4
- package/dist/components/summary.js +4 -4
- package/dist/components/users.js +4 -4
- package/dist/components/welcome.js +4 -4
- package/dist/krill/krill-prepare.js +84 -84
- package/dist/krill/krill-sequence.js +140 -140
- package/dist/krill/modules/add-user.js +6 -6
- package/dist/krill/modules/bootloader-config-ubuntu.js +21 -21
- package/dist/krill/modules/bootloader.js +6 -6
- package/dist/krill/modules/change-password.js +2 -2
- package/dist/krill/modules/del-live-user.js +5 -5
- package/dist/krill/modules/fstab.js +10 -10
- package/dist/krill/modules/grubcfg.js +3 -3
- package/dist/krill/modules/initramfs-cfg.js +3 -3
- package/dist/krill/modules/initramfs.js +9 -9
- package/dist/krill/modules/locale.js +4 -4
- package/dist/krill/modules/m-keyboard.js +9 -9
- package/dist/krill/modules/m-timezone.js +3 -3
- package/dist/krill/modules/machine-id.js +3 -3
- package/dist/krill/modules/mkfs.js +6 -6
- package/dist/krill/modules/mount-fs.js +13 -13
- package/dist/krill/modules/mount-vfs.js +12 -12
- package/dist/krill/modules/network-cfg.js +5 -5
- package/dist/krill/modules/packages.js +10 -10
- package/dist/krill/modules/partition.js +69 -69
- package/dist/krill/modules/umount.js +6 -6
- package/dist/krill/modules/unpackfs.js +4 -4
- package/dist/lib/cli-autologin.js +12 -12
- package/dist/lib/select_keyboard_layout.js +2 -2
- package/dist/lib/select_keyboard_model.js +2 -2
- package/dist/lib/select_keyboard_option.js +2 -2
- package/dist/lib/select_keyboard_variant.js +2 -2
- package/dist/lib/select_languages.js +2 -2
- package/package.json +1 -1
package/.oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"9.3.28","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs adapt"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"analyze":{"id":"analyze","description":"analyze for syncto","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs analyze"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"calamares":{"id":"calamares","description":"configure calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs calamares","sudo eggs calamares --install","sudo eggs calamares --install --theme=/path/to/theme","sudo eggs calamares --remove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"config":{"id":"config","description":"Configure and install prerequisites deb packages to run it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs config","sudo eggs config --clean","sudo eggs config --clean --nointeractive"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create new one","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"cuckoo":{"id":"cuckoo","description":"PXE start with proxy-dhcp","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs cuckoo"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - TUI configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo dad","sudo dad --clean","sudo dad --default"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create","allowNo":false},"default":{"name":"default","type":"boolean","char":"d","description":"remove old configuration and force default","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"krill: the CLI system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs install","sudo eggs install --unattended","sudo eggs install --custom it"],"flags":{"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"none":{"name":"none","type":"boolean","char":"N","description":"Swap none: 256M","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs kill"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"mom":{"id":"mom","description":"ask help from mommy - TUI helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs mom"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"produce":{"id":"produce","description":"produce a live image from your system whithout your data","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs produce","sudo eggs produce --standard","sudo eggs produce --max","sudo eggs produce --max --basename=colibri","sudo eggs produce --cryptedclone","sudo eggs produce --clone","sudo eggs produce --basename=colibri","sudo eggs produce --basename=colibri --theme /path/to/theme --addons adapt"],"flags":{"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone","allowNo":false},"cryptedclone":{"name":"cryptedclone","type":"boolean","char":"C","description":"crypted clone","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"standard":{"name":"standard","type":"boolean","char":"f","description":"standard compression","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false},"yolk":{"name":"yolk","type":"boolean","char":"y","description":"-y force yolk renew","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs status"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"syncfrom":{"id":"syncfrom","description":"restore users and user data from a LUKS volumes","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncfrom","sudo eggs syncfrom --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"syncto":{"id":"syncto","description":"saves users and user data in a LUKS volume inside the iso","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncto","sudo eggs syncto --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"update":{"id":"update","description":"update the penguin's eggs tool","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs update"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:deb":{"id":"export:deb","description":"export deb/docs/iso to the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export deb","eggs export deb --clean","eggs export deb --all"],"flags":{"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:iso":{"id":"export:iso","description":"export iso in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export iso","eggs export iso --clean"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:clean":{"id":"tools:clean","description":"clean system log, apt, etc","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools clean"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools ppa --add","sudo eggs tools ppa --remove"],"flags":{"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove penguins-eggs PPA repository","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:skel":{"id":"tools:skel","description":"update skel from home configuration","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs skel","sudo eggs skel --user user-to-be-copied"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"user":{"name":"user","type":"option","char":"u","description":"user to be used","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"tools:stat":{"id":"tools:stat","description":"get statistics from sourceforge","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs tools stat","eggs tools stat --month","eggs tools stat --year"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"month":{"name":"month","type":"boolean","char":"m","description":"current month","allowNo":false},"year":{"name":"year","type":"boolean","char":"y","description":"current year","allowNo":false}},"args":[]},"tools:yolk":{"id":"tools:yolk","description":"configure eggs to install without internet","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs yolk"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"dir":"/var/local/yolk"},"wardrobe:get":{"id":"wardrobe:get","description":"get warorobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe get","eggs wardrobe get your-wardrobe"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"repo","description":"repository to get","required":false}]},"wardrobe:list":{"id":"wardrobe:list","description":"list costumes and accessoires in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe list","eggs wardrobe list your-wardrove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"wardrobe","description":"wardrobe","required":false}]},"wardrobe:show":{"id":"wardrobe:show","description":"show costumes/accessories in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}],"example":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs wardrobe wear duck","sudo eggs wardrobe wear accessories/firmwares","sudo eggs wardrobe wear wagtail/waydroid"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"no_accessories":{"name":"no_accessories","type":"boolean","char":"a","description":"not install accessories","allowNo":false},"no_firmwares":{"name":"no_firmwares","type":"boolean","char":"f","description":"not install firmwares","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
|
|
1
|
+
{"version":"9.3.30","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs adapt"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"analyze":{"id":"analyze","description":"analyze for syncto","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs analyze"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"calamares":{"id":"calamares","description":"configure calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs calamares","sudo eggs calamares --install","sudo eggs calamares --install --theme=/path/to/theme","sudo eggs calamares --remove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"config":{"id":"config","description":"Configure and install prerequisites deb packages to run it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs config","sudo eggs config --clean","sudo eggs config --clean --nointeractive"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create new one","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"cuckoo":{"id":"cuckoo","description":"PXE start with proxy-dhcp","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs cuckoo"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - TUI configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo dad","sudo dad --clean","sudo dad --default"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create","allowNo":false},"default":{"name":"default","type":"boolean","char":"d","description":"remove old configuration and force default","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"krill: the CLI system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs install","sudo eggs install --unattended","sudo eggs install --custom it"],"flags":{"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"none":{"name":"none","type":"boolean","char":"N","description":"Swap none: 256M","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs kill"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"mom":{"id":"mom","description":"ask help from mommy - TUI helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs mom"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"produce":{"id":"produce","description":"produce a live image from your system whithout your data","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs produce","sudo eggs produce --standard","sudo eggs produce --max","sudo eggs produce --max --basename=colibri","sudo eggs produce --cryptedclone","sudo eggs produce --clone","sudo eggs produce --basename=colibri","sudo eggs produce --basename=colibri --theme /path/to/theme --addons adapt"],"flags":{"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone","allowNo":false},"cryptedclone":{"name":"cryptedclone","type":"boolean","char":"C","description":"crypted clone","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"standard":{"name":"standard","type":"boolean","char":"f","description":"standard compression","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false},"yolk":{"name":"yolk","type":"boolean","char":"y","description":"-y force yolk renew","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs status"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"syncfrom":{"id":"syncfrom","description":"restore users and user data from a LUKS volumes","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncfrom","sudo eggs syncfrom --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"syncto":{"id":"syncto","description":"saves users and user data in a LUKS volume inside the iso","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncto","sudo eggs syncto --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"update":{"id":"update","description":"update the penguin's eggs tool","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs update"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:deb":{"id":"export:deb","description":"export deb/docs/iso to the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export deb","eggs export deb --clean","eggs export deb --all"],"flags":{"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:iso":{"id":"export:iso","description":"export iso in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export iso","eggs export iso --clean"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:clean":{"id":"tools:clean","description":"clean system log, apt, etc","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools clean"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools ppa --add","sudo eggs tools ppa --remove"],"flags":{"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove penguins-eggs PPA repository","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:skel":{"id":"tools:skel","description":"update skel from home configuration","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs skel","sudo eggs skel --user user-to-be-copied"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"user":{"name":"user","type":"option","char":"u","description":"user to be used","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"tools:stat":{"id":"tools:stat","description":"get statistics from sourceforge","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs tools stat","eggs tools stat --month","eggs tools stat --year"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"month":{"name":"month","type":"boolean","char":"m","description":"current month","allowNo":false},"year":{"name":"year","type":"boolean","char":"y","description":"current year","allowNo":false}},"args":[]},"tools:yolk":{"id":"tools:yolk","description":"configure eggs to install without internet","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs yolk"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"dir":"/var/local/yolk"},"wardrobe:get":{"id":"wardrobe:get","description":"get warorobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe get","eggs wardrobe get your-wardrobe"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"repo","description":"repository to get","required":false}]},"wardrobe:list":{"id":"wardrobe:list","description":"list costumes and accessoires in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe list","eggs wardrobe list your-wardrove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"wardrobe","description":"wardrobe","required":false}]},"wardrobe:show":{"id":"wardrobe:show","description":"show costumes/accessories in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}],"example":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs wardrobe wear duck","sudo eggs wardrobe wear accessories/firmwares","sudo eggs wardrobe wear wagtail/waydroid"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"no_accessories":{"name":"no_accessories","type":"boolean","char":"a","description":"not install accessories","allowNo":false},"no_firmwares":{"name":"no_firmwares","type":"boolean","char":"f","description":"not install firmwares","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
|
package/dist/classes/bleach.js
CHANGED
|
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
14
|
-
const
|
|
14
|
+
const utils_1 = __importDefault(require("./utils"));
|
|
15
15
|
// libraries
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const utils_2 = require("../lib/utils");
|
|
17
|
+
const distro_1 = __importDefault(require("./distro"));
|
|
18
18
|
/**
|
|
19
19
|
* Bleach:
|
|
20
20
|
*/
|
|
@@ -25,14 +25,14 @@ class Bleach {
|
|
|
25
25
|
*/
|
|
26
26
|
async clean(verbose = false) {
|
|
27
27
|
if (verbose) {
|
|
28
|
-
|
|
28
|
+
utils_1.default.warning('cleaning the system');
|
|
29
29
|
}
|
|
30
|
-
const distro = new
|
|
30
|
+
const distro = new distro_1.default();
|
|
31
31
|
if (distro.familyId === 'debian') {
|
|
32
32
|
await this.cleanApt(verbose);
|
|
33
33
|
}
|
|
34
34
|
else if (distro.familyId === 'archlinux') {
|
|
35
|
-
await (0,
|
|
35
|
+
await (0, utils_2.exec)('pacman -Scc', utils_1.default.setEcho(true));
|
|
36
36
|
}
|
|
37
37
|
await this.cleanHistory(verbose);
|
|
38
38
|
await this.cleanJournal(verbose);
|
|
@@ -47,8 +47,8 @@ class Bleach {
|
|
|
47
47
|
if (verbose) {
|
|
48
48
|
echo = { echo: true, ignore: true, capture: false };
|
|
49
49
|
}
|
|
50
|
-
await (0,
|
|
51
|
-
await (0,
|
|
50
|
+
await (0, utils_2.exec)('apt-get clean', echo);
|
|
51
|
+
await (0, utils_2.exec)('apt-get autoclean', echo);
|
|
52
52
|
const dest = '/var/lib/apt/lists/';
|
|
53
53
|
rmdir(dest, verbose);
|
|
54
54
|
}
|
|
@@ -58,7 +58,7 @@ class Bleach {
|
|
|
58
58
|
*/
|
|
59
59
|
async cleanHistory(verbose = false) {
|
|
60
60
|
if (verbose) {
|
|
61
|
-
|
|
61
|
+
utils_1.default.warning('cleaning bash history');
|
|
62
62
|
}
|
|
63
63
|
const dest = '/root/.bash_history';
|
|
64
64
|
if (node_fs_1.default.existsSync(dest)) {
|
|
@@ -73,21 +73,21 @@ class Bleach {
|
|
|
73
73
|
let echo = { echo: false, ignore: true, capture: false };
|
|
74
74
|
if (verbose) {
|
|
75
75
|
echo = { echo: true, ignore: true, capture: false };
|
|
76
|
-
|
|
76
|
+
utils_1.default.warning('cleaning journald');
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (utils_1.default.isSystemd()) {
|
|
79
79
|
try {
|
|
80
|
-
await (0,
|
|
81
|
-
await (0,
|
|
80
|
+
await (0, utils_2.exec)('journalctl --rotate', echo);
|
|
81
|
+
await (0, utils_2.exec)('journalctl --vacuum-time=1s', echo);
|
|
82
82
|
}
|
|
83
83
|
catch (error) {
|
|
84
|
-
|
|
84
|
+
utils_1.default.error(error);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
// Truncate logs, remove archived logs.
|
|
89
|
-
await (0,
|
|
90
|
-
await (0,
|
|
89
|
+
await (0, utils_2.exec)('find /var/log -name "*gz" -print0 | xargs -0r rm -f', echo);
|
|
90
|
+
await (0, utils_2.exec)('find /var/log/ -type f -exec truncate -s 0 {} \\;', echo);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
@@ -98,14 +98,14 @@ class Bleach {
|
|
|
98
98
|
let echo = { echo: false, ignore: true, capture: false };
|
|
99
99
|
if (verbose) {
|
|
100
100
|
echo = { echo: true, ignore: true, capture: false };
|
|
101
|
-
|
|
101
|
+
utils_1.default.warning('cleaning system cache');
|
|
102
102
|
}
|
|
103
103
|
// Clear PageCache only.
|
|
104
|
-
await (0,
|
|
104
|
+
await (0, utils_2.exec)('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
|
|
105
105
|
// Clear dentries and inodes.
|
|
106
|
-
await (0,
|
|
106
|
+
await (0, utils_2.exec)('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
|
|
107
107
|
// Clear PageCache, dentries and inodes.
|
|
108
|
-
await (0,
|
|
108
|
+
await (0, utils_2.exec)('sync; echo 3 > /proc/sys/vm/drop_caches', echo);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
exports.default = Bleach;
|
|
@@ -119,7 +119,7 @@ async function rm(dest = '', verbose = false) {
|
|
|
119
119
|
echo = { echo: true, ignore: true, capture: false };
|
|
120
120
|
}
|
|
121
121
|
if (node_fs_1.default.existsSync(dest)) {
|
|
122
|
-
await (0,
|
|
122
|
+
await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
125
|
console.log(`non esiste ${dest}`);
|
|
@@ -132,7 +132,7 @@ async function rmdir(dest = '', verbose = false) {
|
|
|
132
132
|
}
|
|
133
133
|
const result = node_fs_1.default.readdirSync(dest);
|
|
134
134
|
if (result.length > 0) {
|
|
135
|
-
await (0,
|
|
135
|
+
await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
/**
|
package/dist/classes/daddy.js
CHANGED
|
@@ -9,36 +9,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
* email: piero.proietti@gmail.com
|
|
10
10
|
* license: MIT
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
12
|
+
const utils_1 = __importDefault(require("../classes/utils"));
|
|
13
|
+
const pacman_1 = __importDefault(require("../classes/pacman"));
|
|
14
|
+
const settings_1 = __importDefault(require("../classes/settings"));
|
|
15
|
+
const ovary_1 = __importDefault(require("../classes/ovary"));
|
|
16
|
+
const compressors_1 = __importDefault(require("../classes/compressors"));
|
|
17
17
|
const inquirer_1 = __importDefault(require("inquirer"));
|
|
18
18
|
const chalk_1 = __importDefault(require("chalk"));
|
|
19
|
-
const
|
|
19
|
+
const utils_2 = require("../lib/utils");
|
|
20
20
|
class Daddy {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.settings = {};
|
|
23
23
|
}
|
|
24
24
|
async helpMe(loadDefault = false, verbose = false) {
|
|
25
25
|
// Controllo configurazione
|
|
26
|
-
if (!
|
|
26
|
+
if (!pacman_1.default.configurationCheck()) {
|
|
27
27
|
console.log('- creating configuration dir...');
|
|
28
|
-
await
|
|
28
|
+
await pacman_1.default.configurationInstall(verbose);
|
|
29
29
|
}
|
|
30
30
|
// Controllo prerequisites
|
|
31
|
-
if (!(await
|
|
31
|
+
if (!(await pacman_1.default.prerequisitesCheck())) {
|
|
32
32
|
console.log('- installing prerequisites...');
|
|
33
|
-
await
|
|
33
|
+
await pacman_1.default.prerequisitesInstall(verbose);
|
|
34
34
|
}
|
|
35
35
|
// Templates
|
|
36
|
-
if (!
|
|
36
|
+
if (!pacman_1.default.distroTemplateCheck()) {
|
|
37
37
|
console.log('- distro template install...');
|
|
38
|
-
await
|
|
38
|
+
await pacman_1.default.distroTemplateInstall(verbose);
|
|
39
39
|
}
|
|
40
40
|
// show and edit configuration
|
|
41
|
-
this.settings = new
|
|
41
|
+
this.settings = new settings_1.default();
|
|
42
42
|
let config = {};
|
|
43
43
|
if (await this.settings.load()) {
|
|
44
44
|
config = this.settings.config;
|
|
@@ -48,7 +48,7 @@ class Daddy {
|
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
if (config.snapshot_prefix === '') {
|
|
51
|
-
config.snapshot_prefix =
|
|
51
|
+
config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
|
|
52
52
|
config.compression = 'fast';
|
|
53
53
|
}
|
|
54
54
|
jsonConf = JSON.stringify(config);
|
|
@@ -64,7 +64,7 @@ class Daddy {
|
|
|
64
64
|
/**
|
|
65
65
|
* Analisi del tipo di compressione disponibile
|
|
66
66
|
*/
|
|
67
|
-
const compressors = new
|
|
67
|
+
const compressors = new compressors_1.default();
|
|
68
68
|
await compressors.populate();
|
|
69
69
|
config.compression = compressors.normal();
|
|
70
70
|
if (newConf.compression === 'fast') {
|
|
@@ -76,20 +76,20 @@ class Daddy {
|
|
|
76
76
|
await this.settings.save(config);
|
|
77
77
|
let flags = '';
|
|
78
78
|
if (loadDefault) {
|
|
79
|
-
await (0,
|
|
80
|
-
await (0,
|
|
79
|
+
await (0, utils_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
|
|
80
|
+
await (0, utils_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
83
|
// Controllo se serve il kill
|
|
84
84
|
if (verbose) {
|
|
85
85
|
flags = '--verbose ';
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
utils_1.default.titles('kill' + flags);
|
|
88
88
|
console.log(chalk_1.default.cyan('Daddy, what else did you leave for me?'));
|
|
89
89
|
await this.settings.listFreeSpace();
|
|
90
|
-
if (await
|
|
91
|
-
await (0,
|
|
92
|
-
await (0,
|
|
90
|
+
if (await utils_1.default.customConfirm()) {
|
|
91
|
+
await (0, utils_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
|
|
92
|
+
await (0, utils_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
* produce
|
|
@@ -99,7 +99,7 @@ class Daddy {
|
|
|
99
99
|
}
|
|
100
100
|
flags += ' --' + newConf.compression;
|
|
101
101
|
flags += ' --addons adapt';
|
|
102
|
-
|
|
102
|
+
utils_1.default.titles('produce' + ' ' + flags);
|
|
103
103
|
console.log(chalk_1.default.cyan('Daddy, what else did you leave for me?'));
|
|
104
104
|
const myAddons = {};
|
|
105
105
|
myAddons.adapt = true;
|
|
@@ -108,8 +108,8 @@ class Daddy {
|
|
|
108
108
|
const scriptOnly = false;
|
|
109
109
|
const yolkRenew = false;
|
|
110
110
|
const final = false;
|
|
111
|
-
const ovary = new
|
|
112
|
-
|
|
111
|
+
const ovary = new ovary_1.default();
|
|
112
|
+
utils_1.default.warning('Produce an egg...');
|
|
113
113
|
if (await ovary.fertilization(config.snapshot_prefix, config.snapshot_basename, config.theme, config.compression)) {
|
|
114
114
|
await ovary.produce(backup, personal, scriptOnly, yolkRenew, final, myAddons, verbose);
|
|
115
115
|
ovary.finished(scriptOnly);
|
|
@@ -131,7 +131,7 @@ class Daddy {
|
|
|
131
131
|
compressionOpt = 2;
|
|
132
132
|
}
|
|
133
133
|
if (c.snapshot_prefix === '') {
|
|
134
|
-
c.snapshot_prefix =
|
|
134
|
+
c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
|
|
135
135
|
}
|
|
136
136
|
return new Promise(function (resolve) {
|
|
137
137
|
const questions = [
|
|
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
13
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
14
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
15
|
+
const pacman_1 = __importDefault(require("../pacman"));
|
|
16
|
+
const dependencies_1 = require("../../lib/dependencies");
|
|
17
|
+
const utils_2 = require("../../lib/utils");
|
|
18
18
|
/**
|
|
19
19
|
* Utils: general porpourse utils
|
|
20
20
|
* @remarks all the utilities
|
|
@@ -63,10 +63,10 @@ class Archlinux {
|
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
static async prerequisitesInstall(verbose = true) {
|
|
66
|
-
const echo =
|
|
66
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
67
67
|
const retVal = false;
|
|
68
|
-
await (0,
|
|
69
|
-
if (!
|
|
68
|
+
await (0, utils_2.exec)(`pacman -Sy ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
69
|
+
if (!pacman_1.default.isInstalledGui()) {
|
|
70
70
|
/**
|
|
71
71
|
* live-config-getty-generator
|
|
72
72
|
*
|
|
@@ -79,7 +79,7 @@ class Archlinux {
|
|
|
79
79
|
*/
|
|
80
80
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
81
81
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
82
|
-
await (0,
|
|
82
|
+
await (0, utils_2.exec)(`rm ${fileToRemove}`);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return retVal;
|
|
@@ -102,13 +102,13 @@ class Archlinux {
|
|
|
102
102
|
*/
|
|
103
103
|
static async calamaresInstall(verbose = false) {
|
|
104
104
|
verbose = true; // serve per pacman
|
|
105
|
-
const echo =
|
|
106
|
-
const cmd = `pacman -Sy --noconfirm ${(0,
|
|
105
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
106
|
+
const cmd = `pacman -Sy --noconfirm ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`;
|
|
107
107
|
try {
|
|
108
|
-
await (0,
|
|
108
|
+
await (0, utils_2.exec)(cmd, echo);
|
|
109
109
|
}
|
|
110
110
|
catch {
|
|
111
|
-
|
|
111
|
+
utils_1.default.error(`Archlinux.calamaresInstall(): ${cmd}`); // + e.error)
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
@@ -116,19 +116,19 @@ class Archlinux {
|
|
|
116
116
|
*/
|
|
117
117
|
static async calamaresPolicies() {
|
|
118
118
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
119
|
-
await (0,
|
|
119
|
+
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
*/
|
|
124
124
|
static async calamaresRemove(verbose = true) {
|
|
125
125
|
verbose = true; // serve per pacman
|
|
126
|
-
const echo =
|
|
126
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
127
127
|
const retVal = false;
|
|
128
128
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
129
|
-
await (0,
|
|
129
|
+
await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
|
|
130
130
|
}
|
|
131
|
-
await (0,
|
|
131
|
+
await (0, utils_2.exec)('yay -Rns calamares', echo);
|
|
132
132
|
return retVal;
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
13
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
14
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
15
|
+
const pacman_1 = __importDefault(require("../pacman"));
|
|
16
|
+
const utils_2 = require("../../lib/utils");
|
|
17
|
+
const dependencies_1 = require("../../lib/dependencies");
|
|
18
18
|
/**
|
|
19
19
|
* Utils: general porpourse utils
|
|
20
20
|
* @remarks all the utilities
|
|
@@ -49,7 +49,7 @@ class Debian {
|
|
|
49
49
|
let packages = [];
|
|
50
50
|
const toInstall = [];
|
|
51
51
|
const toRemove = [];
|
|
52
|
-
for (const elem of
|
|
52
|
+
for (const elem of dependencies_1.depCommon) {
|
|
53
53
|
if (!this.packageIsInstalled(elem)) {
|
|
54
54
|
toInstall.push(elem);
|
|
55
55
|
}
|
|
@@ -57,8 +57,8 @@ class Debian {
|
|
|
57
57
|
toRemove.push(elem);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const arch =
|
|
61
|
-
for (const dep of
|
|
60
|
+
const arch = utils_1.default.machineArch();
|
|
61
|
+
for (const dep of dependencies_1.depArch) {
|
|
62
62
|
if (dep.arch.includes(arch)) {
|
|
63
63
|
if (!this.packageIsInstalled(dep.package)) {
|
|
64
64
|
toInstall.push(dep.package);
|
|
@@ -69,7 +69,7 @@ class Debian {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
const initType = shelljs_1.default.exec('ps --no-headers -o comm 1', { silent: !verbose }).trim();
|
|
72
|
-
for (const dep of
|
|
72
|
+
for (const dep of dependencies_1.depInit) {
|
|
73
73
|
if (dep.init.includes(initType)) {
|
|
74
74
|
if (!this.packageIsInstalled(dep.package)) {
|
|
75
75
|
toInstall.push(dep.package);
|
|
@@ -89,10 +89,10 @@ class Debian {
|
|
|
89
89
|
*
|
|
90
90
|
*/
|
|
91
91
|
static async prerequisitesInstall(verbose = true) {
|
|
92
|
-
const echo =
|
|
92
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
93
93
|
const retVal = false;
|
|
94
|
-
await (0,
|
|
95
|
-
if (!
|
|
94
|
+
await (0, utils_2.exec)(`apt-get install --yes ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
95
|
+
if (!pacman_1.default.isInstalledGui()) {
|
|
96
96
|
/**
|
|
97
97
|
* live-config-getty-generator
|
|
98
98
|
*
|
|
@@ -105,7 +105,7 @@ class Debian {
|
|
|
105
105
|
*/
|
|
106
106
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
107
107
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
108
|
-
await (0,
|
|
108
|
+
await (0, utils_2.exec)(`rm ${fileToRemove}`);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return retVal;
|
|
@@ -128,24 +128,24 @@ class Debian {
|
|
|
128
128
|
*/
|
|
129
129
|
static async liveInstallerPolicies() {
|
|
130
130
|
const policyFile = '/usr/share/polkit-1/actions/com.github.pieroproietti.penguins-eggs.policy';
|
|
131
|
-
await (0,
|
|
131
|
+
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
*/
|
|
136
136
|
static async calamaresInstall(verbose = true) {
|
|
137
|
-
const echo =
|
|
137
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
138
138
|
try {
|
|
139
|
-
await (0,
|
|
139
|
+
await (0, utils_2.exec)('apt-get update --yes', echo);
|
|
140
140
|
}
|
|
141
141
|
catch {
|
|
142
|
-
|
|
142
|
+
utils_1.default.error('Debian.calamaresInstall() apt-get update --yes '); // + e.error as string)
|
|
143
143
|
}
|
|
144
144
|
try {
|
|
145
|
-
await (0,
|
|
145
|
+
await (0, utils_2.exec)(`apt-get install --yes ${(0, dependencies_1.array2spaced)(this.debs4calamares)}`, echo);
|
|
146
146
|
}
|
|
147
147
|
catch {
|
|
148
|
-
|
|
148
|
+
utils_1.default.error(`Debian.calamaresInstall() apt-get install --yes ${(0, dependencies_1.array2spaced)(this.debs4calamares)}`); // + e.error)
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
@@ -153,19 +153,19 @@ class Debian {
|
|
|
153
153
|
*/
|
|
154
154
|
static async calamaresPolicies() {
|
|
155
155
|
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
156
|
-
await (0,
|
|
156
|
+
await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
*/
|
|
161
161
|
static async calamaresRemove(verbose = true) {
|
|
162
|
-
const echo =
|
|
162
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
163
163
|
const retVal = false;
|
|
164
164
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
165
|
-
await (0,
|
|
165
|
+
await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
|
|
166
166
|
}
|
|
167
|
-
await (0,
|
|
168
|
-
await (0,
|
|
167
|
+
await (0, utils_2.exec)('apt-get remove --purge --yes calamares', echo);
|
|
168
|
+
await (0, utils_2.exec)('apt-get autoremove --yes', echo);
|
|
169
169
|
return retVal;
|
|
170
170
|
}
|
|
171
171
|
/**
|