[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:
parent
530d225fcd
commit
772c3612c7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user