index : docker | |
Archlinux32 docker scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-11 20:31:55 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-11 20:31:55 +0100 |
commit | edc904677360952532bd5770f14960c311bf0873 (patch) | |
tree | bd6b115400f16b86b6aeb86e981852e87e13df11 | |
parent | 5b555493981dc95785e2e9958e0cf2484f98c7af (diff) |
-rwxr-xr-x | mkimage-arch.sh | 11 |
diff --git a/mkimage-arch.sh b/mkimage-arch.sh index 0afb4c1..c1ec11b 100755 --- a/mkimage-arch.sh +++ b/mkimage-arch.sh @@ -5,9 +5,12 @@ set -e # adapt to the flavour of Archlinux32 you need -#ARCHITECTURE=pentium4 +ARCHITECTURE=pentium4 #ARCHITECTURE=i686 -ARCHITECTURE=i486 +#ARCHITECTURE=i486 + +#DOCKER=docker +DOCKER=podman hash pacstrap &>/dev/null || { echo "Could not find pacstrap. Run pacman -S arch-install-scripts" @@ -136,7 +139,7 @@ mknod -m 666 $DEV/ptmx c 5 2 ln -sf /proc/self/fd $DEV/fd umount $MOUNTPOINT -tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | docker import - $DOCKER_IMAGE_NAME -docker run --rm -t $DOCKER_IMAGE_NAME echo Success. +tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | $DOCKER import - $DOCKER_IMAGE_NAME +$DOCKER run --rm -t $DOCKER_IMAGE_NAME echo Success. rmdir $MOUNTPOINT rm -rf $ROOTFS |