penguins-eggs 9.3.19 → 9.3.20
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/README.md +17 -37
- package/dist/classes/pacman.js +2 -0
- package/dist/classes/xdg.js +34 -23
- package/dist/commands/install.js +6 -3
- package/dist/krill/krill-prepare.js +21 -10
- package/dist/krill/krill-sequence.js +3 -2
- package/package.json +1 -1
- package/scripts/_eggs +6 -14
- package/scripts/eggs.bash +2 -3
- package/dist/commands/wardrobe/ironing.js +0 -143
package/.oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"9.3.19","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":"calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["~$ sudo eggs calamares \ncreate/renew calamares configuration's files\n","~$ sudo eggs calamares -i \ninstall calamares and create it's configuration's files\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","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}},"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\nConfigure and install prerequisites deb packages to run it"],"flags":{"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"assume yes","allowNo":false},"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},"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\nstart a PXE server with dhcp-proxy (can coexists with a real dhcp server)\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"command-line system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs install\nInstall the system using krill installer\n"],"flags":{"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"none":{"name":"none","type":"boolean","char":"n","description":"Swap none: 256M","allowNo":false},"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","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":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs kill\nkill the eggs/free the nest"],"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":[]},"mom":{"id":"mom","description":"ask for mommy - gui helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"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 \nproduce an ISO called [hostname]-[arch]-YYYY-MM-DD_HHMM.iso, compressed xz (standard compression).\nIf hostname=ugo and arch=i386 ugo-x86-2020-08-25_1215.iso\n","$ sudo eggs produce -v\nsame as previuos, but with --verbose output\n","$ sudo eggs produce -vf\nsame as previuos, compression zstd, lz4 or gzip (depend from system capability)\n","$ sudo eggs produce -vm\nsame as previuos, compression xz -Xbcj x86 (max compression, about 10%\nmore compressed)\n","$ sudo eggs produce -vf --basename leo --theme debian --addons adapt \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression fast,\nusing Debian theme and link to adapt\n","$ sudo eggs produce -v --basename leo --theme debian --addons rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz,\nusing Debian theme and link to dwagent\n","$ sudo eggs produce -v --basename leo --rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz, using eggs\ntheme and link to dwagent\n","$ sudo eggs produce -vs --basename leo --rsupport \nproduce scripts to build an ISO as the previus example. Scripts can be found\nin /home/eggs/ovarium and you can customize all you need\n"],"flags":{"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"backup mode (CRYPTED)","allowNo":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone mode","allowNo":false},"fast":{"name":"fast","type":"boolean","char":"f","description":"fast compression","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":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},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"don't ask for user interctions","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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 restore"],"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},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","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":[]},"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"],"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\nupdate/upgrade the penguin's eggs tool"],"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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"export backup ISOs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","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":[],"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":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","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":["$ eggs skel --user mauro\ndesktop configuration of user mauro will get used as default"],"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":[],"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":["$ eggs yolk -v"],"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":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"repo","description":"repository to get","required":false}]},"wardrobe:ironing":{"id":"wardrobe:ironing","description":"ordered show of costumes or accessories in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"costume","description":"costume","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":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":[],"flags":{"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"costume","description":"costume","required":false}]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":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},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
|
|
1
|
+
{"version":"9.3.20","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":"calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["~$ sudo eggs calamares \ncreate/renew calamares configuration's files\n","~$ sudo eggs calamares -i \ninstall calamares and create it's configuration's files\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","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}},"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\nConfigure and install prerequisites deb packages to run it"],"flags":{"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"assume yes","allowNo":false},"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},"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\nstart a PXE server with dhcp-proxy (can coexists with a real dhcp server)\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"command-line system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs install\nInstall the system using krill installer\n"],"flags":{"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"assume yes","allowNo":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"none":{"name":"none","type":"boolean","char":"N","description":"Swap none: 256M","allowNo":false},"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","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":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs kill\nkill the eggs/free the nest"],"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":[]},"mom":{"id":"mom","description":"ask for mommy - gui helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"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 \nproduce an ISO called [hostname]-[arch]-YYYY-MM-DD_HHMM.iso, compressed xz (standard compression).\nIf hostname=ugo and arch=i386 ugo-x86-2020-08-25_1215.iso\n","$ sudo eggs produce -v\nsame as previuos, but with --verbose output\n","$ sudo eggs produce -vf\nsame as previuos, compression zstd, lz4 or gzip (depend from system capability)\n","$ sudo eggs produce -vm\nsame as previuos, compression xz -Xbcj x86 (max compression, about 10%\nmore compressed)\n","$ sudo eggs produce -vf --basename leo --theme debian --addons adapt \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression fast,\nusing Debian theme and link to adapt\n","$ sudo eggs produce -v --basename leo --theme debian --addons rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz,\nusing Debian theme and link to dwagent\n","$ sudo eggs produce -v --basename leo --rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz, using eggs\ntheme and link to dwagent\n","$ sudo eggs produce -vs --basename leo --rsupport \nproduce scripts to build an ISO as the previus example. Scripts can be found\nin /home/eggs/ovarium and you can customize all you need\n"],"flags":{"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"backup mode (CRYPTED)","allowNo":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone mode","allowNo":false},"fast":{"name":"fast","type":"boolean","char":"f","description":"fast compression","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":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},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"don't ask for user interctions","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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 restore"],"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},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","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":[]},"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"],"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\nupdate/upgrade the penguin's eggs tool"],"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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"export backup ISOs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","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":[],"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":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","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":["$ eggs skel --user mauro\ndesktop configuration of user mauro will get used as default"],"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":[],"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":["$ eggs yolk -v"],"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":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":[],"flags":{"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"costume","description":"costume","required":false}]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":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},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
|
package/README.md
CHANGED
|
@@ -184,7 +184,6 @@ In addition to the description of the commands in this README, you can consult t
|
|
|
184
184
|
* [`eggs update`](#eggs-update)
|
|
185
185
|
* [`eggs version`](#eggs-version)
|
|
186
186
|
* [`eggs wardrobe get [REPO]`](#eggs-wardrobe-get-repo)
|
|
187
|
-
* [`eggs wardrobe ironing [COSTUME]`](#eggs-wardrobe-ironing-costume)
|
|
188
187
|
* [`eggs wardrobe list [WARDROBE]`](#eggs-wardrobe-list-wardrobe)
|
|
189
188
|
* [`eggs wardrobe show [COSTUME]`](#eggs-wardrobe-show-costume)
|
|
190
189
|
* [`eggs wardrobe wear [COSTUME]`](#eggs-wardrobe-wear-costume)
|
|
@@ -205,7 +204,7 @@ DESCRIPTION
|
|
|
205
204
|
adapt monitor resolution for VM only
|
|
206
205
|
```
|
|
207
206
|
|
|
208
|
-
_See code: [dist/commands/adapt.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
207
|
+
_See code: [dist/commands/adapt.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/adapt.js)_
|
|
209
208
|
|
|
210
209
|
## `eggs analyze`
|
|
211
210
|
|
|
@@ -226,7 +225,7 @@ EXAMPLES
|
|
|
226
225
|
$ sudo eggs analyze
|
|
227
226
|
```
|
|
228
227
|
|
|
229
|
-
_See code: [dist/commands/analyze.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
228
|
+
_See code: [dist/commands/analyze.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/analyze.js)_
|
|
230
229
|
|
|
231
230
|
## `eggs autocomplete [SHELL]`
|
|
232
231
|
|
|
@@ -284,7 +283,7 @@ EXAMPLES
|
|
|
284
283
|
install calamares and create it's configuration's files
|
|
285
284
|
```
|
|
286
285
|
|
|
287
|
-
_See code: [dist/commands/calamares.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
286
|
+
_See code: [dist/commands/calamares.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/calamares.js)_
|
|
288
287
|
|
|
289
288
|
## `eggs config`
|
|
290
289
|
|
|
@@ -308,7 +307,7 @@ EXAMPLES
|
|
|
308
307
|
Configure and install prerequisites deb packages to run it
|
|
309
308
|
```
|
|
310
309
|
|
|
311
|
-
_See code: [dist/commands/config.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
310
|
+
_See code: [dist/commands/config.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/config.js)_
|
|
312
311
|
|
|
313
312
|
## `eggs cuckoo`
|
|
314
313
|
|
|
@@ -329,7 +328,7 @@ EXAMPLES
|
|
|
329
328
|
start a PXE server with dhcp-proxy (can coexists with a real dhcp server)
|
|
330
329
|
```
|
|
331
330
|
|
|
332
|
-
_See code: [dist/commands/cuckoo.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
331
|
+
_See code: [dist/commands/cuckoo.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/cuckoo.js)_
|
|
333
332
|
|
|
334
333
|
## `eggs dad`
|
|
335
334
|
|
|
@@ -349,7 +348,7 @@ DESCRIPTION
|
|
|
349
348
|
ask help from daddy - configuration helper
|
|
350
349
|
```
|
|
351
350
|
|
|
352
|
-
_See code: [dist/commands/dad.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
351
|
+
_See code: [dist/commands/dad.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/dad.js)_
|
|
353
352
|
|
|
354
353
|
## `eggs export deb`
|
|
355
354
|
|
|
@@ -413,16 +412,17 @@ command-line system installer - the egg became a penguin!
|
|
|
413
412
|
|
|
414
413
|
```
|
|
415
414
|
USAGE
|
|
416
|
-
$ eggs install [-u] [-c <value>] [-i] [-r] [-d <value>] [-S] [-s] [-
|
|
415
|
+
$ eggs install [-u] [-c <value>] [-n] [-i] [-r] [-d <value>] [-S] [-s] [-N] [-k] [-p] [-h] [-v]
|
|
417
416
|
|
|
418
417
|
FLAGS
|
|
418
|
+
-N, --none Swap none: 256M
|
|
419
419
|
-S, --suspend Swap suspend: RAM x 2
|
|
420
420
|
-c, --custom=<value> custom unattended configuration
|
|
421
421
|
-d, --domain=<value> Domain name, defult: .local
|
|
422
422
|
-h, --help Show CLI help.
|
|
423
423
|
-i, --ip hostname as ip, eg: ip-192-168-1-33
|
|
424
424
|
-k, --crypted Crypted CLI installation
|
|
425
|
-
-n, --
|
|
425
|
+
-n, --nointeractive assume yes
|
|
426
426
|
-p, --pve Proxmox VE install
|
|
427
427
|
-r, --random Add random to hostname, eg: colibri-ay412dt
|
|
428
428
|
-s, --small Swap small: RAM
|
|
@@ -437,7 +437,7 @@ EXAMPLES
|
|
|
437
437
|
Install the system using krill installer
|
|
438
438
|
```
|
|
439
439
|
|
|
440
|
-
_See code: [dist/commands/install.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
440
|
+
_See code: [dist/commands/install.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/install.js)_
|
|
441
441
|
|
|
442
442
|
## `eggs kill`
|
|
443
443
|
|
|
@@ -459,7 +459,7 @@ EXAMPLES
|
|
|
459
459
|
kill the eggs/free the nest
|
|
460
460
|
```
|
|
461
461
|
|
|
462
|
-
_See code: [dist/commands/kill.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
462
|
+
_See code: [dist/commands/kill.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/kill.js)_
|
|
463
463
|
|
|
464
464
|
## `eggs mom`
|
|
465
465
|
|
|
@@ -476,7 +476,7 @@ DESCRIPTION
|
|
|
476
476
|
ask for mommy - gui helper
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
_See code: [dist/commands/mom.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
479
|
+
_See code: [dist/commands/mom.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/mom.js)_
|
|
480
480
|
|
|
481
481
|
## `eggs produce`
|
|
482
482
|
|
|
@@ -538,7 +538,7 @@ EXAMPLES
|
|
|
538
538
|
in /home/eggs/ovarium and you can customize all you need
|
|
539
539
|
```
|
|
540
540
|
|
|
541
|
-
_See code: [dist/commands/produce.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
541
|
+
_See code: [dist/commands/produce.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/produce.js)_
|
|
542
542
|
|
|
543
543
|
## `eggs status`
|
|
544
544
|
|
|
@@ -556,7 +556,7 @@ DESCRIPTION
|
|
|
556
556
|
informations about eggs status
|
|
557
557
|
```
|
|
558
558
|
|
|
559
|
-
_See code: [dist/commands/status.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
559
|
+
_See code: [dist/commands/status.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/status.js)_
|
|
560
560
|
|
|
561
561
|
## `eggs syncfrom`
|
|
562
562
|
|
|
@@ -580,7 +580,7 @@ EXAMPLES
|
|
|
580
580
|
$ sudo eggs restore
|
|
581
581
|
```
|
|
582
582
|
|
|
583
|
-
_See code: [dist/commands/syncfrom.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
583
|
+
_See code: [dist/commands/syncfrom.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/syncfrom.js)_
|
|
584
584
|
|
|
585
585
|
## `eggs syncto`
|
|
586
586
|
|
|
@@ -603,7 +603,7 @@ EXAMPLES
|
|
|
603
603
|
$ sudo eggs syncto
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
_See code: [dist/commands/syncto.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
606
|
+
_See code: [dist/commands/syncto.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/syncto.js)_
|
|
607
607
|
|
|
608
608
|
## `eggs tools clean`
|
|
609
609
|
|
|
@@ -716,7 +716,7 @@ EXAMPLES
|
|
|
716
716
|
update/upgrade the penguin's eggs tool
|
|
717
717
|
```
|
|
718
718
|
|
|
719
|
-
_See code: [dist/commands/update.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.
|
|
719
|
+
_See code: [dist/commands/update.js](https://github.com/pieroproietti/penguins-eggs/blob/v9.3.20/dist/commands/update.js)_
|
|
720
720
|
|
|
721
721
|
## `eggs version`
|
|
722
722
|
|
|
@@ -757,26 +757,6 @@ DESCRIPTION
|
|
|
757
757
|
get warorobe
|
|
758
758
|
```
|
|
759
759
|
|
|
760
|
-
## `eggs wardrobe ironing [COSTUME]`
|
|
761
|
-
|
|
762
|
-
ordered show of costumes or accessories in wardrobe
|
|
763
|
-
|
|
764
|
-
```
|
|
765
|
-
USAGE
|
|
766
|
-
$ eggs wardrobe ironing [COSTUME] [-w <value>] [-v] [-h]
|
|
767
|
-
|
|
768
|
-
ARGUMENTS
|
|
769
|
-
COSTUME costume
|
|
770
|
-
|
|
771
|
-
FLAGS
|
|
772
|
-
-h, --help Show CLI help.
|
|
773
|
-
-v, --verbose
|
|
774
|
-
-w, --wardrobe=<value> wardrobe
|
|
775
|
-
|
|
776
|
-
DESCRIPTION
|
|
777
|
-
ordered show of costumes or accessories in wardrobe
|
|
778
|
-
```
|
|
779
|
-
|
|
780
760
|
## `eggs wardrobe list [WARDROBE]`
|
|
781
761
|
|
|
782
762
|
list costumes and accessoires in wardrobe
|
package/dist/classes/pacman.js
CHANGED
package/dist/classes/xdg.js
CHANGED
|
@@ -109,24 +109,39 @@ class Xdg {
|
|
|
109
109
|
if (pacman_1.default.packageIsInstalled('sddm')) {
|
|
110
110
|
let sddmChanged = false;
|
|
111
111
|
let curFile = `${chroot}/etc/sddm.conf`;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
if (node_fs_1.default.existsSync(curFile)) {
|
|
113
|
+
let content = node_fs_1.default.readFileSync(curFile, 'utf8');
|
|
114
|
+
let find = `[Autologin]`;
|
|
115
|
+
if (content.includes(find)) {
|
|
116
|
+
shelljs_1.default.sed('-i', `User=${olduser}`, `User=${newuser}`, curFile);
|
|
117
|
+
sddmChanged = true;
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
if (!sddmChanged) {
|
|
119
121
|
let dc = `${chroot}/etc/sddm.conf.d/`;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
if (node_fs_1.default.existsSync(dc)) {
|
|
123
|
+
let files = node_fs_1.default.readdirSync(dc);
|
|
124
|
+
for (const elem of files) {
|
|
125
|
+
const curFile = dc + elem;
|
|
126
|
+
let content = node_fs_1.default.readFileSync(curFile, 'utf8');
|
|
127
|
+
let find = `[Autologin]`;
|
|
128
|
+
if (content.includes(find)) {
|
|
129
|
+
shelljs_1.default.sed('-i', `User=${olduser}`, `User=${newuser}`, curFile);
|
|
130
|
+
sddmChanged = true;
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
}
|
|
129
134
|
}
|
|
135
|
+
// sddm.conf don't exists, generate it
|
|
136
|
+
if (!sddmChanged) {
|
|
137
|
+
let session = "plasma";
|
|
138
|
+
if (pacman_1.default.isInstalledWayland()) {
|
|
139
|
+
session = "plasma-wayland";
|
|
140
|
+
}
|
|
141
|
+
let content = `[Autologin]\nUser=${newuser}\nSession=${session}\n`;
|
|
142
|
+
let curFile = `${chroot}/etc/sddm.conf`;
|
|
143
|
+
node_fs_1.default.writeFileSync(curFile, content, 'utf8');
|
|
144
|
+
}
|
|
130
145
|
}
|
|
131
146
|
/**
|
|
132
147
|
* GDM/GDM3
|
|
@@ -177,12 +192,12 @@ class Xdg {
|
|
|
177
192
|
await rsyncIfExist(`/home/${user}/.gtkrc-2.0`, '/etc/skel', verbose);
|
|
178
193
|
}
|
|
179
194
|
else if (pacman_1.default.packageIsInstalled('cinnamon-core')) {
|
|
180
|
-
// use .cinnamon NOT cinnamon/
|
|
195
|
+
// use .cinnamon NOT cinnamon/
|
|
181
196
|
await rsyncIfExist(`/home/${user}/.config`, '/etc/skel', verbose);
|
|
182
197
|
await rsyncIfExist(`/home/${user}/.cinnamon`, '/etc/skel', verbose);
|
|
183
198
|
}
|
|
184
199
|
else if (pacman_1.default.packageIsInstalled('plasma-desktop')) {
|
|
185
|
-
// use .kde NOT .kde/
|
|
200
|
+
// use .kde NOT .kde/
|
|
186
201
|
await rsyncIfExist(`/home/${user}/.config`, '/etc/skel', verbose);
|
|
187
202
|
await rsyncIfExist(`/home/${user}/.kde`, '/etc/skel', verbose);
|
|
188
203
|
}
|
|
@@ -202,7 +217,7 @@ class Xdg {
|
|
|
202
217
|
await rsyncIfExist(`/home/${user}/.gtkrc-2.0`, '/etc/skel', verbose);
|
|
203
218
|
}
|
|
204
219
|
else if (pacman_1.default.packageIsInstalled('xfce4-session')) {
|
|
205
|
-
// use .config/xfce4 NOT .config/xfce4/
|
|
220
|
+
// use .config/xfce4 NOT .config/xfce4/
|
|
206
221
|
await rsyncIfExist(`/home/${user}/.config/xfce4`, '/etc/skel/.config', verbose);
|
|
207
222
|
await (0, utils_2.exec)(`mkdir /etc/skel/.local/share -p`, echo);
|
|
208
223
|
await rsyncIfExist(`/home/${user}/.local/share/recently-used.xbel`, '/etc/skel/.local/share', verbose);
|
|
@@ -210,6 +225,10 @@ class Xdg {
|
|
|
210
225
|
/**
|
|
211
226
|
* special cases
|
|
212
227
|
*/
|
|
228
|
+
// waydroid
|
|
229
|
+
if (node_fs_1.default.existsSync(`/home/${user}/waydroid-package-manager`)) {
|
|
230
|
+
await rsyncIfExist(`/home/${user}/waydroid-package-manager`, '/etc/skel', verbose);
|
|
231
|
+
}
|
|
213
232
|
// LinuxFX
|
|
214
233
|
if (node_fs_1.default.existsSync(`/home/${user}/.linuxfx`)) {
|
|
215
234
|
// we need to copy: .linuxfx ,kde and ,cinnamon
|
|
@@ -217,14 +236,6 @@ class Xdg {
|
|
|
217
236
|
await rsyncIfExist(`/home/${user}/.kde`, '/etc/skel', verbose);
|
|
218
237
|
await rsyncIfExist(`/home/${user}/.linuxfx`, `/etc/skel`, verbose);
|
|
219
238
|
await rsyncIfExist(`/home/${user}/.local`, '/etc/skel', verbose);
|
|
220
|
-
// Create dirs - we try in this way...
|
|
221
|
-
// await exec(`mkdir /etc/skel/Desktop`)
|
|
222
|
-
// await exec(`mkdir /etc/skel/Downloads`)
|
|
223
|
-
// await exec(`mkdir /etc/skel/OneDrive`)
|
|
224
|
-
// await exec(`mkdir /etc/skel/Pictures`)
|
|
225
|
-
// await exec(`mkdir /etc/skel/Public`)
|
|
226
|
-
// await exec(`mkdir /etc/skel/Template`)
|
|
227
|
-
// await exec(`mkdir /etc/skel/Videos`)
|
|
228
239
|
}
|
|
229
240
|
await (0, utils_2.exec)('chown root:root /etc/skel -R', echo);
|
|
230
241
|
await (0, utils_2.exec)('chmod a+rwx,g-w,o-w /etc/skel/ -R', echo);
|
package/dist/commands/install.js
CHANGED
|
@@ -49,6 +49,8 @@ class Install extends core_1.Command {
|
|
|
49
49
|
krillConfig = js_yaml_1.default.load(content);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
+
// noninteractive
|
|
53
|
+
let noninteractive = flags.nointeractive;
|
|
52
54
|
// hostname
|
|
53
55
|
let ip = flags.ip;
|
|
54
56
|
let random = flags.random;
|
|
@@ -69,7 +71,7 @@ class Install extends core_1.Command {
|
|
|
69
71
|
if (utils_1.default.isRoot()) {
|
|
70
72
|
if (utils_1.default.isLive()) {
|
|
71
73
|
const krill = new krill_prepare_1.default();
|
|
72
|
-
await krill.prepare(unattended, krillConfig, ip, random, domain, suspend, small, none, crypted, pve, verbose);
|
|
74
|
+
await krill.prepare(unattended, noninteractive, krillConfig, ip, random, domain, suspend, small, none, crypted, pve, verbose);
|
|
73
75
|
}
|
|
74
76
|
else {
|
|
75
77
|
utils_1.default.warning('You are in an installed system!');
|
|
@@ -84,6 +86,7 @@ exports.default = Install;
|
|
|
84
86
|
Install.flags = {
|
|
85
87
|
unattended: core_1.Flags.boolean({ char: 'u', description: 'Unattended installation' }),
|
|
86
88
|
custom: core_1.Flags.string({ char: 'c', description: 'custom unattended configuration' }),
|
|
89
|
+
nointeractive: core_1.Flags.boolean({ char: 'n', description: 'assume yes' }),
|
|
87
90
|
// hostname
|
|
88
91
|
ip: core_1.Flags.boolean({ char: 'i', description: 'hostname as ip, eg: ip-192-168-1-33' }),
|
|
89
92
|
random: core_1.Flags.boolean({ char: 'r', description: 'Add random to hostname, eg: colibri-ay412dt' }),
|
|
@@ -93,8 +96,8 @@ Install.flags = {
|
|
|
93
96
|
// swap: Flags.string({char: 's', description: 'swap: none, small, suspend'}),
|
|
94
97
|
suspend: core_1.Flags.boolean({ char: 'S', description: 'Swap suspend: RAM x 2' }),
|
|
95
98
|
small: core_1.Flags.boolean({ char: 's', description: 'Swap small: RAM' }),
|
|
96
|
-
none: core_1.Flags.boolean({ char: '
|
|
97
|
-
//
|
|
99
|
+
none: core_1.Flags.boolean({ char: 'N', description: 'Swap none: 256M' }),
|
|
100
|
+
//
|
|
98
101
|
crypted: core_1.Flags.boolean({ char: 'k', description: 'Crypted CLI installation' }),
|
|
99
102
|
pve: core_1.Flags.boolean({ char: 'p', description: 'Proxmox VE install' }),
|
|
100
103
|
// generic
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
2
4
|
/**
|
|
3
5
|
* penguins-eggs: krill
|
|
4
6
|
*
|
|
@@ -53,8 +55,6 @@
|
|
|
53
55
|
* KDE-shipping-distro). To get all that you just need Calamares installed and the
|
|
54
56
|
* relevant /etc/calamares/ files.
|
|
55
57
|
*/
|
|
56
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
const tslib_1 = require("tslib");
|
|
58
58
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
59
59
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
60
60
|
const ink_1 = require("ink");
|
|
@@ -110,7 +110,7 @@ class Krill {
|
|
|
110
110
|
/**
|
|
111
111
|
* @param cryped
|
|
112
112
|
*/
|
|
113
|
-
async prepare(unattended = false, krillConfig = {}, ip = false, random = false, domain = 'local', suspend = false, small = false, none = false, cryped = false, pve = false, verbose = false) {
|
|
113
|
+
async prepare(unattended = false, noninteractive = false, krillConfig = {}, ip = false, random = false, domain = 'local', suspend = false, small = false, none = false, cryped = false, pve = false, verbose = false) {
|
|
114
114
|
/**
|
|
115
115
|
* Check for disk presence
|
|
116
116
|
*/
|
|
@@ -209,6 +209,7 @@ class Krill {
|
|
|
209
209
|
dns: utils_1.default.getDns(),
|
|
210
210
|
domain: utils_1.default.getDomain()
|
|
211
211
|
};
|
|
212
|
+
// end unattended!
|
|
212
213
|
}
|
|
213
214
|
else {
|
|
214
215
|
oWelcome = await this.welcome();
|
|
@@ -221,7 +222,7 @@ class Krill {
|
|
|
221
222
|
/**
|
|
222
223
|
* summary
|
|
223
224
|
*/
|
|
224
|
-
await this.summary(oLocation, oKeyboard, oPartitions, oUsers, unattended);
|
|
225
|
+
await this.summary(oLocation, oKeyboard, oPartitions, oUsers, unattended, noninteractive);
|
|
225
226
|
/**
|
|
226
227
|
* installation
|
|
227
228
|
*/
|
|
@@ -233,7 +234,7 @@ class Krill {
|
|
|
233
234
|
async welcome() {
|
|
234
235
|
let language = this.krillConfig.language;
|
|
235
236
|
if (language === '') {
|
|
236
|
-
language = await this.locales.getDefault(); // 'en_US.UTF-8'
|
|
237
|
+
language = await this.locales.getDefault(); // 'en_US.UTF-8'
|
|
237
238
|
}
|
|
238
239
|
let welcomeElem;
|
|
239
240
|
while (true) {
|
|
@@ -479,19 +480,28 @@ class Krill {
|
|
|
479
480
|
/**
|
|
480
481
|
* SUMMARY
|
|
481
482
|
*/
|
|
482
|
-
async summary(location, keyboard, partitions, users, unattended = false) {
|
|
483
|
+
async summary(location, keyboard, partitions, users, unattended = false, noninteractive = false) {
|
|
484
|
+
//
|
|
483
485
|
let summaryElem;
|
|
484
|
-
let message = "";
|
|
485
|
-
if (unattended) {
|
|
486
|
+
let message = "Double check the installation disk: " + partitions.installationDevice;
|
|
487
|
+
if (unattended && noninteractive) {
|
|
486
488
|
message = "Unattended installation will start in 5 seconds, press CTRL-C to abort!";
|
|
487
489
|
}
|
|
488
490
|
while (true) {
|
|
489
491
|
summaryElem = react_1.default.createElement(summary_1.default, { name: users.name, password: users.password, rootPassword: users.rootPassword, hostname: users.hostname, region: location.region, zone: location.zone, language: location.language, keyboardModel: keyboard.keyboardModel, keyboardLayout: keyboard.keyboardLayout, installationDevice: partitions.installationDevice, message: message });
|
|
490
|
-
if (unattended) {
|
|
492
|
+
if (unattended && noninteractive) {
|
|
491
493
|
redraw(summaryElem);
|
|
492
494
|
await sleep(5000);
|
|
493
495
|
break;
|
|
494
496
|
}
|
|
497
|
+
else if (unattended && !noninteractive) {
|
|
498
|
+
if (await confirm(summaryElem, "Read the Summary, confirm or abort")) {
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
process.exit(0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
495
505
|
else if (await confirm(summaryElem, "Confirm Summary datas?")) {
|
|
496
506
|
break;
|
|
497
507
|
}
|
|
@@ -542,7 +552,8 @@ function redraw(elem) {
|
|
|
542
552
|
let opt = {};
|
|
543
553
|
opt.patchConsole = true;
|
|
544
554
|
opt.debug = false;
|
|
545
|
-
|
|
555
|
+
console.clear();
|
|
556
|
+
// shx.exec('clear')
|
|
546
557
|
(0, ink_1.render)(elem, opt);
|
|
547
558
|
}
|
|
548
559
|
/**
|
|
@@ -88,7 +88,7 @@ class Sequence {
|
|
|
88
88
|
// bootloader-config
|
|
89
89
|
this.bootloaderConfig = bootloader_config_1.default;
|
|
90
90
|
this.bootloaderConfigUbuntu = bootloader_config_ubuntu_1.default;
|
|
91
|
-
//
|
|
91
|
+
//
|
|
92
92
|
this.grubcfg = grubcfg_1.default;
|
|
93
93
|
this.bootloader = bootloader_1.default;
|
|
94
94
|
this.packages = packages_1.default;
|
|
@@ -427,6 +427,7 @@ class Sequence {
|
|
|
427
427
|
// cleanup
|
|
428
428
|
await cliAutologin.msgRemove(`${this.installTarget}/etc/motd`);
|
|
429
429
|
await cliAutologin.msgRemove(`${this.installTarget}/etc/issue`);
|
|
430
|
+
await cliAutologin.remove(this.installTarget);
|
|
430
431
|
// bootloader-config
|
|
431
432
|
message = "bootloader-config ";
|
|
432
433
|
percent = 0.70;
|
|
@@ -437,7 +438,7 @@ class Sequence {
|
|
|
437
438
|
catch (error) {
|
|
438
439
|
await utils_1.default.pressKeyToExit(JSON.stringify(error));
|
|
439
440
|
}
|
|
440
|
-
// grubcfg
|
|
441
|
+
// grubcfg
|
|
441
442
|
message = "grubcfg ";
|
|
442
443
|
percent = 0.75;
|
|
443
444
|
try {
|
package/package.json
CHANGED
package/scripts/_eggs
CHANGED
|
@@ -29,12 +29,11 @@ _eggs () {
|
|
|
29
29
|
"tools\:yolk:configure eggs to install without internet"
|
|
30
30
|
"update:update the penguin's eggs tool"
|
|
31
31
|
"wardrobe\:get:get warorobe"
|
|
32
|
-
"wardrobe\:ironing:ordered show of costumes or accessories in wardrobe"
|
|
33
32
|
"wardrobe\:list:list costumes and accessoires in wardrobe"
|
|
34
33
|
"wardrobe\:show:show costumes/accessories in wardrobe"
|
|
35
34
|
"wardrobe\:wear:wear costume/accessories from wardrobe"
|
|
36
|
-
"autocomplete:display autocomplete installation instructions"
|
|
37
35
|
"help:Display help for <%= config.bin %>."
|
|
36
|
+
"autocomplete:display autocomplete installation instructions"
|
|
38
37
|
"version:"
|
|
39
38
|
)
|
|
40
39
|
|
|
@@ -111,6 +110,7 @@ install)
|
|
|
111
110
|
_command_flags=(
|
|
112
111
|
"--unattended[Unattended installation]"
|
|
113
112
|
"--custom=-[custom unattended configuration]:"
|
|
113
|
+
"--nointeractive[assume yes]"
|
|
114
114
|
"--ip[hostname as ip, eg: ip-192-168-1-33]"
|
|
115
115
|
"--random[Add random to hostname, eg: colibri-ay412dt]"
|
|
116
116
|
"--domain=-[Domain name, defult: .local]:"
|
|
@@ -235,14 +235,6 @@ wardrobe:get)
|
|
|
235
235
|
)
|
|
236
236
|
;;
|
|
237
237
|
|
|
238
|
-
wardrobe:ironing)
|
|
239
|
-
_command_flags=(
|
|
240
|
-
"--wardrobe=-[wardrobe]:"
|
|
241
|
-
"--verbose[]"
|
|
242
|
-
"--help[Show CLI help.]"
|
|
243
|
-
)
|
|
244
|
-
;;
|
|
245
|
-
|
|
246
238
|
wardrobe:list)
|
|
247
239
|
_command_flags=(
|
|
248
240
|
"--verbose[]"
|
|
@@ -270,15 +262,15 @@ wardrobe:wear)
|
|
|
270
262
|
)
|
|
271
263
|
;;
|
|
272
264
|
|
|
273
|
-
|
|
265
|
+
help)
|
|
274
266
|
_command_flags=(
|
|
275
|
-
"--
|
|
267
|
+
"--nested-commands[Include all nested commands in the output.]"
|
|
276
268
|
)
|
|
277
269
|
;;
|
|
278
270
|
|
|
279
|
-
|
|
271
|
+
autocomplete)
|
|
280
272
|
_command_flags=(
|
|
281
|
-
"--
|
|
273
|
+
"--refresh-cache[Refresh cache (ignores displaying instructions)]"
|
|
282
274
|
)
|
|
283
275
|
;;
|
|
284
276
|
|
package/scripts/eggs.bash
CHANGED
|
@@ -19,7 +19,7 @@ cuckoo --help
|
|
|
19
19
|
dad --help --clean --default --verbose
|
|
20
20
|
export:deb --help --all --clean --verbose
|
|
21
21
|
export:iso --help --backup --clean --verbose
|
|
22
|
-
install --unattended --custom --ip --random --domain --suspend --small --none --crypted --pve --help --verbose
|
|
22
|
+
install --unattended --custom --nointeractive --ip --random --domain --suspend --small --none --crypted --pve --help --verbose
|
|
23
23
|
kill --help --verbose
|
|
24
24
|
mom --help
|
|
25
25
|
produce --prefix --basename --backup --clone --fast --max --verbose --yolk --script --help --theme --addons --release --nointeractive
|
|
@@ -33,12 +33,11 @@ tools:stat --help --month --year
|
|
|
33
33
|
tools:yolk --help --verbose
|
|
34
34
|
update --help --verbose
|
|
35
35
|
wardrobe:get --verbose --help
|
|
36
|
-
wardrobe:ironing --wardrobe --verbose --help
|
|
37
36
|
wardrobe:list --verbose --help
|
|
38
37
|
wardrobe:show --wardrobe --json --verbose --help
|
|
39
38
|
wardrobe:wear --wardrobe --no_accessories --no_firmwares --silent --verbose --help
|
|
40
|
-
autocomplete --refresh-cache
|
|
41
39
|
help --nested-commands
|
|
40
|
+
autocomplete --refresh-cache
|
|
42
41
|
version --json --verbose
|
|
43
42
|
"
|
|
44
43
|
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Ironing = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@oclif/core");
|
|
6
|
-
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
9
|
-
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
class Ironing extends core_1.Command {
|
|
14
|
-
async run() {
|
|
15
|
-
const { args, flags } = await this.parse(Ironing);
|
|
16
|
-
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
17
|
-
let verbose = false;
|
|
18
|
-
if (flags.verbose) {
|
|
19
|
-
verbose = true;
|
|
20
|
-
}
|
|
21
|
-
const echo = utils_1.default.setEcho(verbose);
|
|
22
|
-
let wardrobe = await utils_1.default.wardrobe();
|
|
23
|
-
if (flags.wardrobe !== undefined) {
|
|
24
|
-
wardrobe = flags.wardrobe;
|
|
25
|
-
}
|
|
26
|
-
if (!wardrobe.endsWith('/')) {
|
|
27
|
-
wardrobe += '/';
|
|
28
|
-
}
|
|
29
|
-
wardrobe = `${path_1.default.resolve(process.cwd(), wardrobe)}/`;
|
|
30
|
-
if (!fs_1.default.existsSync(wardrobe)) {
|
|
31
|
-
utils_1.default.warning(`wardrobe: ${wardrobe} not found!`);
|
|
32
|
-
process.exit();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* costume
|
|
36
|
-
*/
|
|
37
|
-
let costume = 'costumes/colibri';
|
|
38
|
-
if (this.argv['0'] !== undefined) {
|
|
39
|
-
costume = this.argv['0'];
|
|
40
|
-
if (costume.substring(0, 8) !== 'costumes' && costume.substring(0, 11) !== 'accessories' && costume.substring(0, 7) !== 'servers') {
|
|
41
|
-
costume = `costumes/${costume}`;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
costume = wardrobe + costume;
|
|
45
|
-
/**
|
|
46
|
-
* tailorList
|
|
47
|
-
*/
|
|
48
|
-
let tailorList = `${costume}/index.yml`;
|
|
49
|
-
if (!fs_1.default.existsSync(tailorList)) {
|
|
50
|
-
utils_1.default.warning(`index.yml not found in : ${costume}!`);
|
|
51
|
-
process.exit();
|
|
52
|
-
}
|
|
53
|
-
const orig = js_yaml_1.default.load(fs_1.default.readFileSync(tailorList, 'utf-8'));
|
|
54
|
-
let sorted = orig;
|
|
55
|
-
sorted.name = orig.name;
|
|
56
|
-
sorted.author = orig.author;
|
|
57
|
-
sorted.description = orig.description;
|
|
58
|
-
sorted.release = orig.release;
|
|
59
|
-
sorted.distributions = orig.distributions.sort();
|
|
60
|
-
if (orig.sequence !== undefined) {
|
|
61
|
-
if (orig.sequence.repositories !== undefined) {
|
|
62
|
-
sorted.sequence.repositories = orig.sequence.repositories;
|
|
63
|
-
if (orig.sequence.repositories.sources_list !== undefined) {
|
|
64
|
-
sorted.sequence.repositories.sources_list = orig.sequence.repositories.sources_list;
|
|
65
|
-
}
|
|
66
|
-
if (orig.sequence.repositories.sources_list_d !== undefined) {
|
|
67
|
-
sorted.sequence.repositories.sources_list_d = orig.sequence.repositories.sources_list_d;
|
|
68
|
-
}
|
|
69
|
-
sorted.sequence.repositories.update = orig.sequence.repositories.update;
|
|
70
|
-
sorted.sequence.repositories.upgrade = orig.sequence.repositories.upgrade;
|
|
71
|
-
}
|
|
72
|
-
if (orig.sequence.preinst !== undefined) {
|
|
73
|
-
sorted.sequence.preinst = orig.sequence.preinst;
|
|
74
|
-
}
|
|
75
|
-
if (orig.sequence.dependencies !== undefined) {
|
|
76
|
-
sorted.sequence.dependencies = orig.sequence.dependencies.sort();
|
|
77
|
-
}
|
|
78
|
-
if (orig.sequence.packages !== undefined) {
|
|
79
|
-
if (Array.isArray(orig.sequence.packages)) {
|
|
80
|
-
sorted.sequence.packages = orig.sequence.packages.sort();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (orig.sequence.packages_no_install_recommends !== undefined) {
|
|
84
|
-
if (Array.isArray(orig.sequence.packages_no_install_recommends)) {
|
|
85
|
-
sorted.sequence.packages_no_install_recommends = orig.sequence.packages_no_install_recommends.sort();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (orig.sequence.try_packages !== undefined) {
|
|
89
|
-
if (Array.isArray(orig.sequence.try_packages)) {
|
|
90
|
-
sorted.sequence.try_packages = orig.sequence.try_packages.sort();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (orig.sequence.try_packages_no_install_recommends !== undefined) {
|
|
94
|
-
if (Array.isArray(orig.sequence.try_packages_no_install_recommends)) {
|
|
95
|
-
sorted.sequence.try_packages_no_install_recommends = orig.sequence.try_packages_no_install_recommends.sort();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (orig.sequence.debs !== undefined) {
|
|
99
|
-
sorted.sequence.debs = orig.sequence.debs;
|
|
100
|
-
}
|
|
101
|
-
if (orig.sequence.packages_python !== undefined) {
|
|
102
|
-
if (Array.isArray(orig.sequence.packages_python)) {
|
|
103
|
-
sorted.sequence.packages_python = orig.sequence.packages_python.sort();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (orig.sequence.accessories !== undefined) {
|
|
107
|
-
if (Array.isArray(orig.sequence.accessories)) {
|
|
108
|
-
sorted.sequence.accessories = orig.sequence.accessories.sort();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (orig.sequence.try_accessories !== undefined) {
|
|
112
|
-
if (Array.isArray(orig.sequence.try_accessories)) {
|
|
113
|
-
sorted.sequence.try_accessories = orig.sequence.try_accessories.sort();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (orig.customize !== undefined) {
|
|
118
|
-
sorted.customize = orig.customize;
|
|
119
|
-
if (orig.customize.dirs !== undefined) {
|
|
120
|
-
sorted.customize.dirs = orig.customize.dirs;
|
|
121
|
-
}
|
|
122
|
-
if (orig.customize.hostname !== undefined) {
|
|
123
|
-
sorted.customize.hostname = orig.customize.hostname;
|
|
124
|
-
}
|
|
125
|
-
if (orig.customize.scripts !== undefined) {
|
|
126
|
-
orig.customize.scripts = orig.customize.scripts;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if (orig.reboot !== undefined) {
|
|
130
|
-
sorted.reboot = orig.reboot;
|
|
131
|
-
}
|
|
132
|
-
const ironed = `# costume: ${costume}\n---\n` + js_yaml_1.default.dump(sorted);
|
|
133
|
-
console.log(ironed);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
exports.Ironing = Ironing;
|
|
137
|
-
Ironing.description = 'ordered show of costumes or accessories in wardrobe';
|
|
138
|
-
Ironing.args = [{ name: 'costume', description: 'costume', required: false }];
|
|
139
|
-
Ironing.flags = {
|
|
140
|
-
wardrobe: core_1.Flags.string({ char: 'w', description: 'wardrobe' }),
|
|
141
|
-
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
142
|
-
help: core_1.Flags.help({ char: 'h' })
|
|
143
|
-
};
|