Skip to content

Commit

Permalink
added quoata install function
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 16, 2024
1 parent d37555c commit f95ebc1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,19 @@ def installQuota(self,):
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 /'
Expand Down

0 comments on commit f95ebc1

Please sign in to comment.