]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/templates/instance-debootstrap/hooks/40-dsa-setup-swapfile.erb
See if we still need instance-debootstrap
[dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 40-dsa-setup-swapfile.erb
diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/40-dsa-setup-swapfile.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/40-dsa-setup-swapfile.erb
deleted file mode 100755 (executable)
index e8cd1d1..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. common.sh
-
-if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
-  echo "Missing target directory"
-  exit 1
-fi
-
-dd if=/dev/zero of="$TARGET/swapfile" bs=1024k count=512
-chmod 400 "$TARGET/swapfile"
-mkswap "$TARGET/swapfile"
-
-cat >> "$TARGET/etc/fstab" <<EOF
-/swapfile none swap sw 0 0
-EOF
-
-exit 0
-
-# vim:set syn=sh: