Skip to content

Commit 4d5ac98

Browse files
pothoschewi
andauthored
Update minimal-init
Co-authored-by: James Le Cuirot <[email protected]>
1 parent fbd693b commit 4d5ac98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

minimal-init

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ elif [ "${usrfstype}" = btrfs ] || [ "${usrfstype}" = auto ]; then
152152
fi
153153
fi
154154
# Only proceed if the source is a path.
155-
if echo "${usr}" | grep -v -q "^/"; then
156-
echo "No mountable /usr partition given (usr='${usr}')" >&2
157-
false # Throw error
158-
fi
155+
case "${usr}" in
156+
/*) : ;;
157+
*) echo "No mountable /usr partition given (usr='${usr}')" >&2
158+
false # Throw error
159+
;;
160+
esac
159161

160162
debug_sh 3/4: before /sysusr mount
161163

0 commit comments

Comments
 (0)