@@ -34,10 +34,10 @@ class InstallExpandRootScripts(Task):
34
34
35
35
@classmethod
36
36
def run (cls , info ):
37
- expand_root_script = os .path .join (ASSETS_DIR , 'expand-root.sh ' )
37
+ expand_root_script = os .path .join (ASSETS_DIR , 'expand-root' )
38
38
expand_root_service = os .path .join (ASSETS_DIR , 'expand-root.service' )
39
39
40
- expand_root_script_dest = os .path .join (info .root , 'usr/bin/ expand-root.sh ' )
40
+ expand_root_script_dest = os .path .join (info .root , 'usr/local/sbin/ expand-root' )
41
41
expand_root_service_dest = os .path .join (info .root , 'etc/systemd/system/expand-root.service' )
42
42
43
43
filesystem_type = info .manifest .plugins ['expand_root' ].get ('filesystem_type' )
@@ -49,10 +49,10 @@ def run(cls, info):
49
49
os .chmod (expand_root_script_dest , 0750 )
50
50
shutil .copy (expand_root_service , expand_root_service_dest )
51
51
52
- # Expand out options into expand-root.sh script.
52
+ # Expand out options into expand-root script.
53
53
opts = '%s %s %s' % (root_device , root_partition , filesystem_type )
54
- sed_i (expand_root_service_dest , r'^ExecStart=/usr/bin/ expand-root.sh .*$' ,
55
- 'ExecStart=/usr/bin/ expand-root.sh %s' % opts )
54
+ sed_i (expand_root_service_dest , r'^ExecStart=/usr/local/sbin/ expand-root.*$' ,
55
+ 'ExecStart=/usr/local/sbin/ expand-root %s' % opts )
56
56
57
57
# Enable systemd service
58
58
log_check_call (['chroot' , info .root , 'systemctl' , 'enable' , 'expand-root.service' ])
0 commit comments