Prevent debugfs unmount on debug builds with a persist property
In order to simplify developer/test flow, the persistent property persist.dbg.keep_debugfs_mounted can be set to prevent debugfs from being unmounted on boot. Bug: 184381659 Test: build and boot Change-Id: I714616b361e6c8fb59633ec0763f9bd55af7df0e
This commit is contained in:
parent
d723f21fec
commit
129d8743b9
1 changed files with 2 additions and 1 deletions
|
@ -11,5 +11,6 @@ on early-init && property:ro.product.debugfs_restrictions.enabled=true
|
|||
mount debugfs debugfs /sys/kernel/debug
|
||||
chmod 0755 /sys/kernel/debug
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.product.debugfs_restrictions.enabled=true
|
||||
on property:sys.boot_completed=1 && property:ro.product.debugfs_restrictions.enabled=true && \
|
||||
property:persist.dbg.keep_debugfs_mounted=""
|
||||
umount /sys/kernel/debug
|
||||
|
|
Loading…
Reference in a new issue