Simply remove the tmp dir before creating the symlink. We are doing

chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.
This commit is contained in:
n_hibma 2014-11-21 14:53:42 +00:00
parent a2fcd43154
commit b3dc17b844

View File

@ -421,7 +421,7 @@ setup_nanobsd ( ) (
echo "mount -o ro /dev/${NANO_DRIVE}s3" > conf/default/etc/remount
# Put /tmp on the /var ramdisk (could be symlink already)
test -d tmp && rmdir tmp || nano_rm -f tmp
nano_rm -rf tmp
ln -s var/tmp tmp
) > ${NANO_OBJ}/_.dl 2>&1