sudo build needs host network (rootful podman)
This commit is contained in:
@@ -10,6 +10,7 @@ build() {
|
|||||||
--pull \
|
--pull \
|
||||||
--layers \
|
--layers \
|
||||||
--format oci \
|
--format oci \
|
||||||
|
--network=host \
|
||||||
.
|
.
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@@ -31,6 +32,7 @@ mkImage() {
|
|||||||
-it \
|
-it \
|
||||||
--privileged \
|
--privileged \
|
||||||
--pull=newer \
|
--pull=newer \
|
||||||
|
--network=host \
|
||||||
--security-opt label=type:unconfined_t \
|
--security-opt label=type:unconfined_t \
|
||||||
-v ./config.toml:/config.toml:ro \
|
-v ./config.toml:/config.toml:ro \
|
||||||
-v ./output:/output \
|
-v ./output:/output \
|
||||||
|
|||||||
@@ -19,10 +19,6 @@ lang en_US
|
|||||||
keyboard de
|
keyboard de
|
||||||
timezone Europe/Berlin
|
timezone Europe/Berlin
|
||||||
network --device=enp1s0 --bootproto=static --ip=192.168.178.3 --netmask=255.255.255.0 --gateway=192.168.178.1 --nameserver=1192.168.178.8
|
network --device=enp1s0 --bootproto=static --ip=192.168.178.3 --netmask=255.255.255.0 --gateway=192.168.178.1 --nameserver=1192.168.178.8
|
||||||
# Basic partitioning
|
|
||||||
clearpart --all --initlabel --disklabel=gpt --drives=sda
|
|
||||||
reqpart --add-boot
|
|
||||||
part / --grow --fstype ext4
|
|
||||||
|
|
||||||
# Here's where we reference the container image to install - notice the kickstart
|
# Here's where we reference the container image to install - notice the kickstart
|
||||||
# has no `%packages` section! What's being installed here is a container image.
|
# has no `%packages` section! What's being installed here is a container image.
|
||||||
|
|||||||
Reference in New Issue
Block a user