From a6ddfbceac2003253753ea1229133eb79ce68877 Mon Sep 17 00:00:00 2001 From: Chris Double Date: Thu, 15 May 2014 18:38:45 +1200 Subject: [PATCH] Add -p to mkdir in build-fhs-chrootenv to prevent error if directory exists --- pkgs/build-support/build-fhs-chrootenv/init.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/build-fhs-chrootenv/init.sh.in b/pkgs/build-support/build-fhs-chrootenv/init.sh.in index 2dfa95219c8..5b0ab94bc4e 100644 --- a/pkgs/build-support/build-fhs-chrootenv/init.sh.in +++ b/pkgs/build-support/build-fhs-chrootenv/init.sh.in @@ -36,9 +36,9 @@ rm $chrootenvDest/etc/pam.d ln -s ../host-etc/static/pam.d $chrootenvDest/etc/pam.d # Symlink Font stuff -mkdir $chrootenvDest/etc/fonts +mkdir -p $chrootenvDest/etc/fonts ln -s ../../host-etc/static/fonts/fonts.conf $chrootenvDest/etc/fonts -mkdir $chrootenvDest/etc/fonts/conf.d +mkdir -p $chrootenvDest/etc/fonts/conf.d ln -s ../../../host-etc/static/fonts/conf.d/00-nixos.conf $chrootenvDest/etc/fonts/conf.d # Create root folder