mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
work around busybox blkid
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
4f899dde0d
commit
6f8ecb38f1
@ -12,7 +12,7 @@ MAGIC="boot2docker, please format-me"
|
|||||||
|
|
||||||
# If there is a partition with `boot2docker-data` as its label, use it and be
|
# If there is a partition with `boot2docker-data` as its label, use it and be
|
||||||
# very happy. Thus, you can come along if you feel like a room without a roof.
|
# very happy. Thus, you can come along if you feel like a room without a roof.
|
||||||
BOOT2DOCKER_DATA=`blkid -o device -l -t LABEL=$LABEL`
|
BOOT2DOCKER_DATA=`blkid | grep -e "LABEL=\"$LABEL\"" | head -n 1 | sed 's/:.*//'`
|
||||||
echo $BOOT2DOCKER_DATA
|
echo $BOOT2DOCKER_DATA
|
||||||
if [ ! -n "$BOOT2DOCKER_DATA" ]; then
|
if [ ! -n "$BOOT2DOCKER_DATA" ]; then
|
||||||
echo "Is the disk unpartitioned?, test for the 'boot2docker format-me' string"
|
echo "Is the disk unpartitioned?, test for the 'boot2docker format-me' string"
|
||||||
|
Loading…
Reference in New Issue
Block a user