Skip to content

Commit f9d4166

Browse files
committed
print mount failures when the passed cmdline fails
Signed-off-by: Zen <[email protected]>
1 parent 8fe3056 commit f9d4166

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)