Skip to content

Commit 90d4589

Browse files
committed
/data mountpoint pattern match in fstab
- Update inir_recovery_device_link() to use regex for more specific pattern matching: only process non-commented-out lines Signed-off-by: shadichy <[email protected]>
1 parent e4ae949 commit 90d4589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.recovery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function init_misc()
2626
function inir_recovery_device_link()
2727
{
2828
# Insert /data to recovery.fstab
29-
if grep /dev/block/by-name/userdata "$(ls /fstab.*)" >> /etc/recovery.fstab; then
29+
if grep -E '^\s*[^#].+ /data ' "$(ls /fstab.*)" >> /etc/recovery.fstab; then
3030
set_property sys.recovery.data_is_part true
3131
fi
3232

0 commit comments

Comments
 (0)