Files
start-os/container-runtime/rmcontainer.sh
2024-03-20 13:32:57 -06:00

12 lines
165 B
Bash

#!/bin/bash
set -e
rootfs=$1
if [ -z "$rootfs" ]; then
>&2 echo "usage: $0 <container rootfs path>"
exit 1
fi
umount --recursive $rootfs
rm -rf $rootfs/..