Skip to content

Commit

Permalink
add /var/lib/docker mount
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Feb 13, 2020
1 parent 2480907 commit 3307057
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions createPartitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,34 @@ n
p
3
+500M
n
p
4
+500M
w
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
Expand Down

0 comments on commit 3307057

Please sign in to comment.