Merge "Add /mnt/vm and mount tmpfs onto it for early VM" into main

This commit is contained in:
Treehugger Robot 2024-08-09 09:44:10 +00:00 committed by Gerrit Code Review
commit fe4f5a1e6d

View file

@ -648,6 +648,14 @@ on late-fs
chmod 0755 /sys/kernel/tracing
chmod 0755 /sys/kernel/debug/tracing
# Early HALs may use early VM. Mount /mnt/vm before starting such HALs.
mkdir /mnt/vm 0755 root root
mount tmpfs tmpfs /mnt/vm nosuid nodev noexec rw
restorecon /mnt/vm
chown system system /mnt/vm
chmod 0770 /mnt/vm
mkdir /mnt/vm/early 0770 system system
# HALs required before storage encryption can get unlocked (FBE)
class_start early_hal