penguins-eggs 10.0.57 → 10.0.60
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 +8 -1
- package/README.md +35 -34
- package/addons/eggs/theme/livecd/grub.main.full.cfg +0 -6
- package/assets/config.cfg +30 -0
- package/conf/distros/buster/calamares/calamares-modules/cleanup/cleanup.sh +8 -1
- package/conf/distros/buster/calamares/modules/partition.yml +159 -23
- package/conf/distros/buster/calamares/modules/removeuser.yml +1 -1
- package/conf/exclude.list.d/master.list +1 -0
- package/conf/krill.yaml +8 -0
- package/dist/classes/distro.js +1 -1
- package/dist/classes/incubation/incubator.d/alpine.js +1 -1
- package/dist/classes/incubation/incubator.d/bionic.js +1 -1
- package/dist/classes/incubation/incubator.d/buster.js +1 -1
- package/dist/classes/incubation/incubator.d/noble.js +1 -1
- package/dist/classes/incubation/incubator.d/openmamba.js +1 -1
- package/dist/classes/incubation/incubator.d/opensuse.js +1 -1
- package/dist/classes/incubation/incubator.d/rolling.js +1 -1
- package/dist/classes/ovary.d/bind-live-fs.d.ts +18 -0
- package/dist/classes/ovary.d/bind-live-fs.js +185 -0
- package/dist/classes/ovary.d/bind-vfs.d.ts +17 -0
- package/dist/classes/ovary.d/bind-vfs.js +37 -0
- package/dist/classes/ovary.d/create-xdg-autostart.d.ts +13 -0
- package/dist/classes/ovary.d/create-xdg-autostart.js +194 -0
- package/dist/classes/ovary.d/edit-live-fs.d.ts +19 -0
- package/dist/classes/ovary.d/edit-live-fs.js +249 -0
- package/dist/classes/ovary.d/fertilization.d.ts +12 -0
- package/dist/classes/ovary.d/fertilization.js +46 -0
- package/dist/classes/ovary.d/finished.d.ts +13 -0
- package/dist/classes/ovary.d/finished.js +41 -0
- package/dist/classes/ovary.d/initrd.d.ts +21 -0
- package/dist/classes/ovary.d/initrd.js +72 -0
- package/dist/classes/ovary.d/kernel-copy.d.ts +12 -0
- package/dist/classes/ovary.d/kernel-copy.js +36 -0
- package/dist/classes/ovary.d/live-create-structure.d.ts +12 -0
- package/dist/classes/ovary.d/live-create-structure.js +90 -0
- package/dist/classes/ovary.d/make-dot-disk.d.ts +12 -0
- package/dist/classes/ovary.d/make-dot-disk.js +40 -0
- package/dist/classes/ovary.d/make-efi.d.ts +12 -0
- package/dist/classes/ovary.d/make-efi.js +268 -0
- package/dist/classes/ovary.d/make-iso.d.ts +13 -0
- package/dist/classes/ovary.d/make-iso.js +45 -0
- package/dist/classes/ovary.d/make-squashfs.d.ts +18 -0
- package/dist/classes/ovary.d/make-squashfs.js +117 -0
- package/dist/classes/ovary.d/merged.d.ts +31 -0
- package/dist/classes/ovary.d/merged.js +87 -0
- package/dist/classes/ovary.d/produce.d.ts +23 -0
- package/dist/classes/ovary.d/produce.js +287 -0
- package/dist/classes/ovary.d/rexec.d.ts +13 -0
- package/dist/classes/ovary.d/rexec.js +34 -0
- package/dist/classes/ovary.d/syslinux.d.ts +12 -0
- package/dist/classes/ovary.d/syslinux.js +79 -0
- package/dist/classes/ovary.d/user-create-live.d.ts +14 -0
- package/dist/classes/ovary.d/user-create-live.js +86 -0
- package/dist/classes/ovary.d/users-remove.d.ts +9 -0
- package/dist/classes/ovary.d/users-remove.js +38 -0
- package/dist/classes/ovary.d/xorriso-commend.d.ts +14 -0
- package/dist/classes/ovary.d/xorriso-commend.js +119 -0
- package/dist/classes/ovary.d.ts +46 -167
- package/dist/classes/ovary.js +49 -1818
- package/dist/classes/pacman.d/archlinux.js +2 -1
- package/dist/classes/settings.d.ts +0 -1
- package/dist/classes/settings.js +2 -2
- package/dist/classes/utils.d.ts +6 -5
- package/dist/classes/utils.js +10 -16
- package/dist/commands/install.d.ts +1 -0
- package/dist/commands/install.js +7 -4
- package/dist/commands/kill.js +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/update.js +3 -3
- package/dist/interfaces/i-luks-passphrase.d.ts +11 -0
- package/dist/interfaces/i-luks-passphrase.js +8 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/{classes → krill/classes}/cfs.js +1 -1
- package/dist/krill/classes/krill_enums.d.ts +24 -0
- package/dist/krill/classes/krill_enums.js +26 -0
- package/dist/krill/classes/prepare.d/confirm.d.ts +5 -0
- package/dist/krill/classes/prepare.d/confirm.js +30 -0
- package/dist/krill/classes/prepare.d/keyboard.d.ts +14 -0
- package/dist/krill/classes/prepare.d/keyboard.js +62 -0
- package/dist/krill/classes/prepare.d/location.d.ts +17 -0
- package/dist/krill/classes/prepare.d/location.js +59 -0
- package/dist/krill/classes/prepare.d/network.d.ts +14 -0
- package/dist/krill/classes/prepare.d/network.js +68 -0
- package/dist/krill/classes/prepare.d/partitions.d.ts +14 -0
- package/dist/krill/classes/prepare.d/partitions.js +86 -0
- package/dist/krill/classes/prepare.d/summary.d.ts +15 -0
- package/dist/krill/classes/prepare.d/summary.js +69 -0
- package/dist/krill/classes/prepare.d/users.d.ts +6 -0
- package/dist/krill/classes/prepare.d/users.js +63 -0
- package/dist/krill/classes/prepare.d/welcome.d.ts +6 -0
- package/dist/krill/classes/prepare.d/welcome.js +30 -0
- package/dist/krill/{prepare.d.ts → classes/prepare.d.ts} +21 -35
- package/dist/krill/classes/prepare.js +314 -0
- package/dist/krill/{modules/add-user.js → classes/sequence.d/add_user.js} +1 -1
- package/dist/krill/{modules → classes/sequence.d}/bootloader.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/bootloader.js +3 -3
- package/dist/krill/{modules/bootloader-config.js → classes/sequence.d/bootloader_config.js} +2 -2
- package/dist/krill/{modules/change-password.js → classes/sequence.d/change_password.js} +1 -1
- package/dist/krill/{modules/del-live-user.js → classes/sequence.d/del_live_user.js} +2 -2
- package/dist/krill/{modules → classes/sequence.d}/fstab.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/fstab.js +75 -14
- package/dist/krill/{modules → classes/sequence.d}/grubcfg.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/grubcfg.js +6 -2
- package/dist/krill/{modules → classes/sequence.d}/hostname.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/initramfs.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/initramfs.js +2 -2
- package/dist/krill/classes/sequence.d/initramfs_cfg.js +35 -0
- package/dist/krill/{modules → classes/sequence.d}/locale.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/locale.js +2 -2
- package/dist/krill/{modules/m-keyboard.js → classes/sequence.d/m_keyboard.js} +2 -2
- package/dist/krill/{modules/machine-id.js → classes/sequence.d/machine_id.js} +2 -2
- package/dist/krill/{modules → classes/sequence.d}/mkfs.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/mkfs.js +24 -2
- package/dist/krill/{modules/mount-fs.js → classes/sequence.d/mount_fs.js} +9 -3
- package/dist/krill/{modules/mount-vfs.js → classes/sequence.d/mount_vfs.js} +1 -1
- package/dist/krill/{modules/network-cfg.js → classes/sequence.d/network_cfg.js} +15 -6
- package/dist/krill/{modules → classes/sequence.d}/packages.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/packages.js +3 -3
- package/dist/krill/{modules/partition.d.ts → classes/sequence.d/partition.d/bios_luks.d.ts} +4 -7
- package/dist/krill/classes/sequence.d/partition.d/bios_luks.js +73 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_standard.d.ts +17 -0
- package/dist/krill/classes/sequence.d/partition.d/bios_standard.js +36 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_luks.d.ts +17 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_luks.js +78 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_standard.d.ts +10 -0
- package/dist/krill/classes/sequence.d/partition.d/uefi_standard.js +32 -0
- package/dist/krill/classes/sequence.d/partition.d.ts +14 -0
- package/dist/krill/classes/sequence.d/partition.js +84 -0
- package/dist/krill/{modules → classes/sequence.d}/umount.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/umount.js +2 -2
- package/dist/krill/{modules → classes/sequence.d}/unpackfs.d.ts +1 -1
- package/dist/krill/{modules → classes/sequence.d}/unpackfs.js +2 -2
- package/dist/krill/{sequence.d.ts → classes/sequence.d.ts} +40 -58
- package/dist/krill/{sequence.js → classes/sequence.js} +43 -32
- package/dist/{components → krill/components}/information.js +3 -3
- package/dist/{components → krill/components}/keyboard.js +1 -1
- package/dist/{components → krill/components}/location.js +1 -1
- package/dist/{components → krill/components}/network.js +1 -1
- package/dist/{components → krill/components}/partitions.d.ts +4 -2
- package/dist/{components → krill/components}/partitions.js +36 -20
- package/dist/{components → krill/components}/summary.d.ts +2 -1
- package/dist/{components → krill/components}/summary.js +2 -6
- package/dist/{components → krill/components}/title.js +1 -1
- package/dist/{components → krill/components}/users.js +1 -1
- package/dist/{components → krill/components}/welcome.js +1 -1
- package/dist/{interfaces/i-krill.d.ts → krill/interfaces/i_krill.d.ts} +3 -1
- package/dist/{interfaces/i-krill-config.d.ts → krill/interfaces/i_krill_config.d.ts} +3 -1
- package/dist/krill/lib/get_luks_passphrase.d.ts +8 -0
- package/dist/krill/lib/get_luks_passphrase.js +40 -0
- package/dist/{lib → krill/lib}/kill_me_softly.js +2 -2
- package/dist/{lib → krill/lib}/select_filesystem_type.js +2 -9
- package/dist/{lib → krill/lib}/select_installation_device.js +10 -4
- package/dist/{lib → krill/lib}/select_installation_mode.d.ts +2 -1
- package/dist/{lib → krill/lib}/select_installation_mode.js +2 -1
- package/dist/{lib → krill/lib}/select_keyboard_layout.js +1 -1
- package/dist/{lib → krill/lib}/select_keyboard_model.js +1 -1
- package/dist/{lib → krill/lib}/select_keyboard_option.js +1 -1
- package/dist/{lib → krill/lib}/select_keyboard_variant.js +1 -1
- package/dist/{lib → krill/lib}/select_languages.js +1 -1
- package/dist/krill/lib/select_replaced_partition.d.ts +8 -0
- package/dist/krill/lib/select_replaced_partition.js +31 -0
- package/dist/{lib → krill/lib}/select_user_swap_choice.d.ts +2 -1
- package/dist/{lib → krill/lib}/select_user_swap_choice.js +4 -3
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.js +8 -0
- package/package.json +25 -24
- package/scripts/_eggs +7 -5
- package/scripts/eggs.bash +3 -3
- package/dist/krill/modules/initramfs-cfg.js +0 -22
- package/dist/krill/modules/partition.js +0 -345
- package/dist/krill/prepare.js +0 -626
- /package/dist/{index-old.d.ts → index_old.d.ts} +0 -0
- /package/dist/{index-old.js → index_old.js} +0 -0
- /package/dist/{classes → krill/classes}/cfs.d.ts +0 -0
- /package/dist/krill/{modules/add-user.d.ts → classes/sequence.d/add_user.d.ts} +0 -0
- /package/dist/krill/{modules/bootloader-config.d.ts → classes/sequence.d/bootloader_config.d.ts} +0 -0
- /package/dist/krill/{modules/change-password.d.ts → classes/sequence.d/change_password.d.ts} +0 -0
- /package/dist/krill/{modules/del-live-user.d.ts → classes/sequence.d/del_live_user.d.ts} +0 -0
- /package/dist/krill/{modules → classes/sequence.d}/hostname.js +0 -0
- /package/dist/krill/{modules/initramfs-cfg.d.ts → classes/sequence.d/initramfs_cfg.d.ts} +0 -0
- /package/dist/krill/{modules/locale-cfg.d.ts → classes/sequence.d/locale_cfg.d.ts} +0 -0
- /package/dist/krill/{modules/locale-cfg.js → classes/sequence.d/locale_cfg.js} +0 -0
- /package/dist/krill/{modules/m-keyboard.d.ts → classes/sequence.d/m_keyboard.d.ts} +0 -0
- /package/dist/krill/{modules/machine-id.d.ts → classes/sequence.d/machine_id.d.ts} +0 -0
- /package/dist/krill/{modules/mount-fs.d.ts → classes/sequence.d/mount_fs.d.ts} +0 -0
- /package/dist/krill/{modules/mount-vfs.d.ts → classes/sequence.d/mount_vfs.d.ts} +0 -0
- /package/dist/krill/{modules/network-cfg.d.ts → classes/sequence.d/network_cfg.d.ts} +0 -0
- /package/dist/krill/{modules/remove-installer-link.d.ts → classes/sequence.d/remove_installer_link.d.ts} +0 -0
- /package/dist/krill/{modules/remove-installer-link.js → classes/sequence.d/remove_installer_link.js} +0 -0
- /package/dist/{components → krill/components}/finished.d.ts +0 -0
- /package/dist/{components → krill/components}/finished.js +0 -0
- /package/dist/{components → krill/components}/information.d.ts +0 -0
- /package/dist/{components → krill/components}/install.d.ts +0 -0
- /package/dist/{components → krill/components}/install.js +0 -0
- /package/dist/{components → krill/components}/keyboard.d.ts +0 -0
- /package/dist/{components → krill/components}/location.d.ts +0 -0
- /package/dist/{components → krill/components}/network.d.ts +0 -0
- /package/dist/{components → krill/components}/steps.d.ts +0 -0
- /package/dist/{components → krill/components}/steps.js +0 -0
- /package/dist/{components → krill/components}/title.d.ts +0 -0
- /package/dist/{components → krill/components}/users.d.ts +0 -0
- /package/dist/{components → krill/components}/welcome.d.ts +0 -0
- /package/dist/{interfaces/i-krill.js → krill/interfaces/i_krill.js} +0 -0
- /package/dist/{interfaces/i-krill-config.js → krill/interfaces/i_krill_config.js} +0 -0
- /package/dist/{lib → krill/lib}/get_address.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_address.js +0 -0
- /package/dist/{lib → krill/lib}/get_dns.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_dns.js +0 -0
- /package/dist/{lib → krill/lib}/get_domain.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_domain.js +0 -0
- /package/dist/{lib → krill/lib}/get_gateway.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_gateway.js +0 -0
- /package/dist/{lib → krill/lib}/get_hostname.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_hostname.js +0 -0
- /package/dist/{lib → krill/lib}/get_netmask.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_netmask.js +0 -0
- /package/dist/{lib → krill/lib}/get_password.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_password.js +0 -0
- /package/dist/{lib → krill/lib}/get_userfullname.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_userfullname.js +0 -0
- /package/dist/{lib → krill/lib}/get_username.d.ts +0 -0
- /package/dist/{lib → krill/lib}/get_username.js +0 -0
- /package/dist/{lib → krill/lib}/kill_me_softly.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_address_type.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_address_type.js +0 -0
- /package/dist/{lib → krill/lib}/select_filesystem_type.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_installation_device.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_interface.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_interface.js +0 -0
- /package/dist/{lib → krill/lib}/select_keyboard_layout.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_keyboard_model.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_keyboard_option.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_keyboard_variant.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_languages.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_regions.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_regions.js +0 -0
- /package/dist/{lib → krill/lib}/select_zones.d.ts +0 -0
- /package/dist/{lib → krill/lib}/select_zones.js +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ./src/classes/xorriso-command.ts
|
|
3
|
+
* penguins-eggs v.10.0.0 / ecmascript 2020
|
|
4
|
+
* author: Piero Proietti
|
|
5
|
+
* email: piero.proietti@gmail.com
|
|
6
|
+
* license: MIT
|
|
7
|
+
*/
|
|
8
|
+
// packages
|
|
9
|
+
import fs from 'node:fs';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import Pacman from '../pacman.js';
|
|
12
|
+
import Utils from '../utils.js';
|
|
13
|
+
// _dirname
|
|
14
|
+
const __dirname = path.dirname(new URL(import.meta.url).pathname);
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param cryptedclone
|
|
18
|
+
* @returns cmd 4 mkiso
|
|
19
|
+
*/
|
|
20
|
+
export async function xorrisoCommand(clone = false, cryptedclone = false) {
|
|
21
|
+
if (this.verbose) {
|
|
22
|
+
console.log('Ovary: xorrisoCommand');
|
|
23
|
+
}
|
|
24
|
+
const prefix = this.settings.config.snapshot_prefix;
|
|
25
|
+
let typology = '';
|
|
26
|
+
// typology is applied only with standard egg-of
|
|
27
|
+
if (prefix.slice(0, 7) === 'egg-of_') {
|
|
28
|
+
if (clone) {
|
|
29
|
+
typology = '_clone';
|
|
30
|
+
}
|
|
31
|
+
else if (cryptedclone) {
|
|
32
|
+
typology = '_crypted';
|
|
33
|
+
}
|
|
34
|
+
if (fs.existsSync('/usr/bin/eui-start.sh')) {
|
|
35
|
+
typology += '_EUI';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const postfix = Utils.getPostfix();
|
|
39
|
+
this.settings.isoFilename = prefix + this.volid + '_' + Utils.uefiArch() + typology + postfix;
|
|
40
|
+
//
|
|
41
|
+
const output = this.settings.config.snapshot_mnt + this.settings.isoFilename;
|
|
42
|
+
let command = '';
|
|
43
|
+
// const appid = `-appid "${this.settings.distro.distroId}" `
|
|
44
|
+
// const publisher = `-publisher "${this.settings.distro.distroId}/${this.settings.distro.codenameId}" `
|
|
45
|
+
// const preparer = '-preparer "prepared by eggs <https://penguins-eggs.net>" '
|
|
46
|
+
let isoHybridMbr = '';
|
|
47
|
+
if (this.settings.config.make_isohybrid) {
|
|
48
|
+
const isolinuxFile = this.settings.distro.syslinuxPath + '/isohdpfx.bin';
|
|
49
|
+
if (fs.existsSync(isolinuxFile)) {
|
|
50
|
+
isoHybridMbr = `-isohybrid-mbr ${isolinuxFile}`;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
Utils.warning(`Can't create isohybrid image. File: ${isolinuxFile} not found. \nThe resulting image will be a standard iso file`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (Pacman.packageIsInstalled('genisoimage')) {
|
|
57
|
+
this.genisoimage = true;
|
|
58
|
+
command = `genisoimage \
|
|
59
|
+
-iso-level 3 \
|
|
60
|
+
-allow-limited-size \
|
|
61
|
+
-joliet-long \
|
|
62
|
+
-r \
|
|
63
|
+
-V ${this.volid} \
|
|
64
|
+
-cache-inodes \
|
|
65
|
+
-J \
|
|
66
|
+
-l \
|
|
67
|
+
-b isolinux/isolinux.bin \
|
|
68
|
+
-c isolinux/boot.cat \
|
|
69
|
+
-no-emul-boot \
|
|
70
|
+
-boot-load-size 4 \
|
|
71
|
+
-boot-info-table \
|
|
72
|
+
-eltorito-alt-boot \
|
|
73
|
+
-e boot/grub/efi.img \
|
|
74
|
+
-no-emul-boot \
|
|
75
|
+
-o ${output} ${this.settings.iso_work}`;
|
|
76
|
+
return command;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* xorriso
|
|
80
|
+
*/
|
|
81
|
+
// uefi_opt="-uefi_elToritoAltBoot-alt-boot -e boot/grub/efi.img -isohybrid-gpt-basdat -no-emul-boot"
|
|
82
|
+
let uefi_elToritoAltBoot = '';
|
|
83
|
+
let uefi_e = '';
|
|
84
|
+
let uefi_isohybridGptBasdat = '';
|
|
85
|
+
let uefi_noEmulBoot = '';
|
|
86
|
+
if (this.settings.config.make_efi) {
|
|
87
|
+
uefi_elToritoAltBoot = '-eltorito-alt-boot';
|
|
88
|
+
uefi_e = '-e boot/grub/efi.img';
|
|
89
|
+
uefi_isohybridGptBasdat = '-isohybrid-gpt-basdat';
|
|
90
|
+
uefi_noEmulBoot = '-no-emul-boot';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* L'immagine efi è efi.img ed è
|
|
94
|
+
* presente in boot/grub/efi.img
|
|
95
|
+
* per cui:
|
|
96
|
+
* -append_partition 2 0xef efi.img
|
|
97
|
+
* --efi-boot efi.img
|
|
98
|
+
* non sono necessari
|
|
99
|
+
*/
|
|
100
|
+
command = `xorriso -as mkisofs \
|
|
101
|
+
-J \
|
|
102
|
+
-joliet-long \
|
|
103
|
+
-l \
|
|
104
|
+
-iso-level 3 \
|
|
105
|
+
${isoHybridMbr} \
|
|
106
|
+
-partition_offset 16 \
|
|
107
|
+
-V ${this.volid} \
|
|
108
|
+
-b isolinux/isolinux.bin \
|
|
109
|
+
-c isolinux/boot.cat \
|
|
110
|
+
-no-emul-boot \
|
|
111
|
+
-boot-load-size 4 \
|
|
112
|
+
-boot-info-table \
|
|
113
|
+
${uefi_elToritoAltBoot} \
|
|
114
|
+
${uefi_e} \
|
|
115
|
+
${uefi_isohybridGptBasdat} \
|
|
116
|
+
${uefi_noEmulBoot} \
|
|
117
|
+
-o ${output} ${this.settings.iso_work}`;
|
|
118
|
+
return command;
|
|
119
|
+
}
|
package/dist/classes/ovary.d.ts
CHANGED
|
@@ -5,11 +5,28 @@
|
|
|
5
5
|
* email: piero.proietti@gmail.com
|
|
6
6
|
* license: MIT
|
|
7
7
|
*/
|
|
8
|
-
import { IAddons, IExcludes } from '../interfaces/index.js';
|
|
9
8
|
import CliAutologin from './cli-autologin.js';
|
|
10
9
|
import Incubator from './incubation/incubator.js';
|
|
11
10
|
import Settings from './settings.js';
|
|
12
|
-
import
|
|
11
|
+
import { fertilization } from './ovary.d/fertilization.js';
|
|
12
|
+
import { produce } from './ovary.d/produce.js';
|
|
13
|
+
import { bindLiveFs, uBindLiveFs } from './ovary.d/bind-live-fs.js';
|
|
14
|
+
import { bindVfs, ubindVfs } from './ovary.d/bind-vfs.js';
|
|
15
|
+
import { editLiveFs } from './ovary.d/edit-live-fs.js';
|
|
16
|
+
import { makeSquashfs, addRemoveExclusion } from './ovary.d/make-squashfs.js';
|
|
17
|
+
import { makeEfi } from './ovary.d/make-efi.js';
|
|
18
|
+
import { xorrisoCommand } from './ovary.d/xorriso-commend.js';
|
|
19
|
+
import { createXdgAutostart } from './ovary.d/create-xdg-autostart.js';
|
|
20
|
+
import { merged, mergedAndOverlay } from './ovary.d/merged.js';
|
|
21
|
+
import { makeIso } from './ovary.d/make-iso.js';
|
|
22
|
+
import { initrdAlpine, initrdArch, initrdDebian, initrdDracut } from './ovary.d/initrd.js';
|
|
23
|
+
import { userCreateLive } from './ovary.d/user-create-live.js';
|
|
24
|
+
import { syslinux } from './ovary.d/syslinux.js';
|
|
25
|
+
import { usersRemove } from './ovary.d/users-remove.js';
|
|
26
|
+
import { makeDotDisk } from './ovary.d/make-dot-disk.js';
|
|
27
|
+
import { kernelCopy } from './ovary.d/kernel-copy.js';
|
|
28
|
+
import { liveCreateStructure } from './ovary.d/live-create-structure.js';
|
|
29
|
+
import { finished } from './ovary.d/finished.js';
|
|
13
30
|
/**
|
|
14
31
|
* Ovary:
|
|
15
32
|
*/
|
|
@@ -30,169 +47,31 @@ export default class Ovary {
|
|
|
30
47
|
toNull: string;
|
|
31
48
|
verbose: boolean;
|
|
32
49
|
volid: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
createUserLive(): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
createXdgAutostart(theme: string | undefined, myAddons: IAddons, myLinks?: string[], noicons?: boolean): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* editLiveFs
|
|
67
|
-
* - Truncate logs, remove archived log
|
|
68
|
-
* - Allow all fixed drives to be mounted with pmount
|
|
69
|
-
* - Enable or disable password login trhough ssh for users (not root)
|
|
70
|
-
* - Create an empty /etc/fstab
|
|
71
|
-
* - Blanck /etc/machine-id
|
|
72
|
-
* - Add some basic files to /dev
|
|
73
|
-
* - Clear configs from /etc/network/interfaces, wicd and NetworkManager and netman
|
|
74
|
-
*/
|
|
75
|
-
editLiveFs(clone?: boolean, cryptedclone?: boolean): Promise<void>;
|
|
76
|
-
/**
|
|
77
|
-
* @returns {boolean} success
|
|
78
|
-
*/
|
|
79
|
-
fertilization(snapshot_prefix?: string, snapshot_basename?: string, theme?: string, compression?: string, nointeratctive?: boolean): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* finished = show the results
|
|
82
|
-
* @param scriptOnly
|
|
83
|
-
*/
|
|
84
|
-
finished(scriptOnly?: boolean): void;
|
|
85
|
-
/**
|
|
86
|
-
* mkinitfs()
|
|
87
|
-
*/
|
|
88
|
-
initrdAlpine(): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* mkinitcpio()
|
|
91
|
-
*/
|
|
92
|
-
initrdArch(): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* mkinitramfs() Debian
|
|
95
|
-
*/
|
|
96
|
-
initrdDebian(verbose?: boolean): Promise<void>;
|
|
97
|
-
/**
|
|
98
|
-
* dracut() Fedora/Openmamba/Opensuse/Voidlinux
|
|
99
|
-
*/
|
|
100
|
-
initrdDracut(): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* syslinux: da syspath
|
|
103
|
-
*/
|
|
104
|
-
syslinux(theme?: string): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* kernelCopy
|
|
107
|
-
*/
|
|
108
|
-
kernelCopy(): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Crea la struttura della workdir
|
|
111
|
-
*/
|
|
112
|
-
liveCreateStructure(): Promise<void>;
|
|
113
|
-
/**
|
|
114
|
-
* makeDotDisk
|
|
115
|
-
*/
|
|
116
|
-
makeDotDisk(info?: string, mksquashfs?: string, mkisofs?: string): void;
|
|
117
|
-
/**
|
|
118
|
-
* makeEFI
|
|
119
|
-
*/
|
|
120
|
-
makeEfi(theme?: string): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* makeIso
|
|
123
|
-
* cmd: cmd 4 xorriso
|
|
124
|
-
*/
|
|
125
|
-
makeIso(cmd: string, scriptOnly?: boolean): Promise<void>;
|
|
126
|
-
/**
|
|
127
|
-
* squashFs: crea in live filesystem.squashfs
|
|
128
|
-
*/
|
|
129
|
-
makeSquashfs(scriptOnly?: boolean, unsecure?: boolean): Promise<string>;
|
|
130
|
-
/**
|
|
131
|
-
* Ritorna true se c'è bisogno del mount --bind
|
|
132
|
-
*
|
|
133
|
-
* Ci sono tre tipologie:
|
|
134
|
-
*
|
|
135
|
-
* - normal solo la creazione della directory, nessun mount
|
|
136
|
-
* - merged creazione della directory e mount ro
|
|
137
|
-
* - mergedAndOverlay creazione directory, overlay e mount rw
|
|
138
|
-
* - copied: creazione directory e copia
|
|
139
|
-
*/
|
|
140
|
-
merged(dir: string): boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Restituisce true per le direcory da montare con overlay
|
|
143
|
-
*
|
|
144
|
-
* Ci sono tre tipologie:
|
|
145
|
-
*
|
|
146
|
-
* - normal solo la creazione della directory, nessun mount
|
|
147
|
-
* - merged creazione della directory e mount ro
|
|
148
|
-
* - mergedAndOverlay creazione directory, overlay e mount rw
|
|
149
|
-
*
|
|
150
|
-
* @param dir
|
|
151
|
-
*/
|
|
152
|
-
mergedAndOverlay(dir: string): boolean;
|
|
153
|
-
/**
|
|
154
|
-
* produce
|
|
155
|
-
* @param clone
|
|
156
|
-
* @param cryptedclone
|
|
157
|
-
* @param scriptOnly
|
|
158
|
-
* @param yolkRenew
|
|
159
|
-
* @param release
|
|
160
|
-
* @param myAddons
|
|
161
|
-
* @param nointeractive
|
|
162
|
-
* @param noicons
|
|
163
|
-
* @param unsecure
|
|
164
|
-
* @param verbose
|
|
165
|
-
*/
|
|
166
|
-
produce(clone: boolean | undefined, cryptedclone: boolean | undefined, scriptOnly: boolean | undefined, yolkRenew: boolean | undefined, release: boolean | undefined, myAddons: IAddons, myLinks: string[], excludes: IExcludes, nointeractive?: boolean, noicons?: boolean, unsecure?: boolean, verbose?: boolean): Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
*
|
|
169
|
-
* @param cmd
|
|
170
|
-
*/
|
|
171
|
-
tryCatch(cmd?: string): Promise<void>;
|
|
172
|
-
/**
|
|
173
|
-
* ubind del fs live
|
|
174
|
-
* @param verbose
|
|
175
|
-
*/
|
|
176
|
-
uBindLiveFs(): Promise<void>;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @param verbose
|
|
180
|
-
*/
|
|
181
|
-
ubindVfs(): Promise<void>;
|
|
182
|
-
/**
|
|
183
|
-
* fill
|
|
184
|
-
*/
|
|
185
|
-
usersFill(): Promise<Users[]>;
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @param cryptedclone
|
|
189
|
-
* @returns cmd 4 mkiso
|
|
190
|
-
*/
|
|
191
|
-
xorrisoCommand(clone?: boolean, cryptedclone?: boolean): Promise<string>;
|
|
192
|
-
/**
|
|
193
|
-
* Creazione link desktop per lxde
|
|
194
|
-
* @param name
|
|
195
|
-
* @param icon
|
|
196
|
-
*/
|
|
197
|
-
private lxdeLink;
|
|
50
|
+
uuid: string;
|
|
51
|
+
fertilization: typeof fertilization;
|
|
52
|
+
produce: typeof produce;
|
|
53
|
+
bindLiveFs: typeof bindLiveFs;
|
|
54
|
+
bindVfs: typeof bindVfs;
|
|
55
|
+
editLiveFs: typeof editLiveFs;
|
|
56
|
+
makeEfi: typeof makeEfi;
|
|
57
|
+
makeSquashfs: typeof makeSquashfs;
|
|
58
|
+
addRemoveExclusion: typeof addRemoveExclusion;
|
|
59
|
+
xorrisoCommand: typeof xorrisoCommand;
|
|
60
|
+
createXdgAutostart: typeof createXdgAutostart;
|
|
61
|
+
merged: typeof merged;
|
|
62
|
+
mergedAndOverlay: typeof mergedAndOverlay;
|
|
63
|
+
makeIso: typeof makeIso;
|
|
64
|
+
initrdAlpine: typeof initrdAlpine;
|
|
65
|
+
initrdArch: typeof initrdArch;
|
|
66
|
+
initrdDebian: typeof initrdDebian;
|
|
67
|
+
initrdDracut: typeof initrdDracut;
|
|
68
|
+
userCreateLive: typeof userCreateLive;
|
|
69
|
+
syslinux: typeof syslinux;
|
|
70
|
+
uBindLiveFs: typeof uBindLiveFs;
|
|
71
|
+
ubindVfs: typeof ubindVfs;
|
|
72
|
+
usersRemove: typeof usersRemove;
|
|
73
|
+
makeDotDisk: typeof makeDotDisk;
|
|
74
|
+
kernelCopy: typeof kernelCopy;
|
|
75
|
+
liveCreateStructure: typeof liveCreateStructure;
|
|
76
|
+
finished: typeof finished;
|
|
198
77
|
}
|