Merge branch '20464-linux-6-1-99-force-all-tests' into 'devel'
[tails.git] / config / chroot_local-includes / sbin / swapon.tails
blob22d684c28de7ae57271b02ba544c4999b2656a9f
1 #!/bin/sh
3 set -eu
5 cd /
7 for param in "$@"; do
8 if echo "${param}" | grep -v '^/dev/zram' | grep -q /; then
9 echo >&2 "Setting up swap is only allowed for zram devices"
10 exit 1
12 done
14 exec /sbin/swapon.distrib "$@"