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