File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,15 @@ static void lk2nd_scan_devices(void)
3535 if (!bdev -> is_leaf )
3636 continue ;
3737
38- /* Skip partitions without label. */
39- if (NULL == bdev -> label )
40- continue ;
41-
4238 /*
4339 * Skip partitions that are too small to have a boot fs on.
4440 *
4541 * 'boot' partition is explicitly allowed to have a small fs on it
4642 * in case one installs next stage bootloader package (i.e. u-boot)
4743 * there but still wants to make use of lk2nd's device database.
4844 */
49- if (bdev -> size < LK2ND_BOOT_MIN_SIZE && !!strncmp (bdev -> label , "boot" , strlen ("boot" )))
45+ if (bdev -> size < LK2ND_BOOT_MIN_SIZE &&
46+ !(bdev -> label && !strncmp (bdev -> label , "boot" , strlen ("boot" ))))
5047 continue ;
5148
5249 snprintf (mountpoint , sizeof (mountpoint ), "/%s" , bdev -> name );
You can’t perform that action at this time.
0 commit comments