Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/halium: fix super partition detection logic (#40)
"test -n" just checks if "the length of STRING is nonzero", which obviously is wrong when the existence of a path is in question. Replace it with "test -b" which is true if "FILE exists and is block special" Initramfs test on Volla Phone X23: / # ls -l /dev/disk/by-partlabel/super lrwxrwxrwx 1 0 0 11 May 13 13:37 /dev/disk/by-partlabel/super -> ../../sdc57 / # [ -b /dev/disk/by-partlabel/super ] && echo true true
- Loading branch information