From 775b3ace1c12328a993367cece20373de7f645da Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 1 Feb 2016 14:05:09 -0500 Subject: Do not generate error is folders exist. --- components/9990-main.sh | 1 + components/9990-misc-helpers.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/9990-main.sh b/components/9990-main.sh index b324fde..bbf0f10 100755 --- a/components/9990-main.sh +++ b/components/9990-main.sh @@ -191,6 +191,7 @@ Live () Netbase Swap + Vyos exec 1>&6 6>&- diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index fe96387..44381d9 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -1317,8 +1317,8 @@ do_union () # + a workdir to become mounted # + workdir and upperdir to reside under the same mount # + workdir and upperdir to be in separate directories - mkdir "${unionrw}/rw" - mkdir "${unionrw}/work" + mkdir -p "${unionrw}/rw" + mkdir -p "${unionrw}/work" unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work" ;; esac -- cgit v1.2.3