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.
@@ -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.33",
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.5",
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.18",
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.4",
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.26",
53
+ "oclif": "^4.14.27",
54
54
  "perrisbrewery": "^10.0.1",
55
55
  "prettier": "^3.3.3",
56
56
  "shx": "^0.3.4",
@@ -1,3 +0,0 @@
1
- # PUT YOUR CONFIG IN separate files
2
- # in /etc/dracut.conf.d named "<name>.conf"
3
- # SEE man dracut.conf(5) for options
@@ -1,5 +0,0 @@
1
- # /etc/dracut.conf.d/90overlayfs.conf
2
-
3
- # force_drivers+=" overlay "
4
- # dracut[E]: Module 'overlayfs' cannot be installed.
5
- add_dracutmodules+=" overlayfs "
@@ -1,4 +0,0 @@
1
- # /etc/dracut/conf.d/99custom.conf
2
-
3
- # Includi il modulo custom e overlay
4
- add_dracutmodules+=" custom "
@@ -1 +0,0 @@
1
- sudo cp usr/* /usr/ -R
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Esempio di inizializzazioni aggiuntive
4
- echo "Inizializzazioni aggiuntive possono essere aggiunte qui"
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
-
3
- check() {
4
- return 0
5
- }
6
-
7
- depends() {
8
- echo "shutdown"
9
- return 0
10
- }
11
-
12
- install() {
13
- inst_hook cmdline 90 "$moddir/mount-live.sh"
14
- inst_hook pre-mount 50 "$moddir/init-live.sh"
15
- }
@@ -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