From f95ebc102a7d6dfff23ea270cc8dd84c38472c42 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 16 Sep 2024 13:13:40 +0500 Subject: [PATCH] added quoata install function --- install/install.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install/install.py b/install/install.py index 59c0e630b..8e04a9999 100755 --- a/install/install.py +++ b/install/install.py @@ -193,16 +193,19 @@ class preFlightsChecks: fResult = result.stdout.rstrip('\n') print(repr(result.stdout.rstrip('\n'))) - command = f"apt-get install linux-modules-extra-{fResult}" + command = 'uname -r' + ffResult = subprocess.run(command, capture_output=True, text=True, shell=True) + ffResult = result.stdout.rstrip('\n') + + command = f"apt-get install linux-modules-extra-{ffResult}" preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) ### - - command = f'modprobe quota_v1 -S {fResult}' + command = f'modprobe quota_v1 -S {ffResult}' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) - command = f'modprobe quota_v2 -S {fResult}' + command = f'modprobe quota_v2 -S {ffResult}' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) command = f'quotacheck -ugm /'