mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
add boot2docker image compatibility
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
c1f6b1c2ad
commit
160f5aff15
@ -23,5 +23,7 @@ start()
|
||||
SWAP=$(fdisk -l ${DRIVE} | grep 'Linux swap' | head -1 | awk '{print $1}')
|
||||
DATA=$(fdisk -l ${DRIVE} | grep 'Linux$' | head -1 | awk '{print $1}')
|
||||
mount ${DATA} /var && swapon ${SWAP} || ERASE_DISKS="${DRIVE}" setup-disk -m data ${DRIVE}
|
||||
# boot2docker compat, has /var and /tmp on partition
|
||||
[ -d /var/var/lib/boot2docker/ ] && mount --bind /var/var /var
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user