[suse] Add DOCKER_DEV to /etc/fstab

After kube-minions restart, we would like to have mounted
DOCKER_DEV again on minion nodes.

Change-Id: I3777c3584e00a397f9604eae8ce0f628d2dcb190
Closes-Bug: #1663526
This commit is contained in:
Michal Jura 2017-02-10 10:18:22 +01:00 committed by yatin
parent 530d225fcd
commit 772c3612c7
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ mkfs.btrfs $DOCKER_DEV
mount $DOCKER_DEV /var/lib/docker
# update /etc/fstab with DOCKER_DEV
if ! `grep -q /var/lib/docker /etc/fstab`; then
grep /var/lib/docker /etc/mtab | head -1 >> /etc/fstab
fi
# make sure we pick up any modified unit files
systemctl daemon-reload