fix placeholder func, faster home populate

This commit is contained in:
Christopher Laprise 2019-08-01 18:50:20 -04:00
parent d877085494
commit 850843e7c0
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -46,7 +46,7 @@ privdirs_add=""
# Placeholder function: Runs at end
vm_boot_finish() { }
vm_boot_finish() { return; }
# Run rc file commands if they exist
@ -211,10 +211,11 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
case "$subdir" in
"home"|"home/"|"home/user"|"home/user/")
echo "Populating home dir"
#chown user:user $rw/home/user
rm -rf /home/user $rw/home/user
mount --bind $rw/home /home
mkhomedir_helper user
mv /home/user $rw/home
#mv /home/user $rw/home
umount /home
;;
esac
done