penguins-eggs 9.1.30 → 9.1.35

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 (95) hide show
  1. package/README.md +59 -18
  2. package/addons/eggs/theme/applications/install-debian.desktop +2 -2
  3. package/conf/distros/buster/calamares/modules/locale.yml +3 -3
  4. package/conf/distros/rolling/calamares/modules/packages.yml +1 -0
  5. package/conf/eggs.yaml +2 -2
  6. package/conf/exclude.list +81 -96
  7. package/lib/classes/bleach.js +8 -1
  8. package/lib/classes/compressors.d.ts +7 -0
  9. package/lib/classes/compressors.js +38 -1
  10. package/lib/classes/daddy.js +6 -29
  11. package/lib/classes/distro.js +18 -4
  12. package/lib/classes/incubation/fisherman-helper/packages.js +7 -4
  13. package/lib/classes/keyboards.d.ts +10 -12
  14. package/lib/classes/keyboards.js +19 -23
  15. package/lib/classes/locales.js +15 -10
  16. package/lib/classes/ovary.js +18 -6
  17. package/lib/classes/utils.js +19 -6
  18. package/lib/commands/{install.d.ts → krill.d.ts} +1 -0
  19. package/lib/commands/{install.js → krill.js} +2 -2
  20. package/lib/commands/produce.js +8 -30
  21. package/lib/components/elements/information.js +0 -2
  22. package/lib/{classes/krill_prepare.d.ts → krill/krill-prepare.d.ts} +9 -2
  23. package/lib/{classes/krill_prepare.js → krill/krill-prepare.js} +62 -12
  24. package/lib/krill/krill-sequence.d.ts +148 -0
  25. package/lib/krill/krill-sequence.js +533 -0
  26. package/lib/krill/modules/add-user.d.ts +15 -0
  27. package/lib/krill/modules/add-user.js +41 -0
  28. package/lib/krill/modules/bootloader-config-arch.d.ts +9 -0
  29. package/lib/krill/modules/bootloader-config-arch.js +13 -0
  30. package/lib/krill/modules/bootloader-config-ubuntu.d.ts +9 -0
  31. package/lib/krill/modules/bootloader-config-ubuntu.js +93 -0
  32. package/lib/krill/modules/bootloader-config.d.ts +9 -0
  33. package/lib/krill/modules/bootloader-config.js +23 -0
  34. package/lib/krill/modules/bootloader.d.ts +10 -0
  35. package/lib/krill/modules/bootloader.js +17 -0
  36. package/lib/krill/modules/change-password.d.ts +10 -0
  37. package/lib/krill/modules/change-password.js +16 -0
  38. package/lib/krill/modules/del-live-user.d.ts +9 -0
  39. package/lib/krill/modules/del-live-user.js +37 -0
  40. package/lib/krill/modules/fstab.d.ts +9 -0
  41. package/lib/krill/modules/fstab.js +93 -0
  42. package/lib/krill/modules/grubcfg.d.ts +12 -0
  43. package/lib/krill/modules/grubcfg.js +33 -0
  44. package/lib/krill/modules/hostname.d.ts +8 -0
  45. package/lib/krill/modules/hostname.js +13 -0
  46. package/lib/krill/modules/hosts.d.ts +9 -0
  47. package/lib/krill/modules/hosts.js +30 -0
  48. package/lib/krill/modules/initramfs-cfg.d.ts +9 -0
  49. package/lib/krill/modules/initramfs-cfg.js +29 -0
  50. package/lib/krill/modules/initramfs.d.ts +8 -0
  51. package/lib/krill/modules/initramfs.js +30 -0
  52. package/lib/krill/modules/locale.d.ts +8 -0
  53. package/lib/krill/modules/locale.js +47 -0
  54. package/lib/krill/modules/l/303/262cale-cfg.d.ts +5 -0
  55. package/lib/krill/modules/l/303/262cale-cfg.js +58 -0
  56. package/lib/krill/modules/machine-id.d.ts +10 -0
  57. package/lib/krill/modules/machine-id.js +21 -0
  58. package/lib/krill/modules/mkfs.d.ts +8 -0
  59. package/lib/krill/modules/mkfs.js +33 -0
  60. package/lib/krill/modules/mount-fs.d.ts +12 -0
  61. package/lib/krill/modules/mount-fs.js +63 -0
  62. package/lib/krill/modules/mount-vfs.d.ts +12 -0
  63. package/lib/krill/modules/mount-vfs.js +40 -0
  64. package/lib/krill/modules/network-cfg.d.ts +14 -0
  65. package/lib/krill/modules/network-cfg.js +49 -0
  66. package/lib/krill/modules/partitions.d.ts +15 -0
  67. package/lib/krill/modules/partitions.js +307 -0
  68. package/lib/krill/modules/remove-installer-link.d.ts +8 -0
  69. package/lib/krill/modules/remove-installer-link.js +34 -0
  70. package/lib/krill/modules/set-keyboard.d.ts +5 -0
  71. package/lib/krill/modules/set-keyboard.js +50 -0
  72. package/lib/krill/modules/set-timezone.d.ts +9 -0
  73. package/lib/krill/modules/set-timezone.js +21 -0
  74. package/lib/krill/modules/umount.d.ts +9 -0
  75. package/lib/krill/modules/umount.js +26 -0
  76. package/lib/krill/modules/unpackfs.d.ts +8 -0
  77. package/lib/krill/modules/unpackfs.js +17 -0
  78. package/lib/lib/cli-autologin.js +3 -3
  79. package/lib/lib/select_keyboard_variant.js +1 -0
  80. package/manpages/doc/man/eggs.html +122 -90
  81. package/mkinitcpio/README.md +6 -67
  82. package/mkinitcpio/archlinux/mkinitcpio-install.conf +5 -0
  83. package/mkinitcpio/archlinux/mkinitcpio-produce.conf +13 -0
  84. package/mkinitcpio/manjaro/README.md +31 -0
  85. package/mkinitcpio/manjaro/mkinitcpio-install.conf +7 -0
  86. package/mkinitcpio/manjaro/mkinitcpio-produce.conf +7 -0
  87. package/package.json +10 -11
  88. package/scripts/_eggs +8 -8
  89. package/scripts/eggs.bash +1 -1
  90. package/scripts/mom-cli.sh +8 -8
  91. package/lib/classes/i18n.d.ts +0 -34
  92. package/lib/classes/i18n.js +0 -126
  93. package/lib/classes/krill_install.d.ts +0 -227
  94. package/lib/classes/krill_install.js +0 -1370
  95. package/mkinitcpio/manjaro/mkinitcpio.conf +0 -4
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
8
+ /**
9
+ * locale
10
+ */
11
+ async function locale() {
12
+ /**
13
+ * influcence: - /etc/default/locale
14
+ * - /etc/locale.conf
15
+ * - /etc/timezone
16
+ */
17
+ let defaultLocale = 'en_US.UTF-8';
18
+ // /etc/default/locale
19
+ let file = this.installTarget + '/etc/default/locale';
20
+ let content = ``;
21
+ content += `LANG=${defaultLocale}\n`;
22
+ content += `LC_CTYPE=${defaultLocale}\n`;
23
+ content += `LC_NUMERIC=${defaultLocale}\n`;
24
+ content += `LC_TIME=${defaultLocale}\n`;
25
+ content += `LC_COLLATE=${defaultLocale}\n`;
26
+ content += `LC_MONETARY=${defaultLocale}\n`;
27
+ content += `LC_MESSAGES=${defaultLocale}\n`;
28
+ content += `LC_PAPER=${defaultLocale}\n`;
29
+ content += `LC_NAME=${defaultLocale}\n`;
30
+ content += `LC_ADDRESS=${defaultLocale}\n`;
31
+ content += `LC_TELEPHONE=${defaultLocale}\n`;
32
+ content += `LC_MEASUREMENT=${defaultLocale}\n`;
33
+ content += `LC_IDENTIFICATION=${defaultLocale}\n`;
34
+ content += `LC_ALL=${defaultLocale}\n`;
35
+ utils_1.default.write(file, content);
36
+ // /etc/locale.conf
37
+ file = this.installTarget + '/etc/locale.conf';
38
+ utils_1.default.write(file, content);
39
+ // timezone
40
+ try {
41
+ await this.setTimezone();
42
+ }
43
+ catch (error) {
44
+ await utils_1.default.pressKeyToExit(JSON.stringify(error));
45
+ }
46
+ }
47
+ exports.default = locale;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ export default function localeCfg(this: Sequence): Promise<void>;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ const fs_1 = tslib_1.__importDefault(require("fs"));
8
+ /* localeCfg
9
+ * Enable the configured locales (those set by the user on the
10
+ * user page) in /etc/locale.gen, if they are available in the
11
+ * target system.
12
+ */
13
+ async function localeCfg() {
14
+ /**
15
+ * influence: - locale-gen
16
+ */
17
+ let supporteds = [];
18
+ if (this.distro.familyId === 'debian') {
19
+ // Format: en_US.UTF-8 UTF-8
20
+ supporteds = fs_1.default.readFileSync('/usr/share/i18n/SUPPORTED', 'utf-8').split('\n');
21
+ }
22
+ else if (this.distro.familyId === 'archlinux') {
23
+ // shx.exec('localectl list-locales > /tmp/SUPPORTED') // with await exec don't work!
24
+ const supportedsSource = fs_1.default.readFileSync('/etc/locale.gen', 'utf-8').split('\n');
25
+ // Original Format: #en_US.UTF-8 UTF-8
26
+ for (let line of supportedsSource) {
27
+ if (line.substring(0, 2) !== "# ") { // se non è un commento
28
+ line = line.substring(1); // Rimuove #
29
+ }
30
+ supporteds.push(line);
31
+ }
32
+ // Format: en_US.UTF-8 UTF-8
33
+ }
34
+ const localeGenSource = fs_1.default.readFileSync(`${this.installTarget}/etc/locale.gen`, 'utf-8').split('\n');
35
+ let localeGenDest = '';
36
+ const krillBookmark = '# Locales enabled by krill\n';
37
+ for (let line of localeGenSource) {
38
+ if (line.includes(krillBookmark)) {
39
+ break;
40
+ }
41
+ localeGenDest += line + '\n';
42
+ }
43
+ localeGenDest += '\n';
44
+ localeGenDest += krillBookmark;
45
+ const locales = [this.language];
46
+ if (this.language !== 'en_US.UTF-8') {
47
+ locales.push('en_US.UTF-8');
48
+ }
49
+ for (const supported of supporteds) {
50
+ for (const locale of locales) {
51
+ if (supported.includes(locale)) {
52
+ localeGenDest += `${supported}\n`;
53
+ }
54
+ }
55
+ }
56
+ fs_1.default.writeFileSync(`${this.installTarget}/etc/locale.gen`, localeGenDest);
57
+ }
58
+ exports.default = localeCfg;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ * On Ubuntu
7
+ * /etc/machine-id must exist to be re-created
8
+ * https://unix.stackexchange.com/questions/402999/is-it-ok-to-change-etc-machine-id
9
+ */
10
+ export default function machineId(this: Sequence): Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ const utils_1 = require("../../lib/utils");
8
+ const fs_1 = tslib_1.__importDefault(require("fs"));
9
+ /**
10
+ * On Ubuntu
11
+ * /etc/machine-id must exist to be re-created
12
+ * https://unix.stackexchange.com/questions/402999/is-it-ok-to-change-etc-machine-id
13
+ */
14
+ async function machineId() {
15
+ let file = `${this.installTarget}/etc/machine-id`;
16
+ if (fs_1.default.existsSync(file)) {
17
+ await (0, utils_1.exec)(`rm ${file}`, this.echo);
18
+ }
19
+ await (0, utils_1.exec)(`touch ${file}`);
20
+ }
21
+ exports.default = machineId;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ * mkfs
7
+ */
8
+ export default function mkfs(this: Sequence): Promise<boolean>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const utils_1 = require("../../lib/utils");
7
+ /**
8
+ * mkfs
9
+ */
10
+ async function mkfs() {
11
+ const result = true;
12
+ if (this.efi) {
13
+ await (0, utils_1.exec)(`mkdosfs -F 32 -I ${this.devices.efi.name} ${this.toNull}`, this.echo);
14
+ }
15
+ if (this.devices.boot.name !== 'none') {
16
+ if (this.devices.boot.fsType === undefined) {
17
+ this.devices.boot.fsType = `ext2`;
18
+ this.devices.boot.mountPoint = '/boot';
19
+ }
20
+ await (0, utils_1.exec)(`mke2fs -Ft ${this.devices.boot.fsType} ${this.devices.boot.name} ${this.toNull}`, this.echo);
21
+ }
22
+ if (this.devices.root.name !== 'none') {
23
+ await (0, utils_1.exec)(`mke2fs -Ft ${this.devices.root.fsType} ${this.devices.root.name} ${this.toNull}`, this.echo);
24
+ }
25
+ if (this.devices.data.name !== 'none') {
26
+ await (0, utils_1.exec)(`mke2fs -Ft ${this.devices.data.fsType} ${this.devices.data.name} ${this.toNull}`, this.echo);
27
+ }
28
+ if (this.devices.swap.name !== 'none') {
29
+ await (0, utils_1.exec)(`mkswap ${this.devices.swap.name} ${this.toNull}`, this.echo);
30
+ }
31
+ return result;
32
+ }
33
+ exports.default = mkfs;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ * mountFs
7
+ */
8
+ export declare function mountFs(this: Sequence): Promise<boolean>;
9
+ /**
10
+ * umountFs
11
+ */
12
+ export declare function umountFs(this: Sequence): Promise<boolean>;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.umountFs = exports.mountFs = void 0;
7
+ const tslib_1 = require("tslib");
8
+ const utils_1 = require("../../lib/utils");
9
+ const fs_1 = tslib_1.__importDefault(require("fs"));
10
+ /**
11
+ * mountFs
12
+ */
13
+ async function mountFs() {
14
+ if (!fs_1.default.existsSync(this.installTarget)) {
15
+ await (0, utils_1.exec)(`mkdir ${this.installTarget} ${this.toNull}`, this.echo);
16
+ }
17
+ // root
18
+ await (0, utils_1.exec)(`mount ${this.devices.root.name} ${this.installTarget}${this.devices.root.mountPoint} ${this.toNull}`, this.echo);
19
+ await (0, utils_1.exec)(`tune2fs -c 0 -i 0 ${this.devices.root.name} ${this.toNull}`, this.echo);
20
+ await (0, utils_1.exec)(`rm -rf ${this.installTarget}/lost+found ${this.toNull}`, this.echo);
21
+ // boot
22
+ if (this.devices.boot.name !== `none`) {
23
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/boot -p ${this.toNull}`, this.echo);
24
+ await (0, utils_1.exec)(`mount ${this.devices.boot.name} ${this.installTarget}${this.devices.boot.mountPoint} ${this.toNull}`, this.echo);
25
+ await (0, utils_1.exec)(`tune2fs -c 0 -i 0 ${this.devices.boot.name} ${this.toNull}`, this.echo);
26
+ }
27
+ // data
28
+ if (this.devices.data.name !== `none`) {
29
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}${this.devices.data.mountPoint} -p ${this.toNull}`, this.echo);
30
+ await (0, utils_1.exec)(`mount ${this.devices.data.name} ${this.installTarget}${this.devices.data.mountPoint} ${this.toNull}`, this.echo);
31
+ await (0, utils_1.exec)(`tune2fs -c 0 -i 0 ${this.devices.data.name} ${this.toNull}`, this.echo);
32
+ }
33
+ // efi
34
+ if (this.efi) {
35
+ if (!fs_1.default.existsSync(this.installTarget + this.devices.efi.mountPoint)) {
36
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}${this.devices.efi.mountPoint} -p ${this.toNull}`, this.echo);
37
+ await (0, utils_1.exec)(`mount ${this.devices.efi.name} ${this.installTarget}${this.devices.efi.mountPoint} ${this.toNull}`, this.echo);
38
+ }
39
+ }
40
+ return true;
41
+ }
42
+ exports.mountFs = mountFs;
43
+ /**
44
+ * umountFs
45
+ */
46
+ async function umountFs() {
47
+ // efi
48
+ if (this.efi) {
49
+ await this.umount(this.devices.efi.name);
50
+ }
51
+ // data
52
+ if (this.devices.data.name !== `none`) {
53
+ await this.umount(this.devices.data.name);
54
+ }
55
+ // boot
56
+ if (this.devices.boot.name !== `none`) {
57
+ await this.umount(this.devices.boot.name);
58
+ }
59
+ // root
60
+ await this.umount(this.devices.root.name);
61
+ return true;
62
+ }
63
+ exports.umountFs = umountFs;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ * mountvfs()
7
+ */
8
+ export declare function mountVfs(this: Sequence): Promise<void>;
9
+ /**
10
+ *
11
+ */
12
+ export declare function umountVfs(this: Sequence): Promise<void>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.umountVfs = exports.mountVfs = void 0;
7
+ const utils_1 = require("../../lib/utils");
8
+ /**
9
+ * mountvfs()
10
+ */
11
+ async function mountVfs() {
12
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/dev ${this.toNull}`, this.echo);
13
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/dev/pts ${this.toNull}`, this.echo);
14
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/proc ${this.toNull}`, this.echo);
15
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/sys ${this.toNull}`, this.echo);
16
+ await (0, utils_1.exec)(`mkdir ${this.installTarget}/run ${this.toNull}`, this.echo);
17
+ await (0, utils_1.exec)(`mount -o bind /dev ${this.installTarget}/dev ${this.toNull}`, this.echo);
18
+ await (0, utils_1.exec)(`mount -o bind /dev/pts ${this.installTarget}/dev/pts ${this.toNull}`, this.echo);
19
+ await (0, utils_1.exec)(`mount -o bind /proc ${this.installTarget}/proc ${this.toNull}`, this.echo);
20
+ await (0, utils_1.exec)(`mount -o bind /sys ${this.installTarget}/sys ${this.toNull}`, this.echo);
21
+ if (this.efi) {
22
+ await (0, utils_1.exec)(`mount -o bind /sys/firmware/efi/efivars ${this.installTarget}/sys/firmware/efi/efivars ${this.toNull}`, this.echo);
23
+ }
24
+ await (0, utils_1.exec)(`mount -o bind /run ${this.installTarget}/run ${this.toNull}`, this.echo);
25
+ }
26
+ exports.mountVfs = mountVfs;
27
+ /**
28
+ *
29
+ */
30
+ async function umountVfs() {
31
+ await this.umount(`${this.installTarget}/dev/pts`);
32
+ await this.umount(`${this.installTarget}/dev`);
33
+ await this.umount(`${this.installTarget}/proc`);
34
+ await this.umount(`${this.installTarget}/run`);
35
+ if (this.efi) {
36
+ await this.umount(`${this.installTarget}/sys/firmware/efi/efivars`);
37
+ }
38
+ await this.umount(`${this.installTarget}/sys`);
39
+ }
40
+ exports.umountVfs = umountVfs;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ /**
7
+ * networkcfg
8
+ *
9
+ * we have:
10
+ * - debian: /etc/network/interface
11
+ * - ubuntu: netplan
12
+ * - manjaro: ? // ip address add 192.168.61/24 + dev enp6s18
13
+ */
14
+ export default function networkCfg(this: Sequence): Promise<void>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
8
+ const pacman_1 = tslib_1.__importDefault(require("../../classes/pacman"));
9
+ /**
10
+ /**
11
+ * networkcfg
12
+ *
13
+ * we have:
14
+ * - debian: /etc/network/interface
15
+ * - ubuntu: netplan
16
+ * - manjaro: ? // ip address add 192.168.61/24 + dev enp6s18
17
+ */
18
+ async function networkCfg() {
19
+ if (this.distro.familyId === 'debian') {
20
+ // if netplan, don't create entries in /etc/network/interfaces
21
+ if (!pacman_1.default.packageIsInstalled('netplan.io')) {
22
+ const file = this.installTarget + '/etc/network/interfaces';
23
+ let content = '# created by eggs\n\n';
24
+ content += 'auto lo\n';
25
+ content += 'iface lo inet loopback\n\n';
26
+ content += 'auto ' + this.network.iface + '\n';
27
+ content += 'iface ' + this.network.iface + ' inet ' + this.network.addressType + '\n';
28
+ if (this.network.addressType !== 'dhcp') {
29
+ content += ' address ' + this.network.address + '\n';
30
+ content += ' netmask ' + this.network.netmask + '\n';
31
+ content += ' gateway ' + this.network.gateway + '\n';
32
+ }
33
+ utils_1.default.write(file, content);
34
+ }
35
+ }
36
+ /**
37
+ * resolv.conf
38
+ */
39
+ if (this.network.addressType !== 'dhcp') {
40
+ const file = this.installTarget + '/etc/resolv.conf';
41
+ let content = '# created by eggs\n\n';
42
+ content += 'domain ' + this.network.domain + '\n';
43
+ for (const element of this.network.dns) {
44
+ content += 'nameserver ' + element + '\n';
45
+ }
46
+ utils_1.default.write(file, content);
47
+ }
48
+ }
49
+ exports.default = networkCfg;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
3
+ */
4
+ import Sequence from '../krill-sequence';
5
+ /**
6
+ *
7
+ * @param this
8
+ */
9
+ export default function partition(this: Sequence): Promise<boolean>;
10
+ /**
11
+ *
12
+ * @param installDevice
13
+ * @returns
14
+ */
15
+ export declare function lvmPartInfo(installDevice?: string): Promise<[string, number, number, number]>;