mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-05 09:44:59 +01:00
Create /etc/sysconfig/docker-storage-setup if it does not exist
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com> Closes: #924 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
064d6c503f
commit
d5c6ea2279
@@ -169,6 +169,8 @@ class Storage(Atomic):
|
||||
|
||||
def modify(self):
|
||||
try:
|
||||
if not os.path.exists(self.dss_conf):
|
||||
open(self.dss_conf, 'w').close()
|
||||
shutil.copyfile(self.dss_conf, self.dss_conf_bak)
|
||||
if len(self.args.remove_devices) > 0:
|
||||
self._remove_devices(self.args.remove_devices, only_unused=False)
|
||||
|
||||
Reference in New Issue
Block a user