From 33070579071e0f3a3023cd5b9c0a382dacb8bd5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Thu, 13 Feb 2020 09:51:39 +0100 Subject: [PATCH] add /var/lib/docker mount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- createPartitions.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/createPartitions.sh b/createPartitions.sh index 2af3c39e7..d73fb22b6 100644 --- a/createPartitions.sh +++ b/createPartitions.sh @@ -18,6 +18,11 @@ n p 3 ++500M +n +p +4 + +500M w EOF @@ -25,18 +30,22 @@ EOF mkfs.xfs /dev/sdc1 mkfs.xfs /dev/sdc2 mkfs.xfs /dev/sdc3 + mkfs.xfs /dev/sdc4 mkdir -p /var/log/audit + mkdir -p /var/lib/docker { echo '/dev/sdc1 /var/log xfs defaults 0 0' echo '/dev/sdc2 /var/log/audit xfs defaults 0 0' echo '/dev/sdc3 /home xfs defaults 0 0' + echo '/dev/sdc4 /var/lib/docker xfs defaults 0 0' } >> /etc/fstab mount -t xfs /dev/sdc1 /var/log mount -t xfs /dev/sdc2 /var/log/audit mount -t xfs /dev/sdc3 /home + mount -t xfs /dev/sdc4 /var/lib/docker if grep '^vagrant' /etc/passwd; then mkdir -p /home/vagrant