penguins-eggs 10.0.33 → 10.0.36
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 +192 -192
- package/README.md +33 -33
- package/addons/eggs/theme/livecd/isolinux.main.alpine.cfg +1 -19
- package/conf/distros/fedora/README.md +3 -0
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/bootloader-config.sh +40 -0
- package/conf/distros/fedora/calamares/calamares-modules/bootloader-config/module.yml +9 -0
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/cleanup.sh +13 -0
- package/conf/distros/fedora/calamares/calamares-modules/cleanup/module.yml +9 -0
- package/conf/distros/fedora/calamares/modules/bootloader.yml +57 -0
- package/conf/distros/fedora/calamares/modules/displaymanager.yml +23 -0
- package/conf/distros/fedora/calamares/modules/finished.yml +5 -0
- package/conf/distros/fedora/calamares/modules/fstab.yml +12 -0
- package/conf/distros/fedora/calamares/modules/locale.yml +98 -0
- package/conf/distros/fedora/calamares/modules/luksopenswaphookcfg.yml +5 -0
- package/conf/distros/fedora/calamares/modules/machineid.yml +17 -0
- package/conf/distros/fedora/calamares/modules/mount.yml +56 -0
- package/conf/distros/fedora/calamares/modules/packages.yml +6 -0
- package/conf/distros/fedora/calamares/modules/partition.yml +242 -0
- package/conf/distros/fedora/calamares/modules/removeuser.yml +15 -0
- package/conf/distros/fedora/calamares/modules/unpackfs.yml +6 -0
- package/conf/distros/fedora/calamares/modules/users.yml +18 -0
- package/conf/distros/fedora/calamares/modules/welcome.yml +19 -0
- package/conf/distros/fedora/calamares/settings.yml +57 -0
- package/dist/classes/cli-autologin.js +12 -1
- package/dist/classes/distro.js +4 -7
- package/dist/classes/families/alpine.d.ts +0 -4
- package/dist/classes/families/alpine.js +0 -8
- package/dist/classes/families/archlinux.d.ts +0 -4
- package/dist/classes/families/archlinux.js +3 -9
- package/dist/classes/families/debian.d.ts +0 -4
- package/dist/classes/families/debian.js +0 -7
- package/dist/classes/families/fedora.d.ts +0 -4
- package/dist/classes/families/fedora.js +0 -6
- package/dist/classes/families/opensuse.d.ts +0 -4
- package/dist/classes/families/opensuse.js +0 -9
- package/dist/classes/incubation/fisherman-helper/packages.js +1 -1
- package/dist/classes/incubation/incubator.js +8 -0
- package/dist/classes/ovary.js +28 -19
- package/dist/classes/pacman.d.ts +1 -1
- package/dist/classes/pacman.js +16 -24
- package/dist/classes/tailor.js +4 -4
- package/dist/classes/utils.js +26 -8
- package/dist/commands/calamares.js +39 -39
- package/dist/krill/modules/add-user.js +7 -5
- package/dist/krill/modules/bootloader-config.js +26 -0
- package/dist/krill/modules/bootloader.js +8 -1
- package/dist/krill/modules/del-live-user.js +2 -2
- package/dist/krill/modules/locale-cfg.js +0 -3
- package/dist/krill/sequence.js +110 -38
- package/dracut/README.md +5 -79
- package/dracut/dracut.conf +3 -3
- package/dracut/dracut.conf.d/01-live.conf +8 -0
- package/dracut/test.sh +40 -0
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +4 -4
- package/mkinitfs/initramfs-init.in +1039 -0
- package/mkinitfs/sidecar.sh +52 -0
- package/package.json +11 -11
- package/dist/classes/families/mockup.d.ts +0 -60
- package/dist/classes/families/mockup.js +0 -79
- package/dracut/dracut.conf.d/90overlayfs.conf +0 -5
- package/dracut/dracut.conf.d/99custom.conf +0 -4
- package/dracut/install-dracut-99custom +0 -1
- package/dracut/usr/lib/dracut/modules.d/99custom/init-live.sh +0 -4
- package/dracut/usr/lib/dracut/modules.d/99custom/module-setup.sh +0 -15
- package/dracut/usr/lib/dracut/modules.d/99custom/mount-live.sh +0 -25
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
myopts="alpinelivesquashfs alpinelivelabel autodetect_serial chart cow_spacesize
|
|
2
|
+
cryptroot cryptdm cryptheader cryptoffset cryptdiscards cryptkey debug_init
|
|
3
|
+
ds init init_args keep_apk_new modules pkgs quiet root_size root usbdelay ip
|
|
4
|
+
alpine_repo apkovl splash blacklist overlaytmpfs overlaytmpfsflags rootfstype
|
|
5
|
+
rootflags nbd resume resume_offset s390x_net dasd ssh_key BOOTIF zfcp
|
|
6
|
+
uevent_buf_size aoe aoe_iflist aoe_mtu wireguard"
|
|
7
|
+
|
|
8
|
+
# sidecar start
|
|
9
|
+
#
|
|
10
|
+
# insert just after: $MOCK mount -t tmpfs -o $rootflags tmpfs $sysroot
|
|
11
|
+
# NOTE: remember to add alpinelivesquashfs alpinelivelabel cow_spacesize to myopt
|
|
12
|
+
# insert at live 748
|
|
13
|
+
####################################################################################
|
|
14
|
+
if [ -n "${KOPT_alpinelivelabel}" ]; then
|
|
15
|
+
devicelive=$(blkid | grep "${KOPT_alpinelivelabel}" | awk -F: '{print $1}')
|
|
16
|
+
fstype=$(blkid | grep "${KOPT_alpinelivelabel}" | awk -F' ' '{for(i=1;i<=NF;i++) if ($i ~ /TYPE/) print $i}' | awk -F'"' '{print $2}')
|
|
17
|
+
|
|
18
|
+
clear
|
|
19
|
+
echo "Penguins' eggs: sidecar"
|
|
20
|
+
echo "======================="
|
|
21
|
+
echo "booting from: $devicelive"
|
|
22
|
+
echo "- fstype: $fstype"
|
|
23
|
+
echo "- label: $KOPT_alpinelivelabel"
|
|
24
|
+
echo "- filesystem.squashfs: $KOPT_alpinelivesquashfs"
|
|
25
|
+
echo "- cow_spacesize: $KOPT_cow_spacesize NOT_USED!"
|
|
26
|
+
sleep 5
|
|
27
|
+
|
|
28
|
+
# Creating mountpoint
|
|
29
|
+
mkdir /mnt
|
|
30
|
+
|
|
31
|
+
# mount /dev/sr0
|
|
32
|
+
mount -t $fstype ${devicelive} /mnt
|
|
33
|
+
|
|
34
|
+
# mount filesystem squashfs on /media/root-ro
|
|
35
|
+
mkdir -p /media/root-ro
|
|
36
|
+
mount -t squashfs ${KOPT_alpinelivesquashfs} /media/root-ro
|
|
37
|
+
|
|
38
|
+
# mount tmpfs on /media/root-rw
|
|
39
|
+
mkdir -p /media/root-rw
|
|
40
|
+
mount -t tmpfs root-tmpfs /media/root-rw
|
|
41
|
+
|
|
42
|
+
# creare i punti di montaggio necessari
|
|
43
|
+
mkdir -p /media/root-rw/work
|
|
44
|
+
mkdir -p /media/root-rw/root
|
|
45
|
+
|
|
46
|
+
# mount overlayfs on /sysroot
|
|
47
|
+
mount -t overlay overlay -o lowerdir=/media/root-ro,upperdir=/media/root-rw/root,workdir=/media/root-rw/work $sysroot
|
|
48
|
+
|
|
49
|
+
# just a dummy value for /etc/machine-id
|
|
50
|
+
echo 21733847458759515a19bd2466cdd5de | tee /sysroot/etc/machine-id
|
|
51
|
+
fi
|
|
52
|
+
# sidecar emd #####################################################################
|
package/package.json
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"name": "penguins-eggs",
|
|
3
3
|
"shortName": "eggs",
|
|
4
4
|
"description": "A remaster system tool, compatible with Arch, Debian, Devuan, Ubuntu and others",
|
|
5
|
-
"version": "10.0.
|
|
5
|
+
"version": "10.0.36",
|
|
6
6
|
"author": "Piero Proietti",
|
|
7
7
|
"bin": {
|
|
8
8
|
"eggs": "./bin/run.js"
|
|
9
9
|
},
|
|
10
10
|
"bugs": "https://github.com/pieroproietti/penguins-eggs/issues",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@oclif/core": "^4.0.
|
|
13
|
-
"@oclif/plugin-autocomplete": "^3.2.
|
|
14
|
-
"@oclif/plugin-help": "^6.2.
|
|
15
|
-
"@oclif/plugin-version": "^2.2.
|
|
12
|
+
"@oclif/core": "^4.0.21",
|
|
13
|
+
"@oclif/plugin-autocomplete": "^3.2.3",
|
|
14
|
+
"@oclif/plugin-help": "^6.2.11",
|
|
15
|
+
"@oclif/plugin-version": "^2.2.12",
|
|
16
16
|
"ansis": "^3.3.2",
|
|
17
|
-
"axios": "^1.7.
|
|
17
|
+
"axios": "^1.7.7",
|
|
18
18
|
"chalk": "^5.3.0",
|
|
19
19
|
"cli-cursor": "^4.0.0",
|
|
20
|
-
"debug": "^4.3.
|
|
20
|
+
"debug": "^4.3.7",
|
|
21
21
|
"ink": "^5.0.1",
|
|
22
22
|
"inquirer": "^9.3.6",
|
|
23
23
|
"js-yaml": "^4.1.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@oclif/prettier-config": "^0.2.1",
|
|
35
35
|
"@oclif/test": "^4.0.9",
|
|
36
|
-
"@types/chai": "^4.3.
|
|
36
|
+
"@types/chai": "^4.3.19",
|
|
37
37
|
"@types/debug": "^4.1.12",
|
|
38
38
|
"@types/inquirer": "^9.0.7",
|
|
39
39
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"@types/netmask": "^2.0.5",
|
|
43
43
|
"@types/node": "^20.16.1",
|
|
44
44
|
"@types/node-static": "^0.7.11",
|
|
45
|
-
"@types/react": "^18.3.
|
|
45
|
+
"@types/react": "^18.3.5",
|
|
46
46
|
"@types/shelljs": "^0.8.15",
|
|
47
47
|
"chai": "^5.1.1",
|
|
48
48
|
"eslint": "^8.57.0",
|
|
49
49
|
"eslint-config-oclif": "^5.2.1",
|
|
50
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
50
|
+
"eslint-config-oclif-typescript": "^3.1.11",
|
|
51
51
|
"eslint-config-prettier": "^9.1.0",
|
|
52
52
|
"mocha": "^10.7.3",
|
|
53
|
-
"oclif": "^4.14.
|
|
53
|
+
"oclif": "^4.14.30",
|
|
54
54
|
"perrisbrewery": "^10.0.1",
|
|
55
55
|
"prettier": "^3.3.3",
|
|
56
56
|
"shx": "^0.3.4",
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ./src/classes/families/mockup.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
|
-
/**
|
|
9
|
-
* Mockup
|
|
10
|
-
* @remarks all the utilities
|
|
11
|
-
*/
|
|
12
|
-
export default class Mockup {
|
|
13
|
-
/**
|
|
14
|
-
* Mockup: calamaresInstall
|
|
15
|
-
*/
|
|
16
|
-
static calamaresInstall(verbose?: boolean): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Mockup: calamaresPolicies
|
|
19
|
-
*/
|
|
20
|
-
static calamaresPolicies(): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Mockup: calamaresRemove
|
|
23
|
-
*/
|
|
24
|
-
static calamaresRemove(verbose?: boolean): Promise<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* Mockup: isInstalledWayland
|
|
27
|
-
* @returns true if wayland is installed
|
|
28
|
-
*/
|
|
29
|
-
static isInstalledWayland(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Mockup: isInstalledXorg
|
|
32
|
-
* @returns true if xorg is installed
|
|
33
|
-
*/
|
|
34
|
-
static isInstalledXorg(): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Mockup: packageInstall
|
|
37
|
-
* Install the package packageName
|
|
38
|
-
* @param packageName {string}
|
|
39
|
-
* @returns {boolean} True if success
|
|
40
|
-
*/
|
|
41
|
-
static packageInstall(packageName: string): Promise<boolean>;
|
|
42
|
-
/**
|
|
43
|
-
* Mockup: packageIsInstalled
|
|
44
|
-
* restuisce VERO se il pacchetto è installato
|
|
45
|
-
* @param packageName
|
|
46
|
-
*/
|
|
47
|
-
static packageIsInstalled(packageName: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Mockup: packagePacmanAvailable
|
|
50
|
-
* restuisce VERO se il pacchetto è installato
|
|
51
|
-
* @param packageName
|
|
52
|
-
*/
|
|
53
|
-
static packagePacmanAvailable(packageName: string): Promise<boolean>;
|
|
54
|
-
/**
|
|
55
|
-
* Mockup: packagePacmanLast
|
|
56
|
-
* @param packageName
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
static packagePacmanLast(packageName: string): Promise<string>;
|
|
60
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ./src/classes/families/mockup.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
|
-
/**
|
|
9
|
-
* Mockup
|
|
10
|
-
* @remarks all the utilities
|
|
11
|
-
*/
|
|
12
|
-
export default class Mockup {
|
|
13
|
-
/**
|
|
14
|
-
* Mockup: calamaresInstall
|
|
15
|
-
*/
|
|
16
|
-
static async calamaresInstall(verbose = false) { }
|
|
17
|
-
/**
|
|
18
|
-
* Mockup: calamaresPolicies
|
|
19
|
-
*/
|
|
20
|
-
static async calamaresPolicies() { }
|
|
21
|
-
/**
|
|
22
|
-
* Mockup: calamaresRemove
|
|
23
|
-
*/
|
|
24
|
-
static async calamaresRemove(verbose = true) {
|
|
25
|
-
const removed = false;
|
|
26
|
-
return removed;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Mockup: isInstalledWayland
|
|
30
|
-
* @returns true if wayland is installed
|
|
31
|
-
*/
|
|
32
|
-
static isInstalledWayland() {
|
|
33
|
-
return this.packageIsInstalled('xwayland');
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Mockup: isInstalledXorg
|
|
37
|
-
* @returns true if xorg is installed
|
|
38
|
-
*/
|
|
39
|
-
static isInstalledXorg() {
|
|
40
|
-
return this.packageIsInstalled('xorg-server-common');
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Mockup: packageInstall
|
|
44
|
-
* Install the package packageName
|
|
45
|
-
* @param packageName {string}
|
|
46
|
-
* @returns {boolean} True if success
|
|
47
|
-
*/
|
|
48
|
-
static async packageInstall(packageName) {
|
|
49
|
-
const retVal = false;
|
|
50
|
-
return retVal;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Mockup: packageIsInstalled
|
|
54
|
-
* restuisce VERO se il pacchetto è installato
|
|
55
|
-
* @param packageName
|
|
56
|
-
*/
|
|
57
|
-
static packageIsInstalled(packageName) {
|
|
58
|
-
const installed = false;
|
|
59
|
-
return installed;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Mockup: packagePacmanAvailable
|
|
63
|
-
* restuisce VERO se il pacchetto è installato
|
|
64
|
-
* @param packageName
|
|
65
|
-
*/
|
|
66
|
-
static async packagePacmanAvailable(packageName) {
|
|
67
|
-
const available = false;
|
|
68
|
-
return available;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Mockup: packagePacmanLast
|
|
72
|
-
* @param packageName
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
static async packagePacmanLast(packageName) {
|
|
76
|
-
const version = '';
|
|
77
|
-
return version;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sudo cp usr/* /usr/ -R
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
mount_live() {
|
|
4
|
-
# Trova il dispositivo CD-ROM
|
|
5
|
-
for device in $(ls /dev/sr*); do
|
|
6
|
-
if mount -r $device /mnt; then
|
|
7
|
-
break
|
|
8
|
-
fi
|
|
9
|
-
done
|
|
10
|
-
|
|
11
|
-
# Monta il filesystem squashfs in RO
|
|
12
|
-
if [ -e /mnt/live/filesystem.squashfs ]; then
|
|
13
|
-
mkdir -p /run/rootro
|
|
14
|
-
mount -t squashfs -o ro /mnt/live/filesystem.squashfs /run/rootro
|
|
15
|
-
fi
|
|
16
|
-
|
|
17
|
-
# Monta il filesystem union (overlay)
|
|
18
|
-
if [ -d /run/rootro ]; then
|
|
19
|
-
mkdir -p /run/root-rw /run/overlay
|
|
20
|
-
mount -t tmpfs -o rw,noatime,mode=755 tmpfs /run/root-rw
|
|
21
|
-
mount -t overlay -o lowerdir=/run/rootro,upperdir=/run/root-rw,workdir=/run/overlay overlay /sysroot
|
|
22
|
-
fi
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
mount_live
|