mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-04-25 17:39:15 -04:00
fix placeholder func, faster home populate
This commit is contained in:
parent
d877085494
commit
850843e7c0
@ -46,7 +46,7 @@ privdirs_add=""
|
|||||||
|
|
||||||
|
|
||||||
# Placeholder function: Runs at end
|
# Placeholder function: Runs at end
|
||||||
vm_boot_finish() { }
|
vm_boot_finish() { return; }
|
||||||
|
|
||||||
|
|
||||||
# Run rc file commands if they exist
|
# Run rc file commands if they exist
|
||||||
@ -211,10 +211,11 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
|
|||||||
case "$subdir" in
|
case "$subdir" in
|
||||||
"home"|"home/"|"home/user"|"home/user/")
|
"home"|"home/"|"home/user"|"home/user/")
|
||||||
echo "Populating home dir"
|
echo "Populating home dir"
|
||||||
#chown user:user $rw/home/user
|
|
||||||
rm -rf /home/user $rw/home/user
|
rm -rf /home/user $rw/home/user
|
||||||
|
mount --bind $rw/home /home
|
||||||
mkhomedir_helper user
|
mkhomedir_helper user
|
||||||
mv /home/user $rw/home
|
#mv /home/user $rw/home
|
||||||
|
umount /home
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user