penguins-eggs 9.1.29 → 9.1.34

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.
Files changed (99) hide show
  1. package/README.md +59 -18
  2. package/conf/distros/buster/calamares/modules/locale.yml +3 -3
  3. package/conf/distros/focal/calamares/modules/before_bootloader_context.yml +6 -6
  4. package/conf/distros/focal/calamares/modules/unpackfs.yml +3 -2
  5. package/conf/distros/focal/calamares/modules/users.yml +37 -17
  6. package/conf/distros/rolling/calamares/modules/packages.yml +1 -0
  7. package/conf/eggs.yaml +2 -2
  8. package/lib/classes/bleach.js +8 -1
  9. package/lib/classes/compressors.d.ts +7 -0
  10. package/lib/classes/compressors.js +38 -1
  11. package/lib/classes/daddy.js +6 -29
  12. package/lib/classes/distro.js +15 -6
  13. package/lib/classes/incubation/fisherman-helper/packages.js +8 -5
  14. package/lib/classes/keyboards.d.ts +10 -12
  15. package/lib/classes/keyboards.js +19 -23
  16. package/lib/classes/locales.js +15 -10
  17. package/lib/classes/ovary.js +9 -4
  18. package/lib/classes/utils.js +19 -6
  19. package/lib/classes/xdg.js +4 -3
  20. package/lib/classes/yolk.js +1 -1
  21. package/lib/commands/{install.d.ts → krill.d.ts} +1 -0
  22. package/lib/commands/{install.js → krill.js} +2 -2
  23. package/lib/commands/produce.js +8 -30
  24. package/lib/{classes/krill_prepare.d.ts → krill/krill-prepare.d.ts} +9 -2
  25. package/lib/{classes/krill_prepare.js → krill/krill-prepare.js} +62 -12
  26. package/lib/krill/krill-sequence.d.ts +148 -0
  27. package/lib/krill/krill-sequence.js +533 -0
  28. package/lib/krill/modules/add-user.d.ts +15 -0
  29. package/lib/krill/modules/add-user.js +41 -0
  30. package/lib/krill/modules/bootloader-config-arch.d.ts +9 -0
  31. package/lib/krill/modules/bootloader-config-arch.js +13 -0
  32. package/lib/krill/modules/bootloader-config-ubuntu.d.ts +9 -0
  33. package/lib/krill/modules/bootloader-config-ubuntu.js +93 -0
  34. package/lib/krill/modules/bootloader-config.d.ts +9 -0
  35. package/lib/krill/modules/bootloader-config.js +23 -0
  36. package/lib/krill/modules/bootloader.d.ts +10 -0
  37. package/lib/krill/modules/bootloader.js +17 -0
  38. package/lib/krill/modules/change-password.d.ts +10 -0
  39. package/lib/krill/modules/change-password.js +16 -0
  40. package/lib/krill/modules/del-live-user.d.ts +9 -0
  41. package/lib/krill/modules/del-live-user.js +37 -0
  42. package/lib/krill/modules/fstab.d.ts +9 -0
  43. package/lib/krill/modules/fstab.js +93 -0
  44. package/lib/krill/modules/grubcfg.d.ts +12 -0
  45. package/lib/krill/modules/grubcfg.js +33 -0
  46. package/lib/krill/modules/hostname.d.ts +8 -0
  47. package/lib/krill/modules/hostname.js +13 -0
  48. package/lib/krill/modules/hosts.d.ts +9 -0
  49. package/lib/krill/modules/hosts.js +30 -0
  50. package/lib/krill/modules/initramfs-cfg.d.ts +9 -0
  51. package/lib/krill/modules/initramfs-cfg.js +29 -0
  52. package/lib/krill/modules/initramfs.d.ts +8 -0
  53. package/lib/krill/modules/initramfs.js +30 -0
  54. package/lib/krill/modules/locale.d.ts +8 -0
  55. package/lib/krill/modules/locale.js +47 -0
  56. package/lib/krill/modules/l/303/262cale-cfg.d.ts +5 -0
  57. package/lib/krill/modules/l/303/262cale-cfg.js +58 -0
  58. package/lib/krill/modules/machine-id.d.ts +10 -0
  59. package/lib/krill/modules/machine-id.js +21 -0
  60. package/lib/krill/modules/mkfs.d.ts +8 -0
  61. package/lib/krill/modules/mkfs.js +33 -0
  62. package/lib/krill/modules/mount-fs.d.ts +12 -0
  63. package/lib/krill/modules/mount-fs.js +63 -0
  64. package/lib/krill/modules/mount-vfs.d.ts +12 -0
  65. package/lib/krill/modules/mount-vfs.js +40 -0
  66. package/lib/krill/modules/network-cfg.d.ts +14 -0
  67. package/lib/krill/modules/network-cfg.js +49 -0
  68. package/lib/krill/modules/partitions.d.ts +15 -0
  69. package/lib/krill/modules/partitions.js +307 -0
  70. package/lib/krill/modules/remove-installer-link.d.ts +8 -0
  71. package/lib/krill/modules/remove-installer-link.js +34 -0
  72. package/lib/krill/modules/set-keyboard.d.ts +5 -0
  73. package/lib/krill/modules/set-keyboard.js +50 -0
  74. package/lib/krill/modules/set-timezone.d.ts +9 -0
  75. package/lib/krill/modules/set-timezone.js +21 -0
  76. package/lib/krill/modules/umount.d.ts +9 -0
  77. package/lib/krill/modules/umount.js +26 -0
  78. package/lib/krill/modules/unpackfs.d.ts +8 -0
  79. package/lib/krill/modules/unpackfs.js +17 -0
  80. package/lib/lib/cli-autologin.js +3 -3
  81. package/lib/lib/dependencies.js +4 -13
  82. package/lib/lib/select_keyboard_variant.js +1 -0
  83. package/manpages/doc/man/eggs.html +122 -90
  84. package/mkinitcpio/README.md +16 -0
  85. package/mkinitcpio/archlinux/mkinitcpio-install.conf +5 -0
  86. package/mkinitcpio/archlinux/mkinitcpio-produce.conf +13 -0
  87. package/mkinitcpio/garuda/README.md +29 -0
  88. package/mkinitcpio/manjaro/README.md +31 -0
  89. package/mkinitcpio/manjaro/mkinitcpio-install.conf +7 -0
  90. package/mkinitcpio/manjaro/mkinitcpio-produce.conf +7 -0
  91. package/package.json +14 -17
  92. package/scripts/_eggs +13 -13
  93. package/scripts/eggs.bash +2 -2
  94. package/scripts/mom-cli.sh +8 -8
  95. package/lib/classes/i18n.d.ts +0 -34
  96. package/lib/classes/i18n.js +0 -126
  97. package/lib/classes/krill_install.d.ts +0 -227
  98. package/lib/classes/krill_install.js +0 -1370
  99. package/oclif.manifest.json +0 -1
@@ -0,0 +1,31 @@
1
+ # penguins-eggs manjaro
2
+
3
+ ## Build and install penguins-eggs
4
+
5
+ Copy and paste follow instructions
6
+ ```
7
+ git clone https://github.com/pieroproietti/penguins-eggs-manjaro
8
+ cd penguins-eggs-manjaro
9
+ makepkg -srcCi
10
+ ```
11
+ ## Create your first iso: CLI installer krill
12
+ * ```sudo eggs produce --fast```
13
+
14
+ ## Create your first desktop iso: GUI installer calamares
15
+ * ```sudo eggs calamares --install```
16
+ * ```sudo eggs produce --fast```
17
+
18
+ ## Copy your iso image and boot the son of your system
19
+ You can use simple USB or USB with ventoy, iso file with proxmox ve, virtualbox, vmware etc.
20
+
21
+
22
+ # Developer and collaboration links
23
+ * penguins-eggs discussion on [manjaro-forum](https://forum.manjaro.org/t/penguins-eggs-help-needed-for-manjaro-compatibility/96799)
24
+ * penguins-eggs PKGBUILD on [community](https://gitlab.manjaro.org/packages/community/penguins-eggs)
25
+ * penguins-eggs PKGBUILD [my way](https://github.com/pieroproietti/penguins-eggs-manjaro) (*)
26
+ * penguins-eggs [sources](https://github.com/pieroproietti/penguins-eggs)
27
+ * penguins-eggs [book](https://penguins-eggs.net/book/)
28
+ * penguins-eggs [blog](https://penguins-eggs.net)
29
+
30
+ (*) Here we refere always to that, but I hope with same help to solve the problems and have it in community again.
31
+
@@ -0,0 +1,7 @@
1
+ # manjaro linux Qono mkinitpip-install.conf krill installing
2
+ MODULES=(qxl virtio-gpu virtio virtio_scsi virtio_blk virtio_pci virtio_net virtio_ring)
3
+ HOOKS="base udev modconf block keyboard keymap consolefont filesystems fsck"
4
+ COMPRESSION="zstd"
5
+
6
+ # removed: bochs_drm
7
+
@@ -0,0 +1,7 @@
1
+ # manjaro linux Qono krill producing iso
2
+ MODULES="loop dm-snapshot"
3
+ HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms modconf block filesystems keyboard keymap"
4
+ COMPRESSION="zstd"
5
+
6
+
7
+ # HOOKS="base udev pe_miso_shutdown pe_miso pe_miso_loop_mnt pe_miso_kms modconf block filesystems keyboard keymap"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "penguins-eggs",
3
3
  "description": "Perri's Brewery edition: remaster your system and distribuite it",
4
- "version": "9.1.29",
4
+ "version": "9.1.34",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
8
8
  },
9
9
  "bugs": "https://github.com/pieroproietti/penguins-eggs/issues",
10
10
  "dependencies": {
11
- "@oclif/core": "^1.8.2",
11
+ "@oclif/core": "^1.9.0",
12
12
  "@oclif/plugin-autocomplete": "^1.3.0",
13
13
  "@oclif/plugin-help": "^5.1.12",
14
14
  "@oclif/plugin-not-found": "^2.3.1",
@@ -23,7 +23,7 @@
23
23
  "inquirer": "^8.2.4",
24
24
  "js-yaml": "^4.1.0",
25
25
  "mustache": "^4.2.0",
26
- "penguins-oclif": "^3.0.1",
26
+ "penguins-oclif": "^3.0.1-1",
27
27
  "react": "^17.0.2",
28
28
  "shelljs": "0.8.5",
29
29
  "tslib": "^2.4.0"
@@ -35,11 +35,11 @@
35
35
  "@types/inquirer": "^8.2.1",
36
36
  "@types/js-yaml": "^4.0.5",
37
37
  "@types/mocha": "^9.1.1",
38
- "@types/mustache": "^4.1.2",
39
- "@types/node": "^17.0.35",
40
- "@types/react": "^18.0.9",
38
+ "@types/mustache": "^4.1.3",
39
+ "@types/node": "^17.0.42",
40
+ "@types/react": "^18.0.12",
41
41
  "@types/shelljs": "^0.8.11",
42
- "@typescript-eslint/parser": "^5.0.0",
42
+ "@typescript-eslint/parser": "^5.27.1",
43
43
  "chai": "^4.3.6",
44
44
  "eslint": "^7.32.0",
45
45
  "eslint-config-oclif": "^4.0.0",
@@ -47,10 +47,10 @@
47
47
  "globby": "^11.1.0",
48
48
  "mocha": "^10.0.0",
49
49
  "nyc": "^15.1.0",
50
- "perrisbrewery": "^0.6.0",
51
- "ts-node": "^10.7.0",
52
- "typedoc": "^0.22.15",
53
- "typescript": "^4.6.4"
50
+ "perrisbrewery": "^0.6.3-1",
51
+ "ts-node": "^10.8.1",
52
+ "typedoc": "^0.22.17",
53
+ "typescript": "^4.7.3"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@typescript-eslint/parser": "^5.0.0",
@@ -61,17 +61,14 @@
61
61
  "node": ">=14.0.0"
62
62
  },
63
63
  "files": [
64
- "/assets",
65
64
  "/addons",
66
- "/assistant",
65
+ "/assets",
67
66
  "/bin",
68
67
  "/conf",
69
68
  "/lib",
70
69
  "/manpages",
71
- "/oclif.manifest.json",
72
- "/scripts",
73
- "/templates",
74
- "/wardrobe.d"
70
+ "mkinitcpio",
71
+ "/scripts"
75
72
  ],
76
73
  "homepage": "https://penguins-eggs.net/",
77
74
  "keywords": [
package/scripts/_eggs CHANGED
@@ -16,8 +16,8 @@ _eggs () {
16
16
  "export\:docs:remove and export docType documentation of the sources in the destination host"
17
17
  "export\:iso:export iso in the destination host"
18
18
  "info:informations about eggs configuration"
19
- "install:command-line system installer - the egg became a penguin!"
20
19
  "kill:kill the eggs/free the nest"
20
+ "krill:command-line system installer - the egg became a penguin!"
21
21
  "mom:ask for mommy - gui helper"
22
22
  "produce:produce a live image from your system whithout your data"
23
23
  "remove:remove eggs and others stuff"
@@ -33,8 +33,8 @@ _eggs () {
33
33
  "wardrobe\:list:list costumes and accessoires in wardrobe"
34
34
  "wardrobe\:show:show costumes/accessories in wardrobe"
35
35
  "wardrobe\:wear:wear costume/accessories from wardrobe"
36
- "help:Display help for <%= config.bin %>."
37
36
  "autocomplete:display autocomplete installation instructions"
37
+ "help:Display help for <%= config.bin %>."
38
38
  "version:"
39
39
  )
40
40
 
@@ -116,19 +116,19 @@ info)
116
116
  )
117
117
  ;;
118
118
 
119
- install)
119
+ kill)
120
120
  _command_flags=(
121
- "--cli[force use CLI installer]"
122
- "--crypted[crypted CLI installation]"
123
- "--pve[Proxmox VE install]"
124
- "--help[Show CLI help.]"
121
+ "--help[Show CLI help.]"
125
122
  "--verbose[verbose]"
126
123
  )
127
124
  ;;
128
125
 
129
- kill)
126
+ krill)
130
127
  _command_flags=(
131
- "--help[Show CLI help.]"
128
+ "--cli[force use CLI installer]"
129
+ "--crypted[crypted CLI installation]"
130
+ "--pve[Proxmox VE install]"
131
+ "--help[Show CLI help.]"
132
132
  "--verbose[verbose]"
133
133
  )
134
134
  ;;
@@ -264,15 +264,15 @@ wardrobe:wear)
264
264
  )
265
265
  ;;
266
266
 
267
- help)
267
+ autocomplete)
268
268
  _command_flags=(
269
- "--nested-commands[Include all nested commands in the output.]"
269
+ "--refresh-cache[Refresh cache (ignores displaying instructions)]"
270
270
  )
271
271
  ;;
272
272
 
273
- autocomplete)
273
+ help)
274
274
  _command_flags=(
275
- "--refresh-cache[Refresh cache (ignores displaying instructions)]"
275
+ "--nested-commands[Include all nested commands in the output.]"
276
276
  )
277
277
  ;;
278
278
 
package/scripts/eggs.bash CHANGED
@@ -20,8 +20,8 @@ export:deb --help --clean --amd64 --i386 --armel --arm64 --all
20
20
  export:docs --help
21
21
  export:iso --help --backup --clean
22
22
  info --verbose --help
23
- install --cli --crypted --pve --help --verbose
24
23
  kill --help --verbose
24
+ krill --cli --crypted --pve --help --verbose
25
25
  mom --help
26
26
  produce --prefix --basename --backup --fast --normal --max --verbose --yolk --script --help --theme --addons --release
27
27
  remove --purge --autoremove --help --verbose
@@ -37,8 +37,8 @@ wardrobe:ironing --wardrobe --verbose --help
37
37
  wardrobe:list --verbose --help
38
38
  wardrobe:show --wardrobe --json --verbose --help
39
39
  wardrobe:wear --wardrobe --no_accessories --no_firmwares --silent --verbose --help
40
- help --nested-commands
41
40
  autocomplete --refresh-cache
41
+ help --nested-commands
42
42
  version
43
43
  "
44
44
 
@@ -19,8 +19,8 @@ function main {
19
19
  "dad" "ask help from daddy - configuration helper" \
20
20
  "help" "display help for eggs" \
21
21
  "info" "informations about system and eggs" \
22
- "install" "system installer - the egg becomes a penguin" \
23
22
  "kill" "kill the eggs/free the nest" \
23
+ "krill" "krill TUI system installer - the egg becomes a chick" \
24
24
  "produce" "the system produces an egg: iso image of your system" \
25
25
  "remove" "remove eggs and others stuff" \
26
26
  "update" "update the penguin's eggs tool" \
@@ -53,12 +53,12 @@ function main {
53
53
  "info")
54
54
  info ;;
55
55
 
56
- "install")
57
- install ;;
58
-
59
56
  "kill")
60
57
  kill ;;
61
58
 
59
+ "krill")
60
+ krill ;;
61
+
62
62
  "produce")
63
63
  produce ;;
64
64
 
@@ -245,14 +245,14 @@ function info {
245
245
  }
246
246
 
247
247
  ################################
248
- function install {
249
- sudo eggs install
248
+ function kill {
249
+ sudo eggs kill
250
250
  press_a_key_to_continue
251
251
  }
252
252
 
253
253
  ################################
254
- function kill {
255
- sudo eggs kill
254
+ function krill {
255
+ sudo eggs krill --cli
256
256
  press_a_key_to_continue
257
257
  }
258
258
 
@@ -1,34 +0,0 @@
1
- /**
2
- * penguins-eggs:
3
- * author: Piero Proietti
4
- * mail: piero.proietti@gmail.com
5
- *
6
- */
7
- import Settings from './settings';
8
- /**
9
- * I18n
10
- */
11
- export default class I18n {
12
- verbose: boolean;
13
- echo: {};
14
- toNull: string;
15
- chroot: string;
16
- settings: Settings;
17
- constructor(chroot?: string, verbose?: boolean);
18
- /**
19
- *
20
- */
21
- generate(fromSettings?: boolean, defaultLocale?: string, locales?: string[]): Promise<void>;
22
- /**
23
- * localeGen
24
- */
25
- private localeGen;
26
- /**
27
- * /etc/locale.conf
28
- */
29
- private localeConf;
30
- /**
31
- * /etc/default/locale
32
- */
33
- private defaultLocale;
34
- }
@@ -1,126 +0,0 @@
1
- "use strict";
2
- /**
3
- * penguins-eggs:
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
10
- // packages
11
- const fs_1 = tslib_1.__importDefault(require("fs"));
12
- const mustache_1 = tslib_1.__importDefault(require("mustache"));
13
- const settings_1 = tslib_1.__importDefault(require("./settings"));
14
- const utils_1 = tslib_1.__importDefault(require("./utils"));
15
- // libraries
16
- const utils_2 = require("../lib/utils");
17
- /**
18
- * I18n
19
- */
20
- class I18n {
21
- constructor(chroot = '/', verbose = false) {
22
- this.verbose = false;
23
- this.echo = {};
24
- this.toNull = '';
25
- this.chroot = '/';
26
- this.settings = {};
27
- this.verbose = verbose;
28
- this.echo = utils_1.default.setEcho(verbose);
29
- if (this.verbose) {
30
- this.toNull = ' > /dev/null 2>&1';
31
- }
32
- this.settings = new settings_1.default();
33
- this.chroot = chroot;
34
- }
35
- /**
36
- *
37
- */
38
- async generate(fromSettings = true, defaultLocale = 'en_EN.UTF-8', locales = ['en_EN.UTF-8']) {
39
- if (fromSettings) {
40
- this.settings.load();
41
- defaultLocale = this.settings.config.locales_default;
42
- locales = [];
43
- for (let i = 0; i < this.settings.config.locales.length; i++) {
44
- locales.push(this.settings.config.locales[i]);
45
- }
46
- }
47
- await this.localeGen(locales);
48
- await this.defaultLocale(defaultLocale);
49
- await this.localeConf(defaultLocale);
50
- await (0, utils_2.exec)(`chroot ${this.chroot} /usr/sbin/locale-gen`, this.echo);
51
- }
52
- /**
53
- * localeGen
54
- */
55
- async localeGen(locales) {
56
- let supporteds = fs_1.default.readFileSync('/usr/share/i18n/SUPPORTED', 'utf-8').split('\n');
57
- locales = ['it_IT.UTF-8', 'en_US.UTF-8'];
58
- let lgt = '';
59
- lgt += '# -------------------------------\n';
60
- lgt += '# File generated by penguins-eggs\n';
61
- lgt += '# -------------------------------\n';
62
- lgt += '# This file lists locales that you wish to have built. You can find a list\n';
63
- lgt += '# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add\n';
64
- lgt += '# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change\n';
65
- lgt += '# this file, you need to rerun locale-gen.\n';
66
- for (const supported of supporteds) {
67
- for (const locale of locales) {
68
- if (supported.includes(locale)) {
69
- lgt += `${supported}\n`;
70
- }
71
- else {
72
- lgt += `# ${supported}\n`;
73
- }
74
- }
75
- }
76
- const destGen = `${this.chroot}/etc/locale.gen`;
77
- // console.log(lgt)
78
- fs_1.default.writeFileSync(destGen, lgt);
79
- }
80
- /**
81
- * /etc/locale.conf
82
- */
83
- async localeConf(defaultLocale) {
84
- let lct = '';
85
- lct += '# File generated by penguins-eggs\n';
86
- lct += 'LANG={{{locale}}}\n';
87
- lct += 'LC_ADDRESS={{{locale}}}\n';
88
- lct += 'LC_IDENTIFICATION={{{locale}}}\n';
89
- lct += 'LC_MEASUREMENT={{{locale}}}\n';
90
- lct += 'LC_MONETARY={{{locale}}}\n';
91
- lct += 'LC_NAME={{{locale}}}\n';
92
- lct += 'LC_NUMERIC={{{locale}}}\n';
93
- lct += 'LC_PAPER={{{locale}}}\n';
94
- lct += 'LC_TELEPHONE={{{locale}}}\n';
95
- lct += 'LC_TIME={{{locale}}}\n';
96
- const destConf = `${this.chroot}/etc/locale.conf`;
97
- const view = {
98
- locale: defaultLocale
99
- };
100
- // console.log(mustache.render(lct, view))
101
- fs_1.default.writeFileSync(destConf, mustache_1.default.render(lct, view));
102
- }
103
- /**
104
- * /etc/default/locale
105
- */
106
- async defaultLocale(defaultLocale) {
107
- let lct = '';
108
- lct += '# File generated by penguins-eggs\n';
109
- lct += 'LANG={{{locale}}}\n';
110
- lct += 'LC_ADDRESS={{{locale}}}\n';
111
- lct += 'LC_IDENTIFICATION={{{locale}}}\n';
112
- lct += 'LC_MEASUREMENT={{{locale}}}\n';
113
- lct += 'LC_MONETARY={{{locale}}}\n';
114
- lct += 'LC_NAME={{{locale}}}\n';
115
- lct += 'LC_NUMERIC={{{locale}}}\n';
116
- lct += 'LC_PAPER={{{locale}}}\n';
117
- lct += 'LC_TELEPHONE={{{locale}}}\n';
118
- lct += 'LC_TIME={{{locale}}}\n';
119
- const destConf = `${this.chroot}/etc/default/locale`;
120
- const view = {
121
- locale: defaultLocale
122
- };
123
- fs_1.default.writeFileSync(destConf, mustache_1.default.render(lct, view));
124
- }
125
- }
126
- exports.default = I18n;
@@ -1,227 +0,0 @@
1
- /**
2
- * penguins-eggs: krill_install
3
- *
4
- * author: Piero Proietti
5
- * mail: piero.proietti@gmail.com
6
- *
7
- */
8
- /**
9
- * Ideally, I want to respect calamares way, remplementing the same (SEMPLIFIED) steps for CLI
10
- *
11
- - partition OK
12
- - mount this.mountFs, this.mountVfs OK
13
- - unpackfs OK
14
- - Restore private data from backup
15
- - sources-yolk // call execCalamaresModule('sources-yolk')
16
- - machineid OK
17
- - fstab OK
18
- - locale // to do
19
- - keyboard // this.setKeyboard OK
20
- - localecfg // to do
21
- - users OK
22
- - displaymanager // this.autologin OK
23
- - networkcfg OK
24
- - hwclock // to do
25
- - services-systemd // to do
26
- - bootloader-config // call execCalamaresModule('bootloader-config')
27
- - grubcfg OK
28
- - bootloader OK
29
- - packages // to do
30
- - luksbootkeyfile // to do
31
- - plymouthcfg // to do
32
- - initramfscfg OK
33
- - initramfs OK
34
- - removeuser OK
35
- - sources-yolk-unmount // execCalamaresModule('sources-yolk-unmount')
36
- - umount // this.umountVfs, this.umountFs
37
- */
38
- import { IRemix, IDistro, INet } from '../interfaces';
39
- import Settings from './settings';
40
- import { IInstaller, IDevices } from '../interfaces';
41
- import { ILocation, IKeyboard, IPartitions, IUsers } from '../interfaces/i-krill';
42
- /**
43
- * hatching: installazione o cova!!!
44
- */
45
- export default class Hatching {
46
- installer: IInstaller;
47
- installTarget: string;
48
- verbose: boolean;
49
- echo: {};
50
- efi: boolean;
51
- devices: IDevices;
52
- users: IUsers;
53
- network: INet;
54
- partitions: IPartitions;
55
- language: string;
56
- region: string;
57
- zone: string;
58
- keyboardModel: string;
59
- keyboardLayout: string;
60
- keyboardVariant: string;
61
- toNull: string;
62
- settings: Settings;
63
- remix: IRemix;
64
- distro: IDistro;
65
- luksName: string;
66
- luksFile: string;
67
- luksDevice: string;
68
- luksMountpoint: string;
69
- /**
70
- * constructor
71
- */
72
- constructor(location: ILocation, keyboard: IKeyboard, partitions: IPartitions, users: IUsers, network: INet);
73
- /**
74
- * install
75
- * @param verbose
76
- * @param umount
77
- * @returns
78
- */
79
- install(verbose?: boolean): Promise<void>;
80
- /**
81
- * setTimezone
82
- */
83
- private setTimezone;
84
- /**
85
- *
86
- * @param name
87
- * @param password
88
- * @param fullName
89
- * @param roomNumber
90
- * @param workPhone
91
- * @param homePhone
92
- */
93
- private addUser;
94
- /**
95
- * changePassword
96
- * @param name
97
- * @param newPassword
98
- */
99
- private changePassword;
100
- /**
101
- * delUser
102
- * va corretto con users.conf di calamares
103
- */
104
- delLiveUser(): Promise<void>;
105
- /**
106
- * grubInstall()
107
- * @param target
108
- * @param options
109
- */
110
- private bootloader;
111
- /**
112
- *
113
- */
114
- initramfsCfg(installDevice: string): void;
115
- /**
116
- * initramfs()
117
- */
118
- private initramfs;
119
- /**
120
- * fstab()
121
- * @param devices
122
- */
123
- private fstab;
124
- /**
125
- * setKeyboard
126
- */
127
- private setKeyboard;
128
- /**
129
- * networkcfg
130
- */
131
- private networkcfg;
132
- /**
133
- * hostname
134
- */
135
- private hostname;
136
- /**
137
- * hosts
138
- */
139
- private hosts;
140
- /**
141
- * removeInstaller
142
- */
143
- private removeInstaller;
144
- /**
145
- * unpackfs
146
- */
147
- private unpackfs;
148
- /**
149
- * syncfs
150
- */
151
- private syncfs;
152
- /**
153
- * mkfs
154
- */
155
- private mkfs;
156
- /**
157
- *
158
- * @param device
159
- */
160
- ifMountedDismount(device?: string): Promise<void>;
161
- /**
162
- * mount
163
- */
164
- private mountFs;
165
- /**
166
- * umountFs
167
- */
168
- private umountFs;
169
- /**
170
- * mountvfs()
171
- */
172
- private mountVfs;
173
- /**
174
- *
175
- */
176
- private umountVfs;
177
- /**
178
- *
179
- * @param mountpoint
180
- */
181
- private umount;
182
- /**
183
- *
184
- */
185
- private partition;
186
- /**
187
- * Return lvmPartname, lvmSwapSize, lvmRootSize
188
- */
189
- private lvmPartInfo;
190
- /**
191
- * isRotational
192
- * @param device
193
- */
194
- private isRotational;
195
- /**
196
- * execCalamaresModule
197
- *
198
- * @param name
199
- */
200
- private execCalamaresModule;
201
- /**
202
- *
203
- */
204
- bootloaderConfigUbuntu(): Promise<void>;
205
- /**
206
- * grubcfg
207
- * - open /etc/default/grub
208
- * - find GRUB_CMDLINE_LINUX_DEFAULT=
209
- * - replace with GRUB_CMDLINE_LINUX_DEFAULT=
210
- * 's/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT=/g'
211
- */
212
- grubcfg(): void;
213
- /**
214
- * On Ubuntu
215
- * /etc/machine-id must exist to be re-created
216
- * https://unix.stackexchange.com/questions/402999/is-it-ok-to-change-etc-machine-id
217
- */
218
- machineId(): Promise<void>;
219
- /**
220
- * only show the result
221
- */
222
- finished(): Promise<void>;
223
- /**
224
- * localeCfg
225
- */
226
- localeCfg(): Promise<void>;
227
- }