penguins-eggs 10.0.30 → 10.0.31
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 +26 -26
- package/dist/commands/install.js +0 -4
- package/dist/components/finished.d.ts +2 -1
- package/dist/components/finished.js +4 -4
- package/dist/components/install.js +2 -2
- package/dist/components/keyboard.js +2 -2
- package/dist/components/location.js +2 -2
- package/dist/components/network.js +2 -2
- package/dist/components/partitions.js +8 -8
- package/dist/components/summary.js +3 -4
- package/dist/components/users.js +2 -2
- package/dist/components/welcome.js +2 -2
- package/dist/krill/modules/locale.js +74 -31
- package/dist/krill/modules/m-keyboard.js +47 -56
- package/dist/krill/modules/machine-id.js +3 -3
- package/dist/krill/prepare.d.ts +1 -1
- package/dist/krill/prepare.js +8 -10
- package/dist/krill/sequence.d.ts +0 -2
- package/dist/krill/sequence.js +21 -23
- package/dist/lib/select_filesystem_type.js +4 -3
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +4 -604
- package/package.json +1 -1
- package/dist/krill/modules/m-timezone.d.ts +0 -14
- package/dist/krill/modules/m-timezone.js +0 -22
package/.oclif.manifest.json
CHANGED
package/README.md
CHANGED
|
@@ -491,7 +491,7 @@ EXAMPLES
|
|
|
491
491
|
$ eggs adapt
|
|
492
492
|
```
|
|
493
493
|
|
|
494
|
-
_See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
494
|
+
_See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/adapt.ts)_
|
|
495
495
|
|
|
496
496
|
## `eggs analyze`
|
|
497
497
|
|
|
@@ -512,7 +512,7 @@ EXAMPLES
|
|
|
512
512
|
sudo eggs analyze
|
|
513
513
|
```
|
|
514
514
|
|
|
515
|
-
_See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
515
|
+
_See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/analyze.ts)_
|
|
516
516
|
|
|
517
517
|
## `eggs autocomplete [SHELL]`
|
|
518
518
|
|
|
@@ -576,7 +576,7 @@ EXAMPLES
|
|
|
576
576
|
sudo eggs calamares --remove
|
|
577
577
|
```
|
|
578
578
|
|
|
579
|
-
_See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
579
|
+
_See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/calamares.ts)_
|
|
580
580
|
|
|
581
581
|
## `eggs config`
|
|
582
582
|
|
|
@@ -603,7 +603,7 @@ EXAMPLES
|
|
|
603
603
|
sudo eggs config --clean --nointeractive
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
_See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
606
|
+
_See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/config.ts)_
|
|
607
607
|
|
|
608
608
|
## `eggs cuckoo`
|
|
609
609
|
|
|
@@ -623,7 +623,7 @@ EXAMPLES
|
|
|
623
623
|
sudo eggs cuckoo
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
-
_See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
626
|
+
_See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/cuckoo.ts)_
|
|
627
627
|
|
|
628
628
|
## `eggs dad`
|
|
629
629
|
|
|
@@ -651,7 +651,7 @@ EXAMPLES
|
|
|
651
651
|
sudo dad --default
|
|
652
652
|
```
|
|
653
653
|
|
|
654
|
-
_See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
654
|
+
_See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/dad.ts)_
|
|
655
655
|
|
|
656
656
|
## `eggs export deb`
|
|
657
657
|
|
|
@@ -678,7 +678,7 @@ EXAMPLES
|
|
|
678
678
|
$ eggs export deb --all
|
|
679
679
|
```
|
|
680
680
|
|
|
681
|
-
_See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
681
|
+
_See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/export/deb.ts)_
|
|
682
682
|
|
|
683
683
|
## `eggs export iso`
|
|
684
684
|
|
|
@@ -703,7 +703,7 @@ EXAMPLES
|
|
|
703
703
|
$ eggs export iso --clean
|
|
704
704
|
```
|
|
705
705
|
|
|
706
|
-
_See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
706
|
+
_See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/export/iso.ts)_
|
|
707
707
|
|
|
708
708
|
## `eggs help [COMMAND]`
|
|
709
709
|
|
|
@@ -764,7 +764,7 @@ EXAMPLES
|
|
|
764
764
|
sudo eggs install --chroot
|
|
765
765
|
```
|
|
766
766
|
|
|
767
|
-
_See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
767
|
+
_See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/install.ts)_
|
|
768
768
|
|
|
769
769
|
## `eggs kill`
|
|
770
770
|
|
|
@@ -787,7 +787,7 @@ EXAMPLES
|
|
|
787
787
|
sudo eggs kill
|
|
788
788
|
```
|
|
789
789
|
|
|
790
|
-
_See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
790
|
+
_See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/kill.ts)_
|
|
791
791
|
|
|
792
792
|
## `eggs krill`
|
|
793
793
|
|
|
@@ -847,7 +847,7 @@ EXAMPLES
|
|
|
847
847
|
$ eggs auto
|
|
848
848
|
```
|
|
849
849
|
|
|
850
|
-
_See code: [src/commands/love.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
850
|
+
_See code: [src/commands/love.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/love.ts)_
|
|
851
851
|
|
|
852
852
|
## `eggs mom`
|
|
853
853
|
|
|
@@ -867,7 +867,7 @@ EXAMPLES
|
|
|
867
867
|
$ eggs mom
|
|
868
868
|
```
|
|
869
869
|
|
|
870
|
-
_See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
870
|
+
_See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/mom.ts)_
|
|
871
871
|
|
|
872
872
|
## `eggs produce`
|
|
873
873
|
|
|
@@ -924,7 +924,7 @@ EXAMPLES
|
|
|
924
924
|
sudo eggs produce --excludes home # exclude ~/*
|
|
925
925
|
```
|
|
926
926
|
|
|
927
|
-
_See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
927
|
+
_See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/produce.ts)_
|
|
928
928
|
|
|
929
929
|
## `eggs status`
|
|
930
930
|
|
|
@@ -945,7 +945,7 @@ EXAMPLES
|
|
|
945
945
|
$ eggs status
|
|
946
946
|
```
|
|
947
947
|
|
|
948
|
-
_See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
948
|
+
_See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/status.ts)_
|
|
949
949
|
|
|
950
950
|
## `eggs syncfrom`
|
|
951
951
|
|
|
@@ -971,7 +971,7 @@ EXAMPLES
|
|
|
971
971
|
sudo eggs syncfrom --file /path/to/luks-volume
|
|
972
972
|
```
|
|
973
973
|
|
|
974
|
-
_See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
974
|
+
_See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/syncfrom.ts)_
|
|
975
975
|
|
|
976
976
|
## `eggs syncto`
|
|
977
977
|
|
|
@@ -998,7 +998,7 @@ EXAMPLES
|
|
|
998
998
|
sudo eggs syncto --excludes
|
|
999
999
|
```
|
|
1000
1000
|
|
|
1001
|
-
_See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1001
|
+
_See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/syncto.ts)_
|
|
1002
1002
|
|
|
1003
1003
|
## `eggs tools clean`
|
|
1004
1004
|
|
|
@@ -1020,7 +1020,7 @@ EXAMPLES
|
|
|
1020
1020
|
sudo eggs tools clean
|
|
1021
1021
|
```
|
|
1022
1022
|
|
|
1023
|
-
_See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1023
|
+
_See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/tools/clean.ts)_
|
|
1024
1024
|
|
|
1025
1025
|
## `eggs tools ppa`
|
|
1026
1026
|
|
|
@@ -1046,7 +1046,7 @@ EXAMPLES
|
|
|
1046
1046
|
sudo eggs tools ppa --remove
|
|
1047
1047
|
```
|
|
1048
1048
|
|
|
1049
|
-
_See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1049
|
+
_See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/tools/ppa.ts)_
|
|
1050
1050
|
|
|
1051
1051
|
## `eggs tools skel`
|
|
1052
1052
|
|
|
@@ -1070,7 +1070,7 @@ EXAMPLES
|
|
|
1070
1070
|
sudo eggs tools skel --user user-to-be-copied
|
|
1071
1071
|
```
|
|
1072
1072
|
|
|
1073
|
-
_See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1073
|
+
_See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/tools/skel.ts)_
|
|
1074
1074
|
|
|
1075
1075
|
## `eggs tools stat`
|
|
1076
1076
|
|
|
@@ -1096,7 +1096,7 @@ EXAMPLES
|
|
|
1096
1096
|
$ eggs tools stat --year
|
|
1097
1097
|
```
|
|
1098
1098
|
|
|
1099
|
-
_See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1099
|
+
_See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/tools/stat.ts)_
|
|
1100
1100
|
|
|
1101
1101
|
## `eggs tools yolk`
|
|
1102
1102
|
|
|
@@ -1117,7 +1117,7 @@ EXAMPLES
|
|
|
1117
1117
|
sudo eggs tools yolk
|
|
1118
1118
|
```
|
|
1119
1119
|
|
|
1120
|
-
_See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1120
|
+
_See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/tools/yolk.ts)_
|
|
1121
1121
|
|
|
1122
1122
|
## `eggs update`
|
|
1123
1123
|
|
|
@@ -1138,7 +1138,7 @@ EXAMPLES
|
|
|
1138
1138
|
$ eggs update
|
|
1139
1139
|
```
|
|
1140
1140
|
|
|
1141
|
-
_See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1141
|
+
_See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/update.ts)_
|
|
1142
1142
|
|
|
1143
1143
|
## `eggs version`
|
|
1144
1144
|
|
|
@@ -1184,7 +1184,7 @@ EXAMPLES
|
|
|
1184
1184
|
$ eggs wardrobe get your-wardrobe
|
|
1185
1185
|
```
|
|
1186
1186
|
|
|
1187
|
-
_See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1187
|
+
_See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/wardrobe/get.ts)_
|
|
1188
1188
|
|
|
1189
1189
|
## `eggs wardrobe list [REPO]`
|
|
1190
1190
|
|
|
@@ -1213,7 +1213,7 @@ EXAMPLES
|
|
|
1213
1213
|
$ eggs wardrobe list --distro arch
|
|
1214
1214
|
```
|
|
1215
1215
|
|
|
1216
|
-
_See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1216
|
+
_See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/wardrobe/list.ts)_
|
|
1217
1217
|
|
|
1218
1218
|
## `eggs wardrobe show [REPO]`
|
|
1219
1219
|
|
|
@@ -1243,7 +1243,7 @@ EXAMPLES
|
|
|
1243
1243
|
$ eggs wardrobe show accessories/
|
|
1244
1244
|
```
|
|
1245
1245
|
|
|
1246
|
-
_See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1246
|
+
_See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/wardrobe/show.ts)_
|
|
1247
1247
|
|
|
1248
1248
|
## `eggs wardrobe wear [REPO]`
|
|
1249
1249
|
|
|
@@ -1274,7 +1274,7 @@ EXAMPLES
|
|
|
1274
1274
|
sudo eggs wardrobe wear wagtail/waydroid
|
|
1275
1275
|
```
|
|
1276
1276
|
|
|
1277
|
-
_See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.
|
|
1277
|
+
_See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.31/src/commands/wardrobe/wear.ts)_
|
|
1278
1278
|
<!-- commandsstop -->
|
|
1279
1279
|
|
|
1280
1280
|
# penGUI
|
package/dist/commands/install.js
CHANGED
|
@@ -44,11 +44,7 @@ export default class Install extends Command {
|
|
|
44
44
|
async run() {
|
|
45
45
|
Utils.titles(this.id + ' ' + this.argv);
|
|
46
46
|
const { flags } = await this.parse(Install);
|
|
47
|
-
let custom = flags.custom;
|
|
48
47
|
const { unattended } = flags;
|
|
49
|
-
if (unattended) {
|
|
50
|
-
custom = 'us';
|
|
51
|
-
}
|
|
52
48
|
// krillConfig
|
|
53
49
|
let krillConfig = {};
|
|
54
50
|
const content = fs.readFileSync('/etc/penguins-eggs.d/krill.yaml', 'utf8');
|
|
@@ -10,6 +10,7 @@ type FinishedProps = {
|
|
|
10
10
|
installationDevice?: string;
|
|
11
11
|
hostName?: string;
|
|
12
12
|
userName?: string;
|
|
13
|
+
message?: string;
|
|
13
14
|
};
|
|
14
|
-
export default function Finished({ installationDevice, hostName, userName }: FinishedProps): React.JSX.Element;
|
|
15
|
+
export default function Finished({ installationDevice, hostName, userName, message }: FinishedProps): React.JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -11,7 +11,7 @@ import Title from './title.js';
|
|
|
11
11
|
import Steps from './steps.js';
|
|
12
12
|
import yaml from 'js-yaml';
|
|
13
13
|
import fs from 'fs';
|
|
14
|
-
export default function Finished({ installationDevice = '', hostName = '', userName = '' }) {
|
|
14
|
+
export default function Finished({ installationDevice = '', hostName = '', userName = '', message = 'Press a key to reboot' }) {
|
|
15
15
|
let productName = 'unknown';
|
|
16
16
|
let version = 'x.x.x';
|
|
17
17
|
let configRoot = '/etc/penguins-eggs.d/krill/'; // krill
|
|
@@ -24,7 +24,7 @@ export default function Finished({ installationDevice = '', hostName = '', userN
|
|
|
24
24
|
productName = calamares.strings.productName;
|
|
25
25
|
version = calamares.strings.version;
|
|
26
26
|
/**
|
|
27
|
-
* totale width=
|
|
27
|
+
* totale width=75
|
|
28
28
|
* step width=15
|
|
29
29
|
* finestra with=59
|
|
30
30
|
*/
|
|
@@ -32,7 +32,7 @@ export default function Finished({ installationDevice = '', hostName = '', userN
|
|
|
32
32
|
const [submission, setSubmission] = React.useState();
|
|
33
33
|
return (React.createElement(React.Fragment, null,
|
|
34
34
|
React.createElement(Title, null),
|
|
35
|
-
React.createElement(Box, { width:
|
|
35
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
36
36
|
React.createElement(Box, { flexDirection: "column" },
|
|
37
37
|
React.createElement(Box, { flexDirection: "row" },
|
|
38
38
|
React.createElement(Steps, { step: 9 }),
|
|
@@ -51,5 +51,5 @@ export default function Finished({ installationDevice = '', hostName = '', userN
|
|
|
51
51
|
React.createElement(Text, { color: "green" }, userName)),
|
|
52
52
|
React.createElement(Newline, null),
|
|
53
53
|
React.createElement(Box, null,
|
|
54
|
-
React.createElement(Text,
|
|
54
|
+
React.createElement(Text, { backgroundColor: "green", color: "black" }, message))))))));
|
|
55
55
|
}
|
|
@@ -30,13 +30,13 @@ export default function Install({ message = "Install", percent = 0, spinner = fa
|
|
|
30
30
|
let clean = "·".repeat(todo);
|
|
31
31
|
let progressBar = "[" + "█".repeat(progress) + clean + "] " + perc + "%";
|
|
32
32
|
/**
|
|
33
|
-
* totale width=
|
|
33
|
+
* totale width=75
|
|
34
34
|
* step width=15
|
|
35
35
|
* finestra with=59
|
|
36
36
|
*/
|
|
37
37
|
return (React.createElement(React.Fragment, null,
|
|
38
38
|
React.createElement(Title, null),
|
|
39
|
-
React.createElement(Box, { width:
|
|
39
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
40
40
|
React.createElement(Box, { flexDirection: "column" },
|
|
41
41
|
React.createElement(Box, { flexDirection: "row" },
|
|
42
42
|
React.createElement(Steps, { step: 8 }),
|
|
@@ -28,13 +28,13 @@ export default function Keyboard({ keyboardModel = '', keyboardLayout = '', keyb
|
|
|
28
28
|
productName = calamares.strings.productName;
|
|
29
29
|
version = calamares.strings.version;
|
|
30
30
|
/**
|
|
31
|
-
* totale width=
|
|
31
|
+
* totale width=75
|
|
32
32
|
* step width=15
|
|
33
33
|
* finestra with=59
|
|
34
34
|
*/
|
|
35
35
|
return (React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(Title, null),
|
|
37
|
-
React.createElement(Box, { width:
|
|
37
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
38
38
|
React.createElement(Box, { flexDirection: "column" },
|
|
39
39
|
React.createElement(Box, { flexDirection: "row" },
|
|
40
40
|
React.createElement(Steps, { step: 3 }),
|
|
@@ -28,13 +28,13 @@ export default function Location({ region = '', zone = '', language = '', dateNu
|
|
|
28
28
|
productName = calamares.strings.productName;
|
|
29
29
|
version = calamares.strings.version;
|
|
30
30
|
/**
|
|
31
|
-
* totale width=
|
|
31
|
+
* totale width=75
|
|
32
32
|
* step width=15
|
|
33
33
|
* finestra with=59
|
|
34
34
|
*/
|
|
35
35
|
return (React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(Title, null),
|
|
37
|
-
React.createElement(Box, { width:
|
|
37
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
38
38
|
React.createElement(Box, { flexDirection: "column" },
|
|
39
39
|
React.createElement(Box, { flexDirection: "row" },
|
|
40
40
|
React.createElement(Steps, { step: 2 }),
|
|
@@ -28,7 +28,7 @@ export default function Network({ iface, addressType, address, netmask, gateway,
|
|
|
28
28
|
productName = calamares.strings.productName;
|
|
29
29
|
version = calamares.strings.version;
|
|
30
30
|
/**
|
|
31
|
-
* totale width=
|
|
31
|
+
* totale width=75
|
|
32
32
|
* step width=15
|
|
33
33
|
* finestra with=59
|
|
34
34
|
*/
|
|
@@ -36,7 +36,7 @@ export default function Network({ iface, addressType, address, netmask, gateway,
|
|
|
36
36
|
const [submission, setSubmission] = React.useState();
|
|
37
37
|
return (React.createElement(React.Fragment, null,
|
|
38
38
|
React.createElement(Title, null),
|
|
39
|
-
React.createElement(Box, { width:
|
|
39
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
40
40
|
React.createElement(Box, { width: 74, height: 8, flexDirection: "column" },
|
|
41
41
|
React.createElement(Box, { flexDirection: "row" },
|
|
42
42
|
React.createElement(Steps, { step: 6 }),
|
|
@@ -25,7 +25,7 @@ export default function Partitions({ installationDevice, installationMode, files
|
|
|
25
25
|
productName = calamares.strings.productName;
|
|
26
26
|
version = calamares.strings.version;
|
|
27
27
|
/**
|
|
28
|
-
* totale width=
|
|
28
|
+
* totale width=75
|
|
29
29
|
* step width=15
|
|
30
30
|
* finestra with=59
|
|
31
31
|
*/
|
|
@@ -42,19 +42,19 @@ export default function Partitions({ installationDevice, installationMode, files
|
|
|
42
42
|
}
|
|
43
43
|
return (React.createElement(React.Fragment, null,
|
|
44
44
|
React.createElement(Title, null),
|
|
45
|
-
React.createElement(Box, { width:
|
|
45
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
46
46
|
React.createElement(Box, { flexDirection: "column" },
|
|
47
47
|
React.createElement(Box, { flexDirection: "row" },
|
|
48
48
|
React.createElement(Steps, { step: 4 }),
|
|
49
49
|
React.createElement(Box, { flexDirection: "column" }),
|
|
50
50
|
React.createElement(Box, { flexDirection: "column" },
|
|
51
51
|
React.createElement(Box, { flexDirection: "row" },
|
|
52
|
-
React.createElement(Text, { underline:
|
|
53
|
-
React.createElement(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
React.createElement(Text, { underline: false }, "Note: "),
|
|
53
|
+
React.createElement(Box, { flexDirection: "column" },
|
|
54
|
+
React.createElement(Text, { backgroundColor: "red", color: "white" }, "this will erase all data currently present on the"),
|
|
55
|
+
React.createElement(Text, { backgroundColor: "red", color: "white" },
|
|
56
|
+
"installation device: ",
|
|
57
|
+
installationDevice))),
|
|
58
58
|
React.createElement(Box, null,
|
|
59
59
|
React.createElement(Text, null, "BIOS: "),
|
|
60
60
|
React.createElement(Text, { color: "cyan" }, bios)),
|
|
@@ -10,7 +10,7 @@ import Title from './title.js';
|
|
|
10
10
|
import Steps from './steps.js';
|
|
11
11
|
import yaml from 'js-yaml';
|
|
12
12
|
import fs from 'fs';
|
|
13
|
-
import { Text, Box
|
|
13
|
+
import { Text, Box } from 'ink';
|
|
14
14
|
export default function Summary({ username = '', password = '', rootPassword = '', hostname = '', region = '', zone = '', language = '', keyboardModel = '', keyboardLayout = '', installationDevice = '', filesystemType, message = '' }) {
|
|
15
15
|
let productName = 'unknown';
|
|
16
16
|
let version = 'x.x.x';
|
|
@@ -24,13 +24,13 @@ export default function Summary({ username = '', password = '', rootPassword = '
|
|
|
24
24
|
productName = calamares.strings.productName;
|
|
25
25
|
version = calamares.strings.version;
|
|
26
26
|
/**
|
|
27
|
-
* totale width=
|
|
27
|
+
* totale width=75
|
|
28
28
|
* step width=15
|
|
29
29
|
* finestra with=59
|
|
30
30
|
*/
|
|
31
31
|
return (React.createElement(React.Fragment, null,
|
|
32
32
|
React.createElement(Title, null),
|
|
33
|
-
React.createElement(Box, { width:
|
|
33
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
34
34
|
React.createElement(Box, { flexDirection: "column" },
|
|
35
35
|
React.createElement(Box, { flexDirection: "row" },
|
|
36
36
|
React.createElement(Steps, { step: 7 }),
|
|
@@ -38,7 +38,6 @@ export default function Summary({ username = '', password = '', rootPassword = '
|
|
|
38
38
|
React.createElement(Box, null,
|
|
39
39
|
React.createElement(Text, null, "Installing "),
|
|
40
40
|
React.createElement(Text, { color: "green" }, productName)),
|
|
41
|
-
React.createElement(Newline, null),
|
|
42
41
|
React.createElement(Box, null,
|
|
43
42
|
React.createElement(Text, null),
|
|
44
43
|
React.createElement(Text, { color: "green" }, username),
|
package/dist/components/users.js
CHANGED
|
@@ -38,7 +38,7 @@ export default function Users({ username, fullname, password, rootPassword, host
|
|
|
38
38
|
productName = calamares.strings.productName;
|
|
39
39
|
version = calamares.strings.version;
|
|
40
40
|
/**
|
|
41
|
-
* totale width=
|
|
41
|
+
* totale width=75
|
|
42
42
|
* step width=15
|
|
43
43
|
* finestra with=59
|
|
44
44
|
*/
|
|
@@ -53,7 +53,7 @@ export default function Users({ username, fullname, password, rootPassword, host
|
|
|
53
53
|
const forceUpdate = useForceUpdate();
|
|
54
54
|
return (React.createElement(React.Fragment, null,
|
|
55
55
|
React.createElement(Title, null),
|
|
56
|
-
React.createElement(Box, { width:
|
|
56
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
57
57
|
React.createElement(Box, { flexDirection: "column" },
|
|
58
58
|
React.createElement(Box, { flexDirection: "row" },
|
|
59
59
|
React.createElement(Steps, { step: 5 }),
|
|
@@ -28,13 +28,13 @@ export default function Welcome({ language = '' }) {
|
|
|
28
28
|
productName = calamares.strings.productName;
|
|
29
29
|
version = calamares.strings.version;
|
|
30
30
|
/**
|
|
31
|
-
* totale width=
|
|
31
|
+
* totale width=75
|
|
32
32
|
* step width=15
|
|
33
33
|
* finestra with=59
|
|
34
34
|
*/
|
|
35
35
|
return (React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(Title, null),
|
|
37
|
-
React.createElement(Box, { width:
|
|
37
|
+
React.createElement(Box, { width: 75, height: 11, borderStyle: "round", flexDirection: "column" },
|
|
38
38
|
React.createElement(Box, { flexDirection: "column" },
|
|
39
39
|
React.createElement(Box, { flexDirection: "row" },
|
|
40
40
|
React.createElement(Steps, { step: 1 }),
|
|
@@ -6,43 +6,86 @@
|
|
|
6
6
|
* license: MIT
|
|
7
7
|
* https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
|
|
8
8
|
*/
|
|
9
|
+
import fs from 'node:fs';
|
|
9
10
|
import Utils from '../../classes/utils.js';
|
|
11
|
+
import { exec } from '../../lib/utils.js';
|
|
10
12
|
/**
|
|
11
13
|
* locale
|
|
12
14
|
*/
|
|
13
15
|
export default async function locale() {
|
|
14
|
-
/**
|
|
15
|
-
* influcence: - /etc/default/locale
|
|
16
|
-
* - /etc/locale.conf
|
|
17
|
-
* - /etc/timezone
|
|
18
|
-
*/
|
|
19
16
|
const defaultLocale = this.language;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
17
|
+
if (this.distro.familyId === 'archlinux' || this.distro.familyId === 'debian') {
|
|
18
|
+
/**
|
|
19
|
+
* influcence: - /etc/default/locale
|
|
20
|
+
* - /etc/locale.conf
|
|
21
|
+
* - /etc/timezone
|
|
22
|
+
*/
|
|
23
|
+
let file = this.installTarget + '/etc/default/locale';
|
|
24
|
+
let content = '';
|
|
25
|
+
content += `LANG=${defaultLocale}\n`;
|
|
26
|
+
content += `LC_CTYPE=${defaultLocale}\n`;
|
|
27
|
+
content += `LC_NUMERIC=${defaultLocale}\n`;
|
|
28
|
+
content += `LC_TIME=${defaultLocale}\n`;
|
|
29
|
+
content += `LC_COLLATE=${defaultLocale}\n`;
|
|
30
|
+
content += `LC_MONETARY=${defaultLocale}\n`;
|
|
31
|
+
content += `LC_MESSAGES=${defaultLocale}\n`;
|
|
32
|
+
content += `LC_PAPER=${defaultLocale}\n`;
|
|
33
|
+
content += `LC_NAME=${defaultLocale}\n`;
|
|
34
|
+
content += `LC_ADDRESS=${defaultLocale}\n`;
|
|
35
|
+
content += `LC_TELEPHONE=${defaultLocale}\n`;
|
|
36
|
+
content += `LC_MEASUREMENT=${defaultLocale}\n`;
|
|
37
|
+
content += `LC_IDENTIFICATION=${defaultLocale}\n`;
|
|
38
|
+
content += `LC_ALL=${defaultLocale}\n`;
|
|
39
|
+
Utils.write(file, content);
|
|
40
|
+
// /etc/locale.conf
|
|
41
|
+
file = this.installTarget + '/etc/locale.conf';
|
|
42
|
+
Utils.write(file, content);
|
|
43
|
+
// timezone Arch Debian
|
|
44
|
+
if (fs.existsSync('/etc/localtime')) {
|
|
45
|
+
const cmd = `chroot ${this.installTarget} unlink /etc/localtime`;
|
|
46
|
+
await exec(cmd, this.echo);
|
|
47
|
+
}
|
|
48
|
+
const cmd = `chroot ${this.installTarget} ln -sf /usr/share/zoneinfo/${this.region}/${this.zone} /etc/localtime`;
|
|
49
|
+
await exec(cmd, this.echo);
|
|
44
50
|
}
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
else if (this.distro.familyId === 'alpine') {
|
|
52
|
+
// locale Alpine
|
|
53
|
+
let file = this.installTarget + "/etc/profile.d/00locale.sh";
|
|
54
|
+
let content = "";
|
|
55
|
+
content += `#!/bin/sh\n`;
|
|
56
|
+
content += `export MUSL_LOCPATH="/usr/share/i18n/locales/musl"\n`;
|
|
57
|
+
content += `\n`;
|
|
58
|
+
content += `export LANG=${defaultLocale}\n`;
|
|
59
|
+
content += `export LC_CTYPE=${defaultLocale}\n`;
|
|
60
|
+
content += `export LC_NUMERIC=${defaultLocale}\n`;
|
|
61
|
+
content += `export LC_TIME=${defaultLocale}\n`;
|
|
62
|
+
content += `export LC_COLLATE=${defaultLocale}\n`;
|
|
63
|
+
content += `export LC_MONETARY=${defaultLocale}\n`;
|
|
64
|
+
content += `export LC_MESSAGES=${defaultLocale}\n`;
|
|
65
|
+
content += `export LC_PAPER=${defaultLocale}\n`;
|
|
66
|
+
content += `export LC_NAME=${defaultLocale}\n`;
|
|
67
|
+
content += `export LC_ADDRESS=${defaultLocale}\n`;
|
|
68
|
+
content += `export LC_TELEPHONE=${defaultLocale}\n`;
|
|
69
|
+
content += `export LC_MEASUREMENT=${defaultLocale}\n`;
|
|
70
|
+
content += `export LC_IDENTIFICATION=${defaultLocale}\n`;
|
|
71
|
+
content += `export LC_ALL=${defaultLocale}\n`;
|
|
72
|
+
Utils.write(file, content);
|
|
73
|
+
await exec(`chmod +x ${file}`);
|
|
74
|
+
/**
|
|
75
|
+
* https://docs.alpinelinux.org/user-handbook/0.1a/Installing/manual.html
|
|
76
|
+
*/
|
|
77
|
+
/**
|
|
78
|
+
* timezone
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
let tz = `/etc/zoneinfo/${this.region}/${this.zone}`;
|
|
82
|
+
await exec(`chroot ${this.installTarget} rm -rf /etc/zoneinfo/*`, this.echo);
|
|
83
|
+
await exec(`chroot ${this.installTarget} mkdir -p ${tz}`, this.echo);
|
|
84
|
+
file = `${this.installTarget}/etc/profile.d/timezone.sh`;
|
|
85
|
+
content = "";
|
|
86
|
+
content += `#!/bin/sh\n`;
|
|
87
|
+
content += `export TZ='${tz}'`;
|
|
88
|
+
Utils.write(file, content);
|
|
89
|
+
await exec(`chmod +x ${file}`);
|
|
47
90
|
}
|
|
48
91
|
}
|