mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-01 18:58:20 +00:00
rfs: make sure /tmp is writable at the configuring stage
deb packages may wrongly make it unwritable Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
@@ -392,6 +392,8 @@ class OnlRfsBuilder(object):
|
||||
onlu.execute('sudo cp %s %s' % (os.path.join(os.getenv('ONL'), 'tools', 'scripts', 'base-files.postinst'),
|
||||
os.path.join(dir_, 'var', 'lib', 'dpkg', 'info', 'base-files.postinst')));
|
||||
|
||||
# make sure /tmp is writable
|
||||
OnlRfsSystemAdmin.chmod('1777', '%s/tmp' % dir_)
|
||||
script = os.path.join(dir_, "tmp/configure.sh")
|
||||
with open(script, "w") as f:
|
||||
os.chmod(script, 0700)
|
||||
|
||||
Reference in New Issue
Block a user