Skip to content

Commit b7b6e96

Browse files
authored
Merge pull request #355 from desultory/dev
print mount failures when the passed cmdline fails
2 parents 8fe3056 + f9d4166 commit b7b6e96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ugrd/fs/mounts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ def mount_root(self) -> str:
10241024
rootflags="$(readvar rootflags 'defaults,ro')"
10251025
einfo "Mounting root partition based on /proc/cmdline: $root -t $roottype -o $rootflags"
10261026
if ! mount "$root" "$(readvar MOUNTS_ROOT_TARGET)" -t "$roottype" -o "$rootflags"; then
1027+
klog "[UGRD $(readvar VERSION)] Failed to mount root partition using /proc/cmdline: $root -t $roottype -o $rootflags"
10271028
eerror "Failed to mount the root partition using /proc/cmdline: $root -t $roottype -o $rootflags"
10281029
mount_default_root
10291030
fi

0 commit comments

Comments
 (0)