penguins-eggs 9.6.18 → 9.6.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/addons/eggs/theme/livecd/grub.main.cfg +43 -0
- package/addons/eggs/theme/livecd/grub.theme.cfg +1 -1
- package/addons/eggs/theme/livecd/isolinux.main.cfg +37 -0
- package/dist/classes/distro.js +6 -8
- package/dist/classes/ovary.js +42 -6
- package/dist/classes/utils.js +18 -0
- package/dist/classes/xdg.js +16 -3
- package/dist/krill/modules/bootloader-config-arch.js +2 -2
- package/package.json +1 -1
- package/scripts/non-live-cmdline +194 -0
- package/addons/templates/grub.template +0 -31
- package/addons/templates/isolinux.template +0 -27
package/.oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"9.6.18","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 its dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"policies":{"name":"policies","type":"boolean","char":"p","description":"configure calamares policies","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all its dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and its 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},"noicons":{"name":"noicons","type":"boolean","char":"N","description":"no icons","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":["krill"],"examples":["sudo eggs install","sudo eggs install --unattended --halt","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},"halt":{"name":"halt","type":"boolean","char":"H","description":"Halt the system after installation","allowNo":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},"isos":{"name":"isos","type":"boolean","char":"i","description":"erase all ISOs on remote mount","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 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},"noicons":{"name":"noicons","type":"boolean","char":"N","description":"no icons on desktop","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 Penguins' 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},"checksum":{"name":"checksum","type":"boolean","char":"C","description":"export checksums md5 and sha256","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 repo","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 tools skel","sudo eggs tools 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 tools 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-wardrobe","eggs wardrobe list --distro arch"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"distro":{"name":"distro","type":"option","char":"d","description":"distro","multiple":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},"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.6.20","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 its dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"policies":{"name":"policies","type":"boolean","char":"p","description":"configure calamares policies","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all its dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and its 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},"noicons":{"name":"noicons","type":"boolean","char":"N","description":"no icons","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":["krill"],"examples":["sudo eggs install","sudo eggs install --unattended --halt","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},"halt":{"name":"halt","type":"boolean","char":"H","description":"Halt the system after installation","allowNo":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},"isos":{"name":"isos","type":"boolean","char":"i","description":"erase all ISOs on remote mount","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 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},"noicons":{"name":"noicons","type":"boolean","char":"N","description":"no icons on desktop","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 Penguins' 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},"checksum":{"name":"checksum","type":"boolean","char":"C","description":"export checksums md5 and sha256","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 repo","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 tools skel","sudo eggs tools 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 tools 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-wardrobe","eggs wardrobe list --distro arch"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"distro":{"name":"distro","type":"option","char":"d","description":"distro","multiple":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},"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}]}}}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#
|
|
2
|
+
# eggs: grub.main.cfg
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
if loadfont $prefix/font.pf2 ; then
|
|
6
|
+
set gfxmode=1024x768x32
|
|
7
|
+
insmod efi_gop
|
|
8
|
+
insmod efi_uga
|
|
9
|
+
insmod video_bochs
|
|
10
|
+
insmod video_cirrus
|
|
11
|
+
insmod gfxterm
|
|
12
|
+
insmod jpeg
|
|
13
|
+
insmod png
|
|
14
|
+
terminal_output gfxterm
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
set theme=/boot/grub/theme.cfg
|
|
18
|
+
|
|
19
|
+
menuentry "{{{fullname}}} Live/Installation" {
|
|
20
|
+
set gfxpayload=keep
|
|
21
|
+
{{{rmModules}}}
|
|
22
|
+
linux {{{vmlinuz}}} {{{kernel_parameters}}} auto noprompt priority=critical mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
23
|
+
initrd {{{initrdImg}}}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
menuentry "{{{fullname}}} Safe Mode" {
|
|
28
|
+
set gfxpayload=keep
|
|
29
|
+
{{{rmModules}}}
|
|
30
|
+
linux {{{vmlinuz}}} {{{kernel_parameters}}} auto noprompt priority=critical nomodeset apparmor=0 net.ifnames=0 noapic noapm nodma nomce nolapic nosmp vga=normal mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
31
|
+
initrd {{{initrdImg}}}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
menuentry "{{{fullname}}} Text Mode" {
|
|
35
|
+
set gfxpayload=keep
|
|
36
|
+
{{{rmModules}}}
|
|
37
|
+
linux {{{vmlinuz}}} {{{kernel_parameters}}} auto noprompt priority=critical init 3 mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
38
|
+
initrd {{{initrdImg}}}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
menuentry 'Boot from local' {
|
|
42
|
+
exit
|
|
43
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# eggs: isolinux.main.cfg
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# search path for the c32 support libraries (libcom32, libutil etc.)
|
|
5
|
+
path
|
|
6
|
+
include isolinux.theme.cfg
|
|
7
|
+
default vesamenu.c32
|
|
8
|
+
prompt 0
|
|
9
|
+
timeout 100
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
label Live/Installation Mode
|
|
13
|
+
menu label {{{fullname}}} Live/Installation Mode
|
|
14
|
+
menu default
|
|
15
|
+
say "Booting {{{fullname}}} GNU/Linux (kernel {{{kernel}}})"
|
|
16
|
+
linux {{{vmlinuz}}}
|
|
17
|
+
append initrd={{{initrdImg}}} {{{kernel_parameters}}} auto noprompt priority=critical mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
label Boot in Safe Mode
|
|
21
|
+
menu label {{{fullname}}} Safe Mode
|
|
22
|
+
say "Booting {{{fullname}}} GNU/Linux (kernel {{{kernel}}})"
|
|
23
|
+
linux {{{vmlinuz}}}
|
|
24
|
+
append initrd={{{initrdImg}}} {{{kernel_parameters}}} auto noprompt priority=critical nomodeset apparmor=0 net.ifnames=0 noapic noapm nodma nomce nolapic nosmp vga=normal mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
label Boot in Text Mode
|
|
28
|
+
menu label {{{fullname}}} Text Mode
|
|
29
|
+
say "Booting {{{fullname}}} GNU/Linux (kernel {{{kernel}}})"
|
|
30
|
+
linux {{{vmlinuz}}}
|
|
31
|
+
append initrd={{{initrdImg}}} {{{kernel_parameters}}} auto noprompt priority=critical init 3 mitigations=off amd_pstate.enable=0 intel_pstate=disable loglevel=0 nowatchdog elevator=noop slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 fsck.mode=skip quiet splash
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
label Boot from local
|
|
35
|
+
com32 chain.c32
|
|
36
|
+
append hd1 1 swap
|
|
37
|
+
|
package/dist/classes/distro.js
CHANGED
|
@@ -248,16 +248,14 @@ class Distro {
|
|
|
248
248
|
break;
|
|
249
249
|
}
|
|
250
250
|
// No default
|
|
251
|
-
} // Fine analisi
|
|
251
|
+
} // Fine analisi codenameId
|
|
252
252
|
/**
|
|
253
|
-
*
|
|
253
|
+
* if lsb-release exists
|
|
254
254
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (node_fs_1.default.existsSync('/etc/antix-version')) {
|
|
260
|
-
this.distroId = 'MX';
|
|
255
|
+
const lsbConfig = '/etc/lsb-release';
|
|
256
|
+
if (node_fs_1.default.existsSync(lsbConfig)) {
|
|
257
|
+
this.distroId = utils_1.default.searchOnFile(lsbConfig, `DISTRIB_ID`);
|
|
258
|
+
this.codenameId = utils_1.default.searchOnFile(lsbConfig, `DISTRIB_CODENAME`);
|
|
261
259
|
}
|
|
262
260
|
/**
|
|
263
261
|
* ManjaroLinux
|
package/dist/classes/ovary.js
CHANGED
|
@@ -234,6 +234,33 @@ class Ovary {
|
|
|
234
234
|
const mkIsofsCmd = this.xorrisoCommand(clone, cryptedclone).replace(/\s\s+/g, ' ');
|
|
235
235
|
const info = utils_2.default.getVolid(this.settings.remix.name);
|
|
236
236
|
this.makeDotDisk(info, mksquashfsCmd, mkIsofsCmd);
|
|
237
|
+
/**
|
|
238
|
+
* AntiX/MX LINUX
|
|
239
|
+
*/
|
|
240
|
+
if (fs_1.default.existsSync('/etc/antix-version')) {
|
|
241
|
+
let uname = (await (0, utils_1.exec)('uname -r', { capture: true })).data;
|
|
242
|
+
uname = uname.replaceAll('\n', '');
|
|
243
|
+
let content = '';
|
|
244
|
+
content += 'mkdir /live/bin -p\n';
|
|
245
|
+
content += '## \n';
|
|
246
|
+
content += 'cp /usr/lib/penguins-eggs/scripts/non-live-cmdline /live/bin -p\n';
|
|
247
|
+
content += 'chmod +x /live/bin/non-live-cmdline\n';
|
|
248
|
+
content += '## \n';
|
|
249
|
+
content += 'mkdir /live/boot-dev/antiX -p\n';
|
|
250
|
+
content += 'ln -s /run/live/medium/live/filesystem.squashfs /live/boot-dev/antiX/linuxfs\n';
|
|
251
|
+
content += `ln -s /run/live/medium/live/initrd.img-${uname} /live/boot-dev/antiX/initrd.gz\n`;
|
|
252
|
+
content += `ln -s /run/live/medium/live/vmlinuz-${uname} /live/boot-dev/antiX/vmlinuz\n`;
|
|
253
|
+
content += `# md5sum /live/boot-dev/antiX/linuxfs > /live/boot-dev/antiX/linuxfs.md5\n`;
|
|
254
|
+
content += `# md5sum /live/boot-dev/antiX/initrd.gz > /live/boot-dev/antiX/initrd.gz.md5\n`;
|
|
255
|
+
content += `# md5sum /live/boot-dev/antiX/vmlinuz > /live/boot-dev/antiX/vmlinuz.md5\n`;
|
|
256
|
+
content += `# /live/aufs -> /run/live/rootfs/filesystem.squashfs\n`;
|
|
257
|
+
content += 'ln -s /run/live/rootfs/filesystem.squashfs /live/aufs\n';
|
|
258
|
+
content += `# use: minstall -no-media-check\n`;
|
|
259
|
+
content += 'minstall --no-media-check\n';
|
|
260
|
+
let file = `${this.settings.iso_work}antix-mx-installer`;
|
|
261
|
+
fs_1.default.writeFileSync(file, content);
|
|
262
|
+
await (0, utils_1.exec)(`chmod +x ${file}`);
|
|
263
|
+
}
|
|
237
264
|
/**
|
|
238
265
|
* patch to emulate miso/archiso on archilinux
|
|
239
266
|
*/
|
|
@@ -602,10 +629,15 @@ class Ovary {
|
|
|
602
629
|
}
|
|
603
630
|
fs_1.default.copyFileSync(isolinuxThemeSrc, isolinuxThemeDest);
|
|
604
631
|
/**
|
|
605
|
-
* isolinux.cfg from isolinux.
|
|
632
|
+
* isolinux.cfg from isolinux.main.cfg
|
|
606
633
|
*/
|
|
607
|
-
const isolinuxDest = this.settings.iso_work
|
|
608
|
-
|
|
634
|
+
const isolinuxDest = `${this.settings.iso_work}/isolinux/isolinux.cfg`;
|
|
635
|
+
this.settings.iso_work + 'isolinux/isolinux.cfg';
|
|
636
|
+
let isolinuxTemplate = `${theme}/theme/livecd/isolinux.main.cfg`;
|
|
637
|
+
if (!fs_1.default.existsSync(isolinuxTemplate)) {
|
|
638
|
+
//isolinuxTemplate = path.resolve(__dirname, '../../addons/templates/isolinux.main.cfg')
|
|
639
|
+
isolinuxTemplate = node_path_1.default.resolve(__dirname, '../../addons/eggs/theme/livecd/isolinux.main.cfg');
|
|
640
|
+
}
|
|
609
641
|
if (!fs_1.default.existsSync(isolinuxTemplate)) {
|
|
610
642
|
utils_2.default.warning('Cannot find: ' + isolinuxTemplate);
|
|
611
643
|
process.exit();
|
|
@@ -1202,7 +1234,7 @@ class Ovary {
|
|
|
1202
1234
|
*/
|
|
1203
1235
|
const dirAutostart = `${this.settings.work_dir.merged}/etc/xdg/autostart`;
|
|
1204
1236
|
if (fs_1.default.existsSync(dirAutostart)) {
|
|
1205
|
-
// Creo l'avviatore xdg DEVE essere add-penguins-links.desktop
|
|
1237
|
+
// Creo l'avviatore xdg: DEVE essere add-penguins-links.desktop
|
|
1206
1238
|
shelljs_1.default.cp(node_path_1.default.resolve(__dirname, '../../assets/penguins-links-add.desktop'), dirAutostart);
|
|
1207
1239
|
// create /usr/bin/penguins-links-add.sh
|
|
1208
1240
|
const script = '/usr/bin/penguins-links-add.sh';
|
|
@@ -1459,9 +1491,13 @@ class Ovary {
|
|
|
1459
1491
|
}
|
|
1460
1492
|
fs_1.default.copyFileSync(grubThemeSrc, grubThemeDest);
|
|
1461
1493
|
/**
|
|
1462
|
-
* prepare grub.cfg from grub.
|
|
1494
|
+
* prepare grub.cfg from grub.main.cfg
|
|
1463
1495
|
*/
|
|
1464
|
-
|
|
1496
|
+
let grubTemplate = `${theme}/theme/livecd/grub.main.cfg`;
|
|
1497
|
+
if (!fs_1.default.existsSync(grubTemplate)) {
|
|
1498
|
+
// grubTemplate = path.resolve(__dirname, '../../addons/templates/grub.main.cfg')
|
|
1499
|
+
grubTemplate = node_path_1.default.resolve(__dirname, '../../addons/eggs/theme/livecd/grub.main.cfg');
|
|
1500
|
+
}
|
|
1465
1501
|
if (!fs_1.default.existsSync(grubTemplate)) {
|
|
1466
1502
|
utils_2.default.warning('Cannot find: ' + grubTemplate);
|
|
1467
1503
|
process.exit();
|
package/dist/classes/utils.js
CHANGED
|
@@ -27,6 +27,24 @@ const pjson = require('../../package.json');
|
|
|
27
27
|
* @remarks all the utilities
|
|
28
28
|
*/
|
|
29
29
|
class Utils {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param file
|
|
33
|
+
* @param search
|
|
34
|
+
* @returns value
|
|
35
|
+
*/
|
|
36
|
+
static searchOnFile(file = '', search = '') {
|
|
37
|
+
const lines = fs_1.default.readFileSync(file, 'utf8').split("\n");
|
|
38
|
+
let value = '';
|
|
39
|
+
lines.forEach(line => {
|
|
40
|
+
line = line.replace(/\s+/g, ' '); // Remove multiple spaces with single space
|
|
41
|
+
if (line.includes(search)) {
|
|
42
|
+
value = line.substring(line.indexOf('=') + 1);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
value = value.replaceAll('"', ''); // Remove "
|
|
46
|
+
return value.trim();
|
|
47
|
+
}
|
|
30
48
|
/**
|
|
31
49
|
* Restituisce il prefisso della iso
|
|
32
50
|
* @param distroId
|
package/dist/classes/xdg.js
CHANGED
|
@@ -82,11 +82,24 @@ class Xdg {
|
|
|
82
82
|
static async autologin(olduser, newuser, chroot = '/') {
|
|
83
83
|
if (pacman_1.default.isInstalledGui()) {
|
|
84
84
|
/**
|
|
85
|
-
* SLIM
|
|
85
|
+
* SLIM & SLIMSKI
|
|
86
86
|
*/
|
|
87
|
+
let slimConf = '';
|
|
87
88
|
if (pacman_1.default.packageIsInstalled('slim')) {
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
slimConf = 'slim.conf';
|
|
90
|
+
if (node_fs_1.default.existsSync('/etc/slim.local.conf')) {
|
|
91
|
+
slimConf = 'slim.local.conf';
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (pacman_1.default.packageIsInstalled('slimski')) {
|
|
95
|
+
slimConf = 'slimski.conf';
|
|
96
|
+
if (node_fs_1.default.existsSync('/etc/slimski.local.conf')) {
|
|
97
|
+
slimConf = 'slimski.local.conf';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (slimConf !== '') {
|
|
101
|
+
shelljs_1.default.sed('-i', 'auto_login no', 'auto_login yes', `${chroot}/etc/${slimConf}`);
|
|
102
|
+
shelljs_1.default.sed('-i', `default_user ${olduser}`, `default_user ${newuser}`, `${chroot}/etc/${slimConf}`);
|
|
90
103
|
}
|
|
91
104
|
/**
|
|
92
105
|
* LIGHTDM
|
|
@@ -11,7 +11,7 @@ async function bootloaderConfigArch() {
|
|
|
11
11
|
let cmd = '';
|
|
12
12
|
if (this.efi) {
|
|
13
13
|
try {
|
|
14
|
-
cmd = `chroot ${this.installTarget} pacman -
|
|
14
|
+
cmd = `chroot ${this.installTarget} pacman -Sy grub efibootmgr} ${this.toNull}`;
|
|
15
15
|
await (0, utils_1.exec)(cmd, this.echo);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
@@ -21,7 +21,7 @@ async function bootloaderConfigArch() {
|
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
23
|
try {
|
|
24
|
-
cmd = `chroot ${this.installTarget} pacman -
|
|
24
|
+
cmd = `chroot ${this.installTarget} pacman -Sy grub ${this.toNull}`;
|
|
25
25
|
await (0, utils_1.exec)(cmd, this.echo);
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
PROC_CMDLINE=$(cat /proc/cmdline)
|
|
4
|
+
CONF_CMDLINE=$(grep ^CONFIG_CMDLINE= /boot/config-$(uname -r) 2>/dev/null | cut -d\" -f2 | tail -1)
|
|
5
|
+
|
|
6
|
+
CMD_LINE=""
|
|
7
|
+
for param in $PROC_CMDLINE; do
|
|
8
|
+
x=x
|
|
9
|
+
for conf in $CONF_CMDLINE; do
|
|
10
|
+
[ "$conf" = "$param" ] && x="" && break
|
|
11
|
+
done
|
|
12
|
+
[ -n "$x" ] && CMD_LINE="$CMD_LINE $param"
|
|
13
|
+
done
|
|
14
|
+
|
|
15
|
+
for param in $CMD_LINE; do
|
|
16
|
+
case $param in
|
|
17
|
+
|
|
18
|
+
menus) ;;
|
|
19
|
+
menus=*) ;;
|
|
20
|
+
old-conf) ;;
|
|
21
|
+
new-conf) ;;
|
|
22
|
+
splash) ;;
|
|
23
|
+
splash=*) ;;
|
|
24
|
+
poweroff) ;;
|
|
25
|
+
reboot) ;;
|
|
26
|
+
bootdir=*|bdir=*) ;;
|
|
27
|
+
bootlabel=*|blabel=*|blab=*) ;;
|
|
28
|
+
bootuuid=*|buuid=*) ;;
|
|
29
|
+
bootdev=*|bdev=*) ;;
|
|
30
|
+
|
|
31
|
+
try=*|retry=*) ;;
|
|
32
|
+
|
|
33
|
+
persistdir=*|pdir=*) ;;
|
|
34
|
+
|
|
35
|
+
persistlabel=*|plabel=*|plab=*) ;;
|
|
36
|
+
persistuuid=*|puuid=*) ;;
|
|
37
|
+
persistdev=*|pdev=*) ;;
|
|
38
|
+
|
|
39
|
+
persistretry=*|pretry=*|ptry=*) ;;
|
|
40
|
+
|
|
41
|
+
dbv=*) ;;
|
|
42
|
+
fneed=*) ;;
|
|
43
|
+
fforce) ;;
|
|
44
|
+
frugal) ;;
|
|
45
|
+
frugal=*) ;;
|
|
46
|
+
flab=*) ;;
|
|
47
|
+
fdev=*) ;;
|
|
48
|
+
fuuid=*) ;;
|
|
49
|
+
|
|
50
|
+
iso=*|fromiso=*) ;;
|
|
51
|
+
iso|fromiso) ;;
|
|
52
|
+
|
|
53
|
+
from=*) ;;
|
|
54
|
+
|
|
55
|
+
persist=*|p=*) ;;
|
|
56
|
+
persist) ;;
|
|
57
|
+
|
|
58
|
+
sqext=*) ;;
|
|
59
|
+
sqname=*) ;;
|
|
60
|
+
sq=*) ;;
|
|
61
|
+
|
|
62
|
+
verbose=*|verb=*|v=*) ;;
|
|
63
|
+
bp=*) ;;
|
|
64
|
+
pk=*) ;;
|
|
65
|
+
|
|
66
|
+
check|md5|checkmd5) ;;
|
|
67
|
+
hico|highcolor) ;;
|
|
68
|
+
loco|lowcolor) ;;
|
|
69
|
+
noco|nocolor) ;;
|
|
70
|
+
|
|
71
|
+
noxtra) ;;
|
|
72
|
+
doxtra) ;;
|
|
73
|
+
|
|
74
|
+
db+) ;;
|
|
75
|
+
db++) ;;
|
|
76
|
+
|
|
77
|
+
fancyprompt|fprompt) ;;
|
|
78
|
+
autologin|alogin) ;;
|
|
79
|
+
|
|
80
|
+
toram|toram=*) ;;
|
|
81
|
+
|
|
82
|
+
noremaster) ;;
|
|
83
|
+
rollback) ;;
|
|
84
|
+
lang=*) ;;
|
|
85
|
+
|
|
86
|
+
noclear) ;;
|
|
87
|
+
gfxsave|gfxsave=*) ;;
|
|
88
|
+
|
|
89
|
+
checkfs) ;;
|
|
90
|
+
nocheckfs) ;;
|
|
91
|
+
|
|
92
|
+
failsafe) ;;
|
|
93
|
+
load=*) ;;
|
|
94
|
+
bl=*|blacklist=*) ;;
|
|
95
|
+
|
|
96
|
+
coldplug) ;;
|
|
97
|
+
hotplug) ;;
|
|
98
|
+
traceload) ;;
|
|
99
|
+
autoload|aload) ;;
|
|
100
|
+
|
|
101
|
+
init=*) ;;
|
|
102
|
+
|
|
103
|
+
nousb2|noehci) ;;
|
|
104
|
+
|
|
105
|
+
noerrlog) ;;
|
|
106
|
+
errtest) ;;
|
|
107
|
+
errtest=*) ;;
|
|
108
|
+
noerr=*) ;;
|
|
109
|
+
|
|
110
|
+
vtblank=*) ;;
|
|
111
|
+
|
|
112
|
+
livedir=*|ldir=*) ;;
|
|
113
|
+
pw|passwd|pw=*|passwd=*) ;;
|
|
114
|
+
private|private=*) ;;
|
|
115
|
+
bootchart) ;;
|
|
116
|
+
noplink) ;;
|
|
117
|
+
plink) ;;
|
|
118
|
+
|
|
119
|
+
disable=*|nosysv=*) ;;
|
|
120
|
+
disable_srv=*|disable_service=*) ;;
|
|
121
|
+
lean|mean|Xtralean|nodbus) ;;
|
|
122
|
+
initcall_debug|printk.time=y) ;;
|
|
123
|
+
|
|
124
|
+
# Convenience short cuts from our menus
|
|
125
|
+
persist_all) ;;
|
|
126
|
+
persist_root) ;;
|
|
127
|
+
persist_static) ;;
|
|
128
|
+
p_static_root) ;;
|
|
129
|
+
persist_home) ;;
|
|
130
|
+
frugal_persist) ;;
|
|
131
|
+
frugal_root) ;;
|
|
132
|
+
frugal_static) ;;
|
|
133
|
+
f_static_root) ;;
|
|
134
|
+
frugal_home) ;;
|
|
135
|
+
frugal_only) ;;
|
|
136
|
+
nostore) ;;
|
|
137
|
+
dostore) ;;
|
|
138
|
+
disablestore) ;;
|
|
139
|
+
fatuid=*|fatgid=*) ;;
|
|
140
|
+
live_swap=*) ;;
|
|
141
|
+
mk_swap_file) ;;
|
|
142
|
+
mk_swap_file=*) ;;
|
|
143
|
+
notmptmp) ;;
|
|
144
|
+
nomicrocode) ;;
|
|
145
|
+
nosavelogs) ;;
|
|
146
|
+
tty1on) ;;
|
|
147
|
+
splasht) ;;
|
|
148
|
+
splasht=*) ;;
|
|
149
|
+
st_tty=*) ;;
|
|
150
|
+
vcard=*) ;;
|
|
151
|
+
|
|
152
|
+
# Our Live params
|
|
153
|
+
hwclock=utc|hwclock=local|xorg|xorg=*|noearlyvid|earlyvid) ;;
|
|
154
|
+
amnt|amnt=*|automount|automount=*|confont=*|conkeys=*);;
|
|
155
|
+
desktop=*|dpi=*|fstab=*|hostname=*|kbd=*|kbopt=*|kbvar=*);;
|
|
156
|
+
lang=*|mirror=*|mount=*|noloadkeys|noprompt);;
|
|
157
|
+
nosplash|password|password=*|prompt|pw|pw=*|tz=*|ubp=*|ushow=*);;
|
|
158
|
+
uverb=*|xres=*|noxorg);;
|
|
159
|
+
desktheme=*) ;;
|
|
160
|
+
nosavestate|savestate|dbsavestate) ;;
|
|
161
|
+
deskdelay=*) ;;
|
|
162
|
+
udpi=*|sdpi=*) ;;
|
|
163
|
+
fontsize=*) ;;
|
|
164
|
+
norepo|norepo=*) ;;
|
|
165
|
+
conwidth=*);;
|
|
166
|
+
noautomount) ;;
|
|
167
|
+
vga=ask+save) ;;
|
|
168
|
+
|
|
169
|
+
skylakeflicker) ;;
|
|
170
|
+
i915powersave) ;;
|
|
171
|
+
|
|
172
|
+
aufs|overlayfs) ;;
|
|
173
|
+
wicd|nowicd) ;;
|
|
174
|
+
|
|
175
|
+
nomicrocode) ;;
|
|
176
|
+
live_swap=off) ;;
|
|
177
|
+
live_swap=force) ;;
|
|
178
|
+
live_swap=all-off) ;;
|
|
179
|
+
mk_swap_file=*) ;;
|
|
180
|
+
|
|
181
|
+
# Added by Grub
|
|
182
|
+
BOOT_IMAGE=*) ;;
|
|
183
|
+
|
|
184
|
+
# Sometimes added with grub loop mounts
|
|
185
|
+
*root=*) ;;
|
|
186
|
+
|
|
187
|
+
# Added by live-Grub menu
|
|
188
|
+
grubsave) ;;
|
|
189
|
+
kernel=*) ;;
|
|
190
|
+
extra=*) ;;
|
|
191
|
+
|
|
192
|
+
*) printf "%s " "$param"
|
|
193
|
+
esac
|
|
194
|
+
done
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# eggs: grub.template.cfg
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
if loadfont $prefix/font.pf2 ; then
|
|
6
|
-
set gfxmode=1024x768x32
|
|
7
|
-
insmod efi_gop
|
|
8
|
-
insmod efi_uga
|
|
9
|
-
insmod video_bochs
|
|
10
|
-
insmod video_cirrus
|
|
11
|
-
insmod gfxterm
|
|
12
|
-
insmod jpeg
|
|
13
|
-
insmod png
|
|
14
|
-
terminal_output gfxterm
|
|
15
|
-
fi
|
|
16
|
-
|
|
17
|
-
set theme=/boot/grub/theme.cfg
|
|
18
|
-
|
|
19
|
-
menuentry "{{{fullname}}}" {
|
|
20
|
-
set gfxpayload=keep
|
|
21
|
-
{{{rmModules}}}
|
|
22
|
-
linux {{{vmlinuz}}} {{{kernel_parameters}}} ipv6.disable=1 quiet splash
|
|
23
|
-
initrd {{{initrdImg}}}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
menuentry "{{{fullname}}} safe" {
|
|
27
|
-
set gfxpayload=keep
|
|
28
|
-
{{{rmModules}}}
|
|
29
|
-
linux {{{vmlinuz}}} {{{kernel_parameters}}} apparmor=0 net.ifnames=0 noapic noapm nodma nomce nolapic nosmp vga=normal ipv6.disable=1
|
|
30
|
-
initrd {{{initrdImg}}}
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# eggs: isolinux.cfg
|
|
2
|
-
#
|
|
3
|
-
|
|
4
|
-
# search path for the c32 support libraries (libcom32, libutil etc.)
|
|
5
|
-
path
|
|
6
|
-
include isolinux.theme.cfg
|
|
7
|
-
default vesamenu.c32
|
|
8
|
-
prompt 0
|
|
9
|
-
timeout 2
|
|
10
|
-
|
|
11
|
-
#
|
|
12
|
-
label GUI
|
|
13
|
-
menu label {{{fullname}}}
|
|
14
|
-
menu default
|
|
15
|
-
say "Booting {{{fullname}}} GNU/Linux Live (kernel {{{kernel}}})"
|
|
16
|
-
linux {{{vmlinuz}}}
|
|
17
|
-
append initrd={{{initrdImg}}} {{{kernel_parameters}}} ipv6.disable=1
|
|
18
|
-
|
|
19
|
-
label SAFE
|
|
20
|
-
menu label {{{fullname}}} SAFE
|
|
21
|
-
say "Booting {{{fullname}}} GNU/Linux Live safe mode (kernel {{{kernel}}})"
|
|
22
|
-
linux {{{vmlinuz}}}
|
|
23
|
-
append initrd={{{initrdImg}}} {{{kernel_parameters}}} apparmor=0 net.ifnames=0 noapic noapm nodma nomce nolapic nosmp vga=normal ipv6.disable=1
|
|
24
|
-
|
|
25
|
-
label Boot from local
|
|
26
|
-
com32 chain.c32
|
|
27
|
-
append hd1 1 swap
|