penguins-eggs 9.3.24 → 9.3.26
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 +65 -62
- package/addons/templates/isolinux.template +1 -1
- package/conf/distros/buster/calamares/calamares-modules/bootloader-config/bootloader-config.sh +2 -2
- package/conf/distros/jessie/krill/krill-modules/bootloader-config/bootloader-config.sh +2 -2
- package/dist/classes/incubation/fisherman.js +3 -6
- package/dist/classes/ovary.js +78 -58
- package/dist/classes/pxe.js +1 -1
- package/dist/classes/tools.js +1 -2
- package/dist/classes/utils.js +1 -1
- package/dist/commands/calamares.js +3 -1
- package/dist/commands/config.js +7 -6
- package/dist/commands/export/iso.js +0 -5
- package/dist/commands/install.js +4 -4
- package/dist/commands/kill.js +4 -2
- package/dist/commands/produce.js +17 -19
- package/dist/commands/syncfrom.js +8 -8
- package/dist/commands/syncto.js +2 -2
- package/dist/commands/tools/clean.js +3 -1
- package/dist/commands/tools/ppa.js +4 -2
- package/dist/components/elements/title.js +1 -1
- package/dist/krill/krill-prepare.js +6 -6
- package/dist/krill/krill-sequence.js +126 -114
- package/dist/krill/modules/remove-installer-link.js +2 -2
- package/eui/README.md +72 -0
- package/eui/eui-create-image.sh +12 -0
- package/eui/eui-start.sh +32 -0
- package/eui/eui-users +2 -0
- package/eui/eui.desktop +10 -0
- package/package.json +2 -1
- package/scripts/_eggs +55 -52
- package/scripts/eggs.bash +18 -18
- package/scripts/mom.sh +6 -7
package/eui/eui-start.sh
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/bin/env bash
|
|
2
|
+
if mountpoint -q "/lib/live/mount"; then
|
|
3
|
+
|
|
4
|
+
# if isLive
|
|
5
|
+
echo "E G G S: the reproductive system of penguins"
|
|
6
|
+
echo
|
|
7
|
+
echo "WARNING: A fully automated system installation is about to start,"
|
|
8
|
+
echo " ALL data on the hard drive present will be ERASED!"
|
|
9
|
+
echo
|
|
10
|
+
|
|
11
|
+
# try to read /etc/hostname from /dev/sda
|
|
12
|
+
sudo mount "/dev/sda2" "/mnt"
|
|
13
|
+
OS_HOSTNAME=$(/usr/bin/cat /mnt/etc/hostname)
|
|
14
|
+
sudo umount "/dev/sda2"
|
|
15
|
+
|
|
16
|
+
echo "I will completely format local system: ${OS_HOSTNAME}"
|
|
17
|
+
echo
|
|
18
|
+
echo "Installation will start in one minute, press CTRL-C to abort!"
|
|
19
|
+
echo
|
|
20
|
+
echo -n "Waiting... ";
|
|
21
|
+
for _ in {1..60}; do read -rs -n1 -t1 || printf ".";done;echo
|
|
22
|
+
|
|
23
|
+
# install system
|
|
24
|
+
sudo eggs install -unrd .local
|
|
25
|
+
else
|
|
26
|
+
# isInstalled
|
|
27
|
+
sudo rm -f /etc/sudoers.d/eui-users
|
|
28
|
+
sudo rm -f /usr/bin/eui-start.sh
|
|
29
|
+
sudo rm -f /etc/xdg/autostart/eui.desktop
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
|
package/eui/eui-users
ADDED
package/eui/eui.desktop
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "penguins-eggs",
|
|
3
3
|
"description": "Perri's Brewery edition: remaster your system and distribuite it",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.26",
|
|
5
5
|
"author": "Piero Proietti @pieroproietti",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eggs": "bin/run"
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"/bin",
|
|
74
74
|
"/conf",
|
|
75
75
|
"/dist",
|
|
76
|
+
"/eui",
|
|
76
77
|
"/ipxe",
|
|
77
78
|
"/manpages",
|
|
78
79
|
"mkinitcpio",
|
package/scripts/_eggs
CHANGED
|
@@ -9,15 +9,15 @@ _eggs () {
|
|
|
9
9
|
local -a _all_commands=(
|
|
10
10
|
"adapt:adapt monitor resolution for VM only"
|
|
11
11
|
"analyze:analyze for syncto"
|
|
12
|
-
"calamares:calamares or install or configure it"
|
|
12
|
+
"calamares:configure calamares or install or configure it"
|
|
13
13
|
"config:Configure and install prerequisites deb packages to run it"
|
|
14
14
|
"cuckoo:PXE start with proxy-dhcp"
|
|
15
|
-
"dad:ask help from daddy - configuration helper"
|
|
15
|
+
"dad:ask help from daddy - TUI configuration helper"
|
|
16
16
|
"export\:deb:export deb/docs/iso to the destination host"
|
|
17
17
|
"export\:iso:export iso in the destination host"
|
|
18
|
-
"install:
|
|
18
|
+
"install:krill: the CLI system installer - the egg became a penguin!"
|
|
19
19
|
"kill:kill the eggs/free the nest"
|
|
20
|
-
"mom:ask
|
|
20
|
+
"mom:ask help from mommy - TUI helper"
|
|
21
21
|
"produce:produce a live image from your system whithout your data"
|
|
22
22
|
"status:informations about eggs status"
|
|
23
23
|
"syncfrom:restore users and user data from a LUKS volumes"
|
|
@@ -32,8 +32,8 @@ _eggs () {
|
|
|
32
32
|
"wardrobe\:list:list costumes and accessoires in wardrobe"
|
|
33
33
|
"wardrobe\:show:show costumes/accessories in wardrobe"
|
|
34
34
|
"wardrobe\:wear:wear costume/accessories from wardrobe"
|
|
35
|
-
"help:Display help for <%= config.bin %>."
|
|
36
35
|
"autocomplete:display autocomplete installation instructions"
|
|
36
|
+
"help:Display help for <%= config.bin %>."
|
|
37
37
|
"version:"
|
|
38
38
|
)
|
|
39
39
|
|
|
@@ -41,8 +41,8 @@ _eggs () {
|
|
|
41
41
|
case $_command_id in
|
|
42
42
|
adapt)
|
|
43
43
|
_command_flags=(
|
|
44
|
-
"--
|
|
45
|
-
"--
|
|
44
|
+
"--help[Show CLI help.]"
|
|
45
|
+
"--verbose[]"
|
|
46
46
|
)
|
|
47
47
|
;;
|
|
48
48
|
|
|
@@ -56,19 +56,20 @@ analyze)
|
|
|
56
56
|
calamares)
|
|
57
57
|
_command_flags=(
|
|
58
58
|
"--help[Show CLI help.]"
|
|
59
|
-
"--verbose[]"
|
|
60
59
|
"--install[install calamares and it's dependencies]"
|
|
60
|
+
"--nointeractive[no user interaction]"
|
|
61
61
|
"--release[release: remove calamares and all it's dependencies after the installation]"
|
|
62
62
|
"--remove[remove calamares and it's dependencies]"
|
|
63
63
|
"--theme=-[theme/branding for eggs and calamares]:"
|
|
64
|
+
"--verbose[]"
|
|
64
65
|
)
|
|
65
66
|
;;
|
|
66
67
|
|
|
67
68
|
config)
|
|
68
69
|
_command_flags=(
|
|
69
|
-
"--
|
|
70
|
-
"--clean[remove old configuration before to create new one]"
|
|
70
|
+
"--clean[remove old configuration before to create new one]"
|
|
71
71
|
"--help[Show CLI help.]"
|
|
72
|
+
"--nointeractive[no user interaction]"
|
|
72
73
|
"--verbose[verbose]"
|
|
73
74
|
)
|
|
74
75
|
;;
|
|
@@ -81,45 +82,44 @@ cuckoo)
|
|
|
81
82
|
|
|
82
83
|
dad)
|
|
83
84
|
_command_flags=(
|
|
84
|
-
"--
|
|
85
|
-
"--clean[remove old configuration before to create]"
|
|
85
|
+
"--clean[remove old configuration before to create]"
|
|
86
86
|
"--default[remove old configuration and force default]"
|
|
87
|
+
"--help[Show CLI help.]"
|
|
87
88
|
"--verbose[]"
|
|
88
89
|
)
|
|
89
90
|
;;
|
|
90
91
|
|
|
91
92
|
export:deb)
|
|
92
93
|
_command_flags=(
|
|
93
|
-
"--
|
|
94
|
-
"--all[export all archs]"
|
|
94
|
+
"--all[export all archs]"
|
|
95
95
|
"--clean[remove old .deb before to copy]"
|
|
96
|
+
"--help[Show CLI help.]"
|
|
96
97
|
"--verbose[verbose]"
|
|
97
98
|
)
|
|
98
99
|
;;
|
|
99
100
|
|
|
100
101
|
export:iso)
|
|
101
102
|
_command_flags=(
|
|
102
|
-
"--
|
|
103
|
-
"--
|
|
104
|
-
"--clean[delete old ISOs before to copy]"
|
|
103
|
+
"--clean[delete old ISOs before to copy]"
|
|
104
|
+
"--help[Show CLI help.]"
|
|
105
105
|
"--verbose[verbose]"
|
|
106
106
|
)
|
|
107
107
|
;;
|
|
108
108
|
|
|
109
109
|
install)
|
|
110
110
|
_command_flags=(
|
|
111
|
-
"--
|
|
111
|
+
"--crypted[Crypted CLI installation]"
|
|
112
112
|
"--custom=-[custom unattended configuration]:"
|
|
113
|
-
"--nointeractive[assume yes]"
|
|
114
|
-
"--ip[hostname as ip, eg: ip-192-168-1-33]"
|
|
115
|
-
"--random[Add random to hostname, eg: colibri-ay412dt]"
|
|
116
113
|
"--domain=-[Domain name, defult: .local]:"
|
|
117
|
-
"--
|
|
118
|
-
"--
|
|
114
|
+
"--help[Show CLI help.]"
|
|
115
|
+
"--ip[hostname as ip, eg: ip-192-168-1-33]"
|
|
116
|
+
"--nointeractive[no user interaction]"
|
|
119
117
|
"--none[Swap none: 256M]"
|
|
120
|
-
"--crypted[Crypted CLI installation]"
|
|
121
118
|
"--pve[Proxmox VE install]"
|
|
122
|
-
"--
|
|
119
|
+
"--random[Add random to hostname, eg: colibri-ay412dt]"
|
|
120
|
+
"--small[Swap small: RAM]"
|
|
121
|
+
"--suspend[Swap suspend: RAM x 2]"
|
|
122
|
+
"--unattended[Unattended installation]"
|
|
123
123
|
"--verbose[Verbose]"
|
|
124
124
|
)
|
|
125
125
|
;;
|
|
@@ -127,6 +127,7 @@ install)
|
|
|
127
127
|
kill)
|
|
128
128
|
_command_flags=(
|
|
129
129
|
"--help[Show CLI help.]"
|
|
130
|
+
"--nointeractive[no user interaction]"
|
|
130
131
|
"--verbose[verbose]"
|
|
131
132
|
)
|
|
132
133
|
;;
|
|
@@ -139,27 +140,27 @@ mom)
|
|
|
139
140
|
|
|
140
141
|
produce)
|
|
141
142
|
_command_flags=(
|
|
142
|
-
"--
|
|
143
|
+
"--addons=-[addons to be used: adapt, ichoice, pve, rsupport]:"
|
|
143
144
|
"--basename=-[basename]:"
|
|
144
|
-
"--
|
|
145
|
-
"--
|
|
146
|
-
"--
|
|
145
|
+
"--clone[clone]"
|
|
146
|
+
"--cryptedclone[crypted clone]"
|
|
147
|
+
"--help[Show CLI help.]"
|
|
147
148
|
"--max[max compression]"
|
|
148
|
-
"--
|
|
149
|
-
"--
|
|
149
|
+
"--nointeractive[no user interaction]"
|
|
150
|
+
"--prefix=-[prefix]:"
|
|
151
|
+
"--release[release: max compression, remove penguins-eggs and calamares after installation]"
|
|
150
152
|
"--script[script mode. Generate scripts to manage iso build]"
|
|
151
|
-
"--
|
|
153
|
+
"--standard[standard compression]"
|
|
152
154
|
"--theme=-[theme for livecd, calamares branding and partitions]:"
|
|
153
|
-
"--
|
|
154
|
-
"--
|
|
155
|
-
"--nointeractive[don't ask for user interctions]"
|
|
155
|
+
"--verbose[verbose]"
|
|
156
|
+
"--yolk[-y force yolk renew]"
|
|
156
157
|
)
|
|
157
158
|
;;
|
|
158
159
|
|
|
159
160
|
status)
|
|
160
161
|
_command_flags=(
|
|
161
|
-
"--
|
|
162
|
-
"--
|
|
162
|
+
"--help[Show CLI help.]"
|
|
163
|
+
"--verbose[]"
|
|
163
164
|
)
|
|
164
165
|
;;
|
|
165
166
|
|
|
@@ -167,8 +168,8 @@ syncfrom)
|
|
|
167
168
|
_command_flags=(
|
|
168
169
|
"--delete=-[rsync --delete delete extraneous files from dest dirs]:"
|
|
169
170
|
"--file=-[file LUKS volume encrypted]:"
|
|
170
|
-
"--rootdir=-[rootdir of the installed system, when used from live]:"
|
|
171
171
|
"--help[Show CLI help.]"
|
|
172
|
+
"--rootdir=-[rootdir of the installed system, when used from live]:"
|
|
172
173
|
"--verbose[verbose]"
|
|
173
174
|
)
|
|
174
175
|
;;
|
|
@@ -185,14 +186,16 @@ syncto)
|
|
|
185
186
|
tools:clean)
|
|
186
187
|
_command_flags=(
|
|
187
188
|
"--help[Show CLI help.]"
|
|
189
|
+
"--nointeractive[no user interaction]"
|
|
188
190
|
"--verbose[verbose]"
|
|
189
191
|
)
|
|
190
192
|
;;
|
|
191
193
|
|
|
192
194
|
tools:ppa)
|
|
193
195
|
_command_flags=(
|
|
194
|
-
"--
|
|
195
|
-
"--
|
|
196
|
+
"--add[add penguins-eggs PPA repository]"
|
|
197
|
+
"--help[Show CLI help.]"
|
|
198
|
+
"--nointeractive[no user interaction]"
|
|
196
199
|
"--remove[remove penguins-eggs PPA repository]"
|
|
197
200
|
"--verbose[verbose]"
|
|
198
201
|
)
|
|
@@ -230,47 +233,47 @@ update)
|
|
|
230
233
|
|
|
231
234
|
wardrobe:get)
|
|
232
235
|
_command_flags=(
|
|
233
|
-
"--
|
|
234
|
-
"--
|
|
236
|
+
"--help[Show CLI help.]"
|
|
237
|
+
"--verbose[]"
|
|
235
238
|
)
|
|
236
239
|
;;
|
|
237
240
|
|
|
238
241
|
wardrobe:list)
|
|
239
242
|
_command_flags=(
|
|
240
|
-
"--
|
|
241
|
-
"--
|
|
243
|
+
"--help[Show CLI help.]"
|
|
244
|
+
"--verbose[]"
|
|
242
245
|
)
|
|
243
246
|
;;
|
|
244
247
|
|
|
245
248
|
wardrobe:show)
|
|
246
249
|
_command_flags=(
|
|
247
|
-
"--
|
|
250
|
+
"--help[Show CLI help.]"
|
|
248
251
|
"--json[output JSON]"
|
|
249
252
|
"--verbose[]"
|
|
250
|
-
"--
|
|
253
|
+
"--wardrobe=-[wardrobe]:"
|
|
251
254
|
)
|
|
252
255
|
;;
|
|
253
256
|
|
|
254
257
|
wardrobe:wear)
|
|
255
258
|
_command_flags=(
|
|
256
|
-
"--
|
|
259
|
+
"--help[Show CLI help.]"
|
|
257
260
|
"--no_accessories[not install accessories]"
|
|
258
261
|
"--no_firmwares[not install firmwares]"
|
|
259
262
|
"--silent[]"
|
|
260
263
|
"--verbose[]"
|
|
261
|
-
"--
|
|
264
|
+
"--wardrobe=-[wardrobe]:"
|
|
262
265
|
)
|
|
263
266
|
;;
|
|
264
267
|
|
|
265
|
-
|
|
268
|
+
autocomplete)
|
|
266
269
|
_command_flags=(
|
|
267
|
-
"--
|
|
270
|
+
"--refresh-cache[Refresh cache (ignores displaying instructions)]"
|
|
268
271
|
)
|
|
269
272
|
;;
|
|
270
273
|
|
|
271
|
-
|
|
274
|
+
help)
|
|
272
275
|
_command_flags=(
|
|
273
|
-
"--
|
|
276
|
+
"--nested-commands[Include all nested commands in the output.]"
|
|
274
277
|
)
|
|
275
278
|
;;
|
|
276
279
|
|
package/scripts/eggs.bash
CHANGED
|
@@ -11,33 +11,33 @@ _eggs_autocomplete()
|
|
|
11
11
|
COMPREPLY=()
|
|
12
12
|
|
|
13
13
|
local commands="
|
|
14
|
-
adapt --
|
|
14
|
+
adapt --help --verbose
|
|
15
15
|
analyze --help --verbose
|
|
16
|
-
calamares --help --
|
|
17
|
-
config --
|
|
16
|
+
calamares --help --install --nointeractive --release --remove --theme --verbose
|
|
17
|
+
config --clean --help --nointeractive --verbose
|
|
18
18
|
cuckoo --help
|
|
19
|
-
dad --
|
|
20
|
-
export:deb --
|
|
21
|
-
export:iso --
|
|
22
|
-
install --
|
|
23
|
-
kill --help --verbose
|
|
19
|
+
dad --clean --default --help --verbose
|
|
20
|
+
export:deb --all --clean --help --verbose
|
|
21
|
+
export:iso --clean --help --verbose
|
|
22
|
+
install --crypted --custom --domain --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
|
|
23
|
+
kill --help --nointeractive --verbose
|
|
24
24
|
mom --help
|
|
25
|
-
produce --
|
|
26
|
-
status --
|
|
27
|
-
syncfrom --delete --file --
|
|
25
|
+
produce --addons --basename --clone --cryptedclone --help --max --nointeractive --prefix --release --script --standard --theme --verbose --yolk
|
|
26
|
+
status --help --verbose
|
|
27
|
+
syncfrom --delete --file --help --rootdir --verbose
|
|
28
28
|
syncto --delete --file --help --verbose
|
|
29
|
-
tools:clean --help --verbose
|
|
30
|
-
tools:ppa --help --
|
|
29
|
+
tools:clean --help --nointeractive --verbose
|
|
30
|
+
tools:ppa --add --help --nointeractive --remove --verbose
|
|
31
31
|
tools:skel --help --user --verbose
|
|
32
32
|
tools:stat --help --month --year
|
|
33
33
|
tools:yolk --help --verbose
|
|
34
34
|
update --help --verbose
|
|
35
|
-
wardrobe:get --
|
|
36
|
-
wardrobe:list --
|
|
37
|
-
wardrobe:show --
|
|
38
|
-
wardrobe:wear --
|
|
39
|
-
help --nested-commands
|
|
35
|
+
wardrobe:get --help --verbose
|
|
36
|
+
wardrobe:list --help --verbose
|
|
37
|
+
wardrobe:show --help --json --verbose --wardrobe
|
|
38
|
+
wardrobe:wear --help --no_accessories --no_firmwares --silent --verbose --wardrobe
|
|
40
39
|
autocomplete --refresh-cache
|
|
40
|
+
help --nested-commands
|
|
41
41
|
version --json --verbose
|
|
42
42
|
"
|
|
43
43
|
|
package/scripts/mom.sh
CHANGED
|
@@ -4,18 +4,17 @@ function main() {
|
|
|
4
4
|
|
|
5
5
|
# root
|
|
6
6
|
root=$(cat /usr/lib/penguins-eggs/.oclif.manifest.json | jq .)
|
|
7
|
-
|
|
8
|
-
result
|
|
7
|
+
COMMANDS=$(echo ${root} | jq ".commands[].id")
|
|
8
|
+
result=("DOCUMENTATION" ${COMMANDS} "QUIT")
|
|
9
9
|
|
|
10
10
|
while true; do
|
|
11
11
|
clear
|
|
12
|
-
# NOTE [@]
|
|
13
12
|
menu ${result[@]}
|
|
14
13
|
answer=$(0< "${dir_tmp}/${file_tmp}" )
|
|
15
14
|
case "$answer" in
|
|
16
|
-
|
|
15
|
+
QUIT)
|
|
17
16
|
exit ;;
|
|
18
|
-
|
|
17
|
+
DOCUMENTATION)
|
|
19
18
|
documentation ;;
|
|
20
19
|
*)
|
|
21
20
|
eggs $answer --help
|
|
@@ -31,7 +30,7 @@ function main() {
|
|
|
31
30
|
function documentation() {
|
|
32
31
|
while true; do
|
|
33
32
|
|
|
34
|
-
menu "book" "manual" "man" "repository" "sourceforge" "
|
|
33
|
+
menu "book" "manual" "man" "repository" "sourceforge" "QUIT"
|
|
35
34
|
choose=$(0< "${dir_tmp}/${file_tmp}" )
|
|
36
35
|
|
|
37
36
|
case "$choose" in
|
|
@@ -45,7 +44,7 @@ function documentation() {
|
|
|
45
44
|
documentation_repository ;;
|
|
46
45
|
sourceforge)
|
|
47
46
|
documentation_sourceforge ;;
|
|
48
|
-
|
|
47
|
+
QUIT)
|
|
49
48
|
break ;;
|
|
50
49
|
esac
|
|
51
50
|
done
|