aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-10-11 04:10:34 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:27:35 +0200
commit129fca26580ae00989b6311d8d7b92e3d6260ea7 (patch)
tree041d85dc1b3d80a2b4c69eaf39fc1dc1b814ad00
parenta924e3cb3de3f5f90ca7744f96cd5660b3705c5f (diff)
LVM need to be installed in /target.
-rwxr-xr-xpartition.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/partition.sh b/partition.sh
index f13c295..a1f0f78 100755
--- a/partition.sh
+++ b/partition.sh
@@ -53,6 +53,7 @@ fripost_encrypt $part_system system_crypt \
# Create logical volumes for /, swap and /home using LVM2
vg=$(hostname)
+apt-install lvm2 || true # LVM need to be installed in the target chroot
pvcreate -ff -y /dev/mapper/system_crypt
vgcreate $vg /dev/mapper/system_crypt