Skip to content

Instantly share code, notes, and snippets.

View 89luca89's full-sized avatar

Luca Di Maio 89luca89

View GitHub Profile
@89luca89
89luca89 / podman-to-rootfs.sh
Created February 10, 2023 21:17
Simple script to pull an image and unpack it in a chrootable rootfs
#!/bin/sh
#
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ||
[ -z $1 ] || [ -z $2 ]; then
echo "Usage:"
echo " $0 registry/image:tag /path/to/output"
exit 0
fi