Skip to content

Commit be1cee1

Browse files
pods (#566)
* non ci sto capendo più niente! * resyd * lmde in locale * download deb, tarballs and arch * ritocchi * check if podman is installed * podman
1 parent 34390e8 commit be1cee1

23 files changed

Lines changed: 161 additions & 40 deletions

CHANGELOG.D/changelog-eggs-v8.x.x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ I worked in pacman: rewrote pacman.packages() for installation than removal.
5454
### eggs-8.17-7
5555
* live-config was reintroduced in package dependencies
5656

57-
I worked in pacman.links4Debs trying to reorder the code. Inserted in eggs config the display of the type of eggs package in use, corrected the isDebPackage(), isNpmPackage() functions in pacman. live-config is not taken because it's part of the version dependencies (bionic doesn't want it - but I should check)
57+
I worked in pacman.links4Debs trying to reorder the code. Inserted in eggs config the display of the type of eggs package in use, corrected the isPackage(), isNpmPackage() functions in pacman. live-config is not taken because it's part of the version dependencies (bionic doesn't want it - but I should check)
5858

5959
### eggs-8.17-6
6060
* added Debian 12 bookworm

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ penguins-eggs
1313
# Changelog
1414
Versions are listed on reverse order, the first is the last one.
1515

16+
## penguins-eggs-10.1.1
17+
I added a new command: `eggs pods` to create containers with `podman` and, from these create minimal live ISO images. To use it, just give the command: `eggs pods [almalinux/ archlinux/ debian/ devuan /fedora /opensuse /ubuntu]`.
18+
1619
## penguins-eggs-10.1.0
1720
There are many changes to eggs in this update, but most of them are let's say: “underground,” you won't realize it!
1821

pods/almalinux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
cd $CMD_PATH
77

8+
FAMILY_ID="fedora"
89
IMAGE=almalinux
910
source podman.command.sh

pods/archlinux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
cd $CMD_PATH
77

8+
FAMILY_ID="archlinux"
89
IMAGE="archlinux:latest"
910
source podman.command.sh arch

pods/ci/kernel-overlay-install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ if [[ -f /etc/os-release ]]; then
8080
apt install -y libcap2-bin
8181

8282
else
83-
echo "distro not supported"
84-
exit 1
83+
# DEFAULT Debian
84+
echo "install the package of capsh"
85+
apt update -y
86+
apt install linux-image-amd64 -y
87+
apt install -y kmod
88+
apt install -y libcap2-bin
8589
fi
8690
fi
8791

pods/ci/penguins-eggs-install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ if [ -f /etc/os-release ]; then
106106
elif [[ "$ID" == "arch" ]]; then
107107
arch_install
108108
else
109-
tarballs_install
109+
if [[ "$FAMILY_ID" == "debian" ]]; then
110+
debs_install
111+
else
112+
tarballs_install
113+
fi
110114
fi
111115
fi

pods/ci/run

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -x
44
export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
echo $PROJECT_NAME
7+
echo "FAMILY_ID $FAMILY_ID"
78

89
if [ -f /etc/os-release ]; then
910
. /etc/os-release
@@ -26,7 +27,8 @@ if [ -f /etc/os-release ]; then
2627
elif [[ "$ID" == "ubuntu" ]]; then
2728
source /ci/*run-on-ubuntu.sh
2829
else
29-
echo "distro not supported"
30-
exit 1
30+
if [[ "$FAMILY_ID" == "debian" ]]; then
31+
source /ci/*run-on-debian.sh
32+
fi
3133
fi
3234
fi

pods/ci/run-on-debian.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ source ./kernel-overlay-install.sh
4343
source ./penguins-eggs-install.sh
4444

4545
# systemd
46-
systemctl set-default multi-user.target
46+
systemctl set-default graphical.target
47+
#systemctl set-default multi-user.target
4748
systemctl enable getty@tty1.service
4849

4950
# execute eggs

pods/debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if [ -f /etc/os-release ]; then
1717
fi
1818
fi
1919

20+
FAMILY_ID="debian"
2021
IMAGE="debian:12"
2122
source podman.command.sh debian
2223

pods/devuan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if [ -f /etc/os-release ]; then
1919
fi
2020
fi
2121

22+
FAMILY_ID="debian"
2223
IMAGE="devuan/devuan:daedalus"
2324
source podman.command.sh devuan
2425

0 commit comments

Comments
 (0)