Skip to content

Commit

Permalink
Merge pull request #93 from mlehtima/bootdevice
Browse files Browse the repository at this point in the history
[configs] Add bootdevice symlinks to udev rules. Needed on most new devices.
  • Loading branch information
mlehtima committed Jun 3, 2017
2 parents 6550d6e + 399101b commit 160a9cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sparse/lib/udev/rules.d/998-droid-system.rules
Expand Up @@ -11,3 +11,5 @@ SUBSYSTEM=="misc", KERNEL=="log_system", SYMLINK+="alog/system"
SUBSYSTEM=="misc", KERNEL=="log_main", SYMLINK+="alog/main"

ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", IMPORT{program}="/bin/sh /lib/udev/platform-device $env{DEVPATH}", SYMLINK+="block/platform/$env{ANDROID_BLOCK_DEVICE}/by-name/$env{ID_PART_ENTRY_NAME}"

ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", IMPORT{program}="/bin/sh /lib/udev/platform-device $env{DEVPATH}", SYMLINK+="block/bootdevice/by-name/$env{ID_PART_ENTRY_NAME}"

0 comments on commit 160a9cf

Please sign in to comment.