Skip to content

Commit

Permalink
feat(fs-lib): fsck_single can now handle PARTLABEL and PARTUUID
Browse files Browse the repository at this point in the history
As an additional benefit, gentoo container now passing test-01.
  • Loading branch information
LaszloGombos authored and johannbg committed Dec 3, 2022
1 parent a86aea6 commit d40617f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules.d/99fs-lib/fs-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ fsck_single() {
local _drv

[ $# -lt 2 ] && return 255
# if UUID= marks more than one device, take only the first one
[ -e "$_dev" ] || _dev=$(devnames "$_dev" | while read -r line || [ -n "$line" ]; do if [ -n "$line" ]; then
echo "$line"
break
fi; done)
_dev=$(readlink -f "$(label_uuid_to_dev "$_dev")")
[ -e "$_dev" ] || return 255
_fs=$(det_fs "$_dev" "$_fs")
fsck_able "$_fs" || return 255
Expand Down

0 comments on commit d40617f

Please sign in to comment.