Merge pull request #3548 from MilhouseVH/le10_fix_ln-sf_race

config/functions: ln -sf is not always thread safe
This commit is contained in:
Christian Hewitt 2019-06-12 06:21:53 +04:00 committed by GitHub
commit 48161002bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1192,7 +1192,7 @@ add_user() {
mkdir -p ${INSTALL}/usr/cache
touch ${INSTALL}/usr/cache/shadow
ln -sf /storage/.cache/shadow ${INSTALL}/etc/shadow
ln -sf /storage/.cache/shadow ${INSTALL}/etc/shadow 2>/dev/null || true
PASSWORD="$2"
if [ "$PASSWORD" = "x" ]; then