From a6293e6098383d7d64cdbb00e42970a24ec2451b Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Fri, 28 May 2021 18:12:28 +0700 Subject: [PATCH] Make directory before mounting. --- src/init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/init b/src/init index 9efd54e..ec267af 100644 --- a/src/init +++ b/src/init @@ -25,6 +25,7 @@ rbind(){ if checkmount $1; then msg "${CHROOT}${1} already mounted." else + mkdir -p "${CHROOT}${1}" mount -R $1 "${CHROOT}${1}" msg "${CHROOT}${1} mounted!" fi @@ -37,6 +38,7 @@ rbind_diff() { if checkmount $2; then msg "${CHROOT}${2} already mounted." else + mkdir -p "${CHROOT}${1}" mount -R $1 "${CHROOT}${2}" msg "${CHROOT}${2} mounted!" fi