initscripts.postinst 446 B

12345678910111213
  1. if true; then
  2. if [ -n "$D" ]; then
  3. OPTS="--root=$D"
  4. fi
  5. for SERVICE in banner bootmisc checkfs checkroot devpts dmesg hostname mountall mountnfs populate-volatile read-only-rootfs-hook rmnologin sysfs urandom; do
  6. systemctl $OPTS mask $SERVICE.service
  7. done
  8. fi
  9. # Delete any old volatile cache script, as directories may have moved
  10. if [ -z "$D" ]; then
  11. rm -f "/etc/volatile.cache"
  12. fi