5 echo "Disabling swapon"
7 # Disable swapon to avoid initscripts to setup swap space.
8 # Rationale: security-in-depth model.
12 # Move any /sbin/swapon installed by any package out of the way,
13 # now (--rename) as well for any future one (hint: apt-get upgrade...).
14 dpkg-divert
--rename --add /sbin
/swapon
16 # Install a custom noop swapon executable instead.
17 cat > $SWAPON << 'EOF'