penguins-eggs 10.0.33 → 10.0.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.
- package/.oclif.manifest.json +192 -192
- package/README.md +26 -26
- package/dist/classes/cli-autologin.js +12 -1
- package/dist/classes/families/archlinux.js +3 -2
- package/dist/classes/incubation/fisherman-helper/packages.js +1 -1
- package/dist/classes/ovary.js +19 -13
- package/dist/classes/tailor.js +4 -4
- package/dist/classes/utils.js +13 -3
- package/dracut/README.md +35 -67
- package/dracut/live.conf +8 -0
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +2 -2
- package/mkinitfs/initramfs-init.in +1039 -0
- package/mkinitfs/sidecar.sh +52 -0
- package/package.json +5 -5
- package/dracut/dracut.conf +0 -3
- 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,7 +2,7 @@
|
|
|
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.35",
|
|
6
6
|
"author": "Piero Proietti",
|
|
7
7
|
"bin": {
|
|
8
8
|
"eggs": "./bin/run.js"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@oclif/plugin-help": "^6.2.10",
|
|
15
15
|
"@oclif/plugin-version": "^2.2.11",
|
|
16
16
|
"ansis": "^3.3.2",
|
|
17
|
-
"axios": "^1.7.
|
|
17
|
+
"axios": "^1.7.6",
|
|
18
18
|
"chalk": "^5.3.0",
|
|
19
19
|
"cli-cursor": "^4.0.0",
|
|
20
20
|
"debug": "^4.3.6",
|
|
@@ -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,7 +42,7 @@
|
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint-config-oclif-typescript": "^3.1.9",
|
|
51
51
|
"eslint-config-prettier": "^9.1.0",
|
|
52
52
|
"mocha": "^10.7.3",
|
|
53
|
-
"oclif": "^4.14.
|
|
53
|
+
"oclif": "^4.14.27",
|
|
54
54
|
"perrisbrewery": "^10.0.1",
|
|
55
55
|
"prettier": "^3.3.3",
|
|
56
56
|
"shx": "^0.3.4",
|
package/dracut/dracut.conf
DELETED
|
@@ -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
|