summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e1e9d27)
platform_find_rootfspart() fails if the kernel partition comes before the
rootfs partition. The proposed patch fixes this while preserving what I
understand was the original idea: stop at first match.
Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
platform_find_rootfspart() {
local part
for part in "${1%:*}" "${1#*:}"; do
platform_find_rootfspart() {
local part
for part in "${1%:*}" "${1#*:}"; do
- [ "$part" != "$2" ] && echo "$part"; break
+ [ "$part" != "$2" ] && echo "$part" && break