penguins-eggs 9.1.31 → 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.
- package/README.md +59 -18
- package/conf/distros/buster/calamares/modules/locale.yml +3 -3
- package/conf/eggs.yaml +2 -2
- package/lib/classes/compressors.d.ts +7 -0
- package/lib/classes/compressors.js +38 -1
- package/lib/classes/daddy.js +6 -29
- package/lib/classes/distro.js +12 -4
- package/lib/classes/incubation/fisherman-helper/packages.js +6 -3
- package/lib/classes/keyboards.d.ts +10 -12
- package/lib/classes/keyboards.js +19 -23
- package/lib/classes/locales.js +15 -10
- package/lib/classes/ovary.js +9 -4
- package/lib/classes/utils.js +19 -6
- package/lib/commands/{install.d.ts → krill.d.ts} +1 -0
- package/lib/commands/{install.js → krill.js} +2 -2
- package/lib/commands/produce.js +8 -30
- package/lib/{classes/krill_prepare.d.ts → krill/krill-prepare.d.ts} +9 -2
- package/lib/{classes/krill_prepare.js → krill/krill-prepare.js} +62 -12
- package/lib/krill/krill-sequence.d.ts +148 -0
- package/lib/krill/krill-sequence.js +533 -0
- package/lib/krill/modules/add-user.d.ts +15 -0
- package/lib/krill/modules/add-user.js +41 -0
- package/lib/krill/modules/bootloader-config-arch.d.ts +9 -0
- package/lib/krill/modules/bootloader-config-arch.js +13 -0
- package/lib/krill/modules/bootloader-config-ubuntu.d.ts +9 -0
- package/lib/krill/modules/bootloader-config-ubuntu.js +93 -0
- package/lib/krill/modules/bootloader-config.d.ts +9 -0
- package/lib/krill/modules/bootloader-config.js +23 -0
- package/lib/krill/modules/bootloader.d.ts +10 -0
- package/lib/krill/modules/bootloader.js +17 -0
- package/lib/krill/modules/change-password.d.ts +10 -0
- package/lib/krill/modules/change-password.js +16 -0
- package/lib/krill/modules/del-live-user.d.ts +9 -0
- package/lib/krill/modules/del-live-user.js +37 -0
- package/lib/krill/modules/fstab.d.ts +9 -0
- package/lib/krill/modules/fstab.js +93 -0
- package/lib/krill/modules/grubcfg.d.ts +12 -0
- package/lib/krill/modules/grubcfg.js +33 -0
- package/lib/krill/modules/hostname.d.ts +8 -0
- package/lib/krill/modules/hostname.js +13 -0
- package/lib/krill/modules/hosts.d.ts +9 -0
- package/lib/krill/modules/hosts.js +30 -0
- package/lib/krill/modules/initramfs-cfg.d.ts +9 -0
- package/lib/krill/modules/initramfs-cfg.js +29 -0
- package/lib/krill/modules/initramfs.d.ts +8 -0
- package/lib/krill/modules/initramfs.js +30 -0
- package/lib/krill/modules/locale.d.ts +8 -0
- package/lib/krill/modules/locale.js +47 -0
- package/lib/krill/modules/l/303/262cale-cfg.d.ts +5 -0
- package/lib/krill/modules/l/303/262cale-cfg.js +58 -0
- package/lib/krill/modules/machine-id.d.ts +10 -0
- package/lib/krill/modules/machine-id.js +21 -0
- package/lib/krill/modules/mkfs.d.ts +8 -0
- package/lib/krill/modules/mkfs.js +33 -0
- package/lib/krill/modules/mount-fs.d.ts +12 -0
- package/lib/krill/modules/mount-fs.js +63 -0
- package/lib/krill/modules/mount-vfs.d.ts +12 -0
- package/lib/krill/modules/mount-vfs.js +40 -0
- package/lib/krill/modules/network-cfg.d.ts +14 -0
- package/lib/krill/modules/network-cfg.js +49 -0
- package/lib/krill/modules/partitions.d.ts +15 -0
- package/lib/krill/modules/partitions.js +307 -0
- package/lib/krill/modules/remove-installer-link.d.ts +8 -0
- package/lib/krill/modules/remove-installer-link.js +34 -0
- package/lib/krill/modules/set-keyboard.d.ts +5 -0
- package/lib/krill/modules/set-keyboard.js +50 -0
- package/lib/krill/modules/set-timezone.d.ts +9 -0
- package/lib/krill/modules/set-timezone.js +21 -0
- package/lib/krill/modules/umount.d.ts +9 -0
- package/lib/krill/modules/umount.js +26 -0
- package/lib/krill/modules/unpackfs.d.ts +8 -0
- package/lib/krill/modules/unpackfs.js +17 -0
- package/lib/lib/cli-autologin.js +3 -3
- package/lib/lib/select_keyboard_variant.js +1 -0
- package/manpages/doc/man/eggs.html +122 -90
- package/mkinitcpio/README.md +8 -1
- package/mkinitcpio/archlinux/mkinitcpio-install.conf +5 -0
- package/mkinitcpio/archlinux/mkinitcpio-produce.conf +13 -0
- package/mkinitcpio/manjaro/README.md +27 -11
- package/mkinitcpio/manjaro/mkinitcpio-install.conf +7 -0
- package/mkinitcpio/manjaro/{mkinitcpio.conf → mkinitcpio-produce.conf} +1 -1
- package/package.json +1 -1
- package/scripts/_eggs +8 -8
- package/scripts/eggs.bash +1 -1
- package/scripts/mom-cli.sh +8 -8
- package/lib/classes/i18n.d.ts +0 -34
- package/lib/classes/i18n.js +0 -126
- package/lib/classes/krill_install.d.ts +0 -227
- package/lib/classes/krill_install.js +0 -1370
package/package.json
CHANGED
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"
|
|
@@ -116,19 +116,19 @@ info)
|
|
|
116
116
|
)
|
|
117
117
|
;;
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
kill)
|
|
120
120
|
_command_flags=(
|
|
121
|
-
"--
|
|
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
|
-
|
|
126
|
+
krill)
|
|
130
127
|
_command_flags=(
|
|
131
|
-
"--
|
|
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
|
;;
|
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
|
package/scripts/mom-cli.sh
CHANGED
|
@@ -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
|
|
249
|
-
sudo eggs
|
|
248
|
+
function kill {
|
|
249
|
+
sudo eggs kill
|
|
250
250
|
press_a_key_to_continue
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
################################
|
|
254
|
-
function
|
|
255
|
-
sudo eggs
|
|
254
|
+
function krill {
|
|
255
|
+
sudo eggs krill --cli
|
|
256
256
|
press_a_key_to_continue
|
|
257
257
|
}
|
|
258
258
|
|
package/lib/classes/i18n.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/classes/i18n.js
DELETED
|
@@ -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
|
-
}
|