summaryrefslogtreecommitdiff
path: root/roles/installer/debian/preseed/templates/partman_early-command.sh.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-07-02 02:00:06 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-07-02 02:00:06 +0200
commitee6843f01f382ac81a6ea48f7c3c074e56b5a996 (patch)
tree0be72909d15e1b3d80adb2df3d7f2308649abadb /roles/installer/debian/preseed/templates/partman_early-command.sh.j2
parentminor improvment for vm resource config (diff)
another attempt to tackle root_lvm_size issue
Diffstat (limited to 'roles/installer/debian/preseed/templates/partman_early-command.sh.j2')
-rw-r--r--roles/installer/debian/preseed/templates/partman_early-command.sh.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/installer/debian/preseed/templates/partman_early-command.sh.j2 b/roles/installer/debian/preseed/templates/partman_early-command.sh.j2
index 9c720e92..6187fbea 100644
--- a/roles/installer/debian/preseed/templates/partman_early-command.sh.j2
+++ b/roles/installer/debian/preseed/templates/partman_early-command.sh.j2
@@ -31,3 +31,9 @@ debconf-set grub-installer/bootdev "$disks"
## https://unix.stackexchange.com/questions/510445/install-grub-bootloader-dynamically-to-multiple-disks
. /usr/share/debconf/confmodule
db_fset grub-installer/bootdev seen true
+
+
+## wipe existing partition tables, 1M should be enough to get rid of them
+for disk in $disks; do
+ dd if=/dev/zero "of=$disk" bs=32768 count=32
+done