index : docker | |
Archlinux32 docker scripts | gitolite user |
summaryrefslogtreecommitdiff |
-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 |