Fix copying podman containers into ISO

This commit is contained in:
Micah Lee 2021-06-29 14:14:38 -07:00
parent 86fd9706c0
commit a69376006a
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -69,6 +69,7 @@ name="Dangerzone init script"
start_pre() { start_pre() {
# Setup Alpine # Setup Alpine
/sbin/setup-alpine -f /etc/answers.txt -e -q /sbin/setup-alpine -f /etc/answers.txt -e -q
rm /etc/answers.txt
# Create user, give the dangerzone-vm-key ssh access # Create user, give the dangerzone-vm-key ssh access
/usr/sbin/adduser -D -u 1001 user /usr/sbin/adduser -D -u 1001 user
@ -89,7 +90,10 @@ start_pre() {
} }
EOF EOF
# Add the containers to /etc/container-data, temporarily # Fix permissions and add containers to /etc/container-data, temporarily
for WEIRD_FILE in $(find /home/user/.local/share/containers -perm 000); do
chmod 600 $WEIRD_FILE
done
cp -r /home/user/.local/share/containers "$tmp"/etc/container-data cp -r /home/user/.local/share/containers "$tmp"/etc/container-data
# Start cgroups, required by podman # Start cgroups, required by podman