mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-03 03:38:18 +00:00
Check for the existance of /etc/inittab before attempting to modify it.
This commit is contained in:
@@ -517,6 +517,7 @@ rm -f /usr/sbin/policy-rc.d
|
||||
onlu.execute('sudo rm %s' % f,
|
||||
ex=OnlRfsError('Could not remove file %s' % f))
|
||||
|
||||
if os.path.exists(os.path.join(dir_, 'etc/inittab')):
|
||||
if not options.get('ttys', False):
|
||||
f = os.path.join(dir_, 'etc/inittab')
|
||||
ua.chmod('a+w', f)
|
||||
|
||||
Reference in New Issue
Block a user