1 2 3 4
#!/bin/bash set -e mkdir -o "${FAI}/out/" chroot "${target}" dpkg -l > "${FAI}/out/packages.txt"