Remove immutable attr on /etc/sysconfig/nfs | Use chown instead of chmod

This commit is contained in:
Abraham Gonzalez 2020-01-16 23:53:48 +00:00
parent 6ed8fc7db1
commit be0c963fa5
1 changed files with 3 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class FireSimServerNode(FireSimNode):
runcommand = self.server_hardware_config.get_boot_simulation_command( runcommand = self.server_hardware_config.get_boot_simulation_command(
slotno, all_macs, all_rootfses, all_linklatencies, all_maxbws, slotno, all_macs, all_rootfses, all_linklatencies, all_maxbws,
self.server_profile_interval, all_bootbins, self.trace_enable, self.server_profile_interval, all_bootbins, self.trace_enable,
self.trace_select, self.trace_start, self.trace_end, self.trace_select, self.trace_start, self.trace_end,
self.autocounter_readrate, all_shmemportnames) self.autocounter_readrate, all_shmemportnames)
run(runcommand) run(runcommand)
@ -279,7 +279,8 @@ class FireSimServerNode(FireSimNode):
rfsname = """/home/centos/sim_slot_{}/{}""".format(simserverindex, rfsname) rfsname = """/home/centos/sim_slot_{}/{}""".format(simserverindex, rfsname)
run("""sudo mount {blockfile} {mntpt}""".format(blockfile=rfsname, mntpt=mountpoint)) run("""sudo mount {blockfile} {mntpt}""".format(blockfile=rfsname, mntpt=mountpoint))
run("""sudo chmod -Rf 777 {}""".format(mountpoint)) run("""sudo chattr -i {}/etc/sysconfig/nfs""".format(mountpoint))
run("""sudo chown -R centos {}""".format(mountpoint))
## copy back files from inside the rootfs ## copy back files from inside the rootfs
with warn_only(), StreamLogger('stdout'), StreamLogger('stderr'): with warn_only(), StreamLogger('stdout'), StreamLogger('stderr'):