From 34b5dc134ed6ba8dc6f922915c894fb0a176f0b5 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 3 Jan 2014 01:41:05 +0100 Subject: bugfix --- include/partition.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/partition.sh b/include/partition.sh index 7e9fbed..fda2734 100755 --- a/include/partition.sh +++ b/include/partition.sh @@ -19,9 +19,14 @@ set -ue . /lib/fripost-partman/base.sh +device=/dev/sda + +# Umount existing mountpoints +for mp in $(sed -nr "s#^$device\S*\s+(\S+).*#\1#p" /proc/mounts); do + umount "$mp" +done # Wipe the disk -device=/dev/sda fripost_wipe $device db_get fripost/encrypt -- cgit v1.2.3