Skip to content

Commit 551858a

Browse files
committed
btrfs: print the kernel and OS versions
1 parent ffeedd9 commit 551858a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build_library/disk_util

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,11 @@ def SudoOutputToConsole(cmd):
773773

774774
def LogBtrfsUsage(mount_point, section=None):
775775
print('Btrfs usage for mount point `%s` %s' % (mount_point, section))
776+
try:
777+
SudoOutputToConsole(['cat', '/etc/os-release'])
778+
SudoOutputToConsole(['uname', '-a'])
779+
except Exception as ex1:
780+
print(ex1)
776781
try:
777782
SudoOutputToConsole(['btrfs', 'fi', 'usage', mount_point])
778783
except Exception as ex:

0 commit comments

Comments
 (0)