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.
@@ -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
@@ -0,0 +1,2 @@
1
+ live ALL=(ALL) NOPASSWD: /usr/bin/eui-start.sh
2
+ artisan ALL=(ALL) NOPASSWD: /usr/bin/eui-start.sh
@@ -0,0 +1,10 @@
1
+ [Desktop Entry]
2
+ Type=Application
3
+ Name=Eggs unattended install
4
+ Exec=sudo /usr/bin/eui-start.sh
5
+ StartupNotify=false
6
+ NoDisplay=true
7
+ Terminal=true
8
+ X-GNOME-Autostart-Phase=Initialization
9
+ X-KDE-autostart-phase=1
10
+ X-KDE-AutostartScript=true
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.24",
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:command-line system installer - the egg became a penguin!"
18
+ "install:krill: the CLI system installer - the egg became a penguin!"
19
19
  "kill:kill the eggs/free the nest"
20
- "mom:ask for mommy - gui helper"
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
- "--verbose[]"
45
- "--help[Show CLI help.]"
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
- "--nointeractive[assume yes]"
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
- "--help[Show CLI help.]"
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
- "--help[Show CLI help.]"
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
- "--help[Show CLI help.]"
103
- "--backup[export backup ISOs]"
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
- "--unattended[Unattended installation]"
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
- "--suspend[Swap suspend: RAM x 2]"
118
- "--small[Swap small: RAM]"
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
- "--help[Show CLI help.]"
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
- "--prefix=-[prefix]:"
143
+ "--addons=-[addons to be used: adapt, ichoice, pve, rsupport]:"
143
144
  "--basename=-[basename]:"
144
- "--backup[backup mode (CRYPTED)]"
145
- "--clone[clone mode]"
146
- "--fast[fast compression]"
145
+ "--clone[clone]"
146
+ "--cryptedclone[crypted clone]"
147
+ "--help[Show CLI help.]"
147
148
  "--max[max compression]"
148
- "--verbose[verbose]"
149
- "--yolk[-y force yolk renew]"
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
- "--help[Show CLI help.]"
153
+ "--standard[standard compression]"
152
154
  "--theme=-[theme for livecd, calamares branding and partitions]:"
153
- "--addons=-[addons to be used: adapt, ichoice, pve, rsupport]:"
154
- "--release[release: max compression, remove penguins-eggs and calamares after installation]"
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
- "--verbose[]"
162
- "--help[Show CLI help.]"
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
- "--help[Show CLI help.]"
195
- "--add[add penguins-eggs PPA repository]"
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
- "--verbose[]"
234
- "--help[Show CLI help.]"
236
+ "--help[Show CLI help.]"
237
+ "--verbose[]"
235
238
  )
236
239
  ;;
237
240
 
238
241
  wardrobe:list)
239
242
  _command_flags=(
240
- "--verbose[]"
241
- "--help[Show CLI help.]"
243
+ "--help[Show CLI help.]"
244
+ "--verbose[]"
242
245
  )
243
246
  ;;
244
247
 
245
248
  wardrobe:show)
246
249
  _command_flags=(
247
- "--wardrobe=-[wardrobe]:"
250
+ "--help[Show CLI help.]"
248
251
  "--json[output JSON]"
249
252
  "--verbose[]"
250
- "--help[Show CLI help.]"
253
+ "--wardrobe=-[wardrobe]:"
251
254
  )
252
255
  ;;
253
256
 
254
257
  wardrobe:wear)
255
258
  _command_flags=(
256
- "--wardrobe=-[wardrobe]:"
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
- "--help[Show CLI help.]"
264
+ "--wardrobe=-[wardrobe]:"
262
265
  )
263
266
  ;;
264
267
 
265
- help)
268
+ autocomplete)
266
269
  _command_flags=(
267
- "--nested-commands[Include all nested commands in the output.]"
270
+ "--refresh-cache[Refresh cache (ignores displaying instructions)]"
268
271
  )
269
272
  ;;
270
273
 
271
- autocomplete)
274
+ help)
272
275
  _command_flags=(
273
- "--refresh-cache[Refresh cache (ignores displaying instructions)]"
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 --verbose --help
14
+ adapt --help --verbose
15
15
  analyze --help --verbose
16
- calamares --help --verbose --install --release --remove --theme
17
- config --nointeractive --clean --help --verbose
16
+ calamares --help --install --nointeractive --release --remove --theme --verbose
17
+ config --clean --help --nointeractive --verbose
18
18
  cuckoo --help
19
- dad --help --clean --default --verbose
20
- export:deb --help --all --clean --verbose
21
- export:iso --help --backup --clean --verbose
22
- install --unattended --custom --nointeractive --ip --random --domain --suspend --small --none --crypted --pve --help --verbose
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 --prefix --basename --backup --clone --fast --max --verbose --yolk --script --help --theme --addons --release --nointeractive
26
- status --verbose --help
27
- syncfrom --delete --file --rootdir --help --verbose
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 --add --remove --verbose
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 --verbose --help
36
- wardrobe:list --verbose --help
37
- wardrobe:show --wardrobe --json --verbose --help
38
- wardrobe:wear --wardrobe --no_accessories --no_firmwares --silent --verbose --help
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
- result=$(echo ${root} | jq ".commands[].id")
8
- result+=("documentation" "quit")
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
- quit)
15
+ QUIT)
17
16
  exit ;;
18
- documentation)
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" "quit"
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
- quit)
47
+ QUIT)
49
48
  break ;;
50
49
  esac
51
50
  done