penguins-eggs 9.6.13 → 9.6.15
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 +4 -3
- package/addons/templates/grub.template +2 -2
- package/addons/templates/isolinux.template +2 -2
- package/conf/exclude.list +58 -122
- package/dist/classes/ovary.js +29 -10
- package/dist/classes/pxe.js +15 -21
- package/dist/classes/yolk.js +5 -5
- package/dist/commands/export/iso.js +10 -4
- package/package.json +1 -1
- package/scripts/_eggs +2 -0
- package/scripts/eggs.bash +2 -2
- package/manpages/doc/man/README.md +0 -4
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +0 -665
|
@@ -22,27 +22,33 @@ class ExportIso extends core_1.Command {
|
|
|
22
22
|
const echo = utils_1.default.setEcho(flags.verbose);
|
|
23
23
|
const rmount = `/tmp/eggs-${(Math.random() + 1).toString(36).slice(7)}`;
|
|
24
24
|
let cmd = `rm -f ${rmount}\n`;
|
|
25
|
-
|
|
25
|
+
let filters = ['*.iso', '*.md5', '*.sha256'];
|
|
26
26
|
cmd += `mkdir ${rmount}\n`;
|
|
27
27
|
cmd += `sshfs ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso} ${rmount}\n`;
|
|
28
28
|
if (flags.clean) {
|
|
29
29
|
cmd += `rm -f ${rmount}/${Tu.snapshot_name}*\n`;
|
|
30
30
|
}
|
|
31
|
-
cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${
|
|
31
|
+
cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[0]} ${rmount}\n`;
|
|
32
|
+
if (flags.checksum) {
|
|
33
|
+
cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[1]} ${rmount}\n`;
|
|
34
|
+
cmd += `cp ${Tu.snapshot_dir}${Tu.snapshot_name}${filters[2]} ${rmount}\n`;
|
|
35
|
+
}
|
|
32
36
|
cmd += 'sync\n';
|
|
33
37
|
cmd += `umount ${rmount}\n`;
|
|
34
38
|
cmd += `rm -f ${rmount}\m`;
|
|
35
39
|
if (!flags.verbose) {
|
|
36
40
|
if (flags.clean) {
|
|
37
|
-
console.log(`remove
|
|
41
|
+
console.log(`remove ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}${Tu.snapshot_name}${filters[0]}`);
|
|
42
|
+
console.log(`export ${Tu.config.localPathIso}/${Tu.snapshot_name}${filters[1]}/${filters[2]} to ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`);
|
|
38
43
|
}
|
|
39
|
-
console.log(`
|
|
44
|
+
console.log(`scp ${Tu.config.localPathIso}/${Tu.snapshot_name}${filters[0]} ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`);
|
|
40
45
|
}
|
|
41
46
|
await (0, utils_2.exec)(cmd, echo);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
ExportIso.flags = {
|
|
45
50
|
clean: core_1.Flags.boolean({ char: 'c', description: 'delete old ISOs before to copy' }),
|
|
51
|
+
checksum: core_1.Flags.boolean({ char: 'C', description: 'export checksums md5 and sha256' }),
|
|
46
52
|
help: core_1.Flags.help({ char: 'h' }),
|
|
47
53
|
verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' }),
|
|
48
54
|
};
|
package/package.json
CHANGED
package/scripts/_eggs
CHANGED
|
@@ -58,6 +58,7 @@ calamares)
|
|
|
58
58
|
"--help[Show CLI help.]"
|
|
59
59
|
"--install[install calamares and its dependencies]"
|
|
60
60
|
"--nointeractive[no user interaction]"
|
|
61
|
+
"--policies[configure calamares policies]"
|
|
61
62
|
"--release[release: remove calamares and all its dependencies after the installation]"
|
|
62
63
|
"--remove[remove calamares and its dependencies]"
|
|
63
64
|
"--theme=-[theme/branding for eggs and calamares]:"
|
|
@@ -102,6 +103,7 @@ export:deb)
|
|
|
102
103
|
export:iso)
|
|
103
104
|
_command_flags=(
|
|
104
105
|
"--clean[delete old ISOs before to copy]"
|
|
106
|
+
"--checksum[export checksums md5 and sha256]"
|
|
105
107
|
"--help[Show CLI help.]"
|
|
106
108
|
"--verbose[verbose]"
|
|
107
109
|
)
|
package/scripts/eggs.bash
CHANGED
|
@@ -13,12 +13,12 @@ _eggs_autocomplete()
|
|
|
13
13
|
local commands="
|
|
14
14
|
adapt --help --verbose
|
|
15
15
|
analyze --help --verbose
|
|
16
|
-
calamares --help --install --nointeractive --release --remove --theme --verbose
|
|
16
|
+
calamares --help --install --nointeractive --policies --release --remove --theme --verbose
|
|
17
17
|
config --clean --help --nointeractive --noicons --verbose
|
|
18
18
|
cuckoo --help
|
|
19
19
|
dad --clean --default --help --verbose
|
|
20
20
|
export:deb --all --clean --help --verbose
|
|
21
|
-
export:iso --clean --help --verbose
|
|
21
|
+
export:iso --clean --checksum --help --verbose
|
|
22
22
|
install --crypted --custom --domain --halt --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
|
|
23
23
|
kill --help --nointeractive --verbose
|
|
24
24
|
mom --help
|
|
Binary file
|