mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Merge pull request #1110 from justincormack/umount-db
Unmount database after copying
This commit is contained in:
commit
aa6fce33fd
@ -17,6 +17,7 @@ start() {
|
|||||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /mnt/db
|
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /mnt/db
|
||||||
[ $? -ne 0 ] && rm -rf /Database && printf "Could not mount configuration database\n" 1>&2 && eend 1
|
[ $? -ne 0 ] && rm -rf /Database && printf "Could not mount configuration database\n" 1>&2 && eend 1
|
||||||
cp -a /mnt/db/branch/master/ro/com.docker.driver.amd64-linux/* /Database
|
cp -a /mnt/db/branch/master/ro/com.docker.driver.amd64-linux/* /Database
|
||||||
|
umount /mnt/db
|
||||||
|
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ start() {
|
|||||||
/sbin/9pmount-vsock listen db /tmp/db
|
/sbin/9pmount-vsock listen db /tmp/db
|
||||||
[ $? -ne 0 ] && rm -rf /Database && printf "Could not mount configuration database\n" 1>&2 && eend 1
|
[ $? -ne 0 ] && rm -rf /Database && printf "Could not mount configuration database\n" 1>&2 && eend 1
|
||||||
cp -a /tmp/db/branch/master/ro/com.docker.driver.amd64-linux/* /Database
|
cp -a /tmp/db/branch/master/ro/com.docker.driver.amd64-linux/* /Database
|
||||||
|
umount /tmp/db
|
||||||
|
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user