Skip to content

Commit b54328d

Browse files
authored
Update create_inst.sh
1 parent 73b029a commit b54328d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

create_inst.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ fi
8383
(cd _inst_dir && rm -f _vars.sh common_functions.sh _sing_inst_script.sh _pre_install.sh _post_install.sh $CW_TEMPLATE_SCRIPT _extra_user_envs.sh _extra_envs.sh )
8484

8585

86-
if [[ ! ${CW_NO_FIX_PERM+defined} ]];then
87-
print_info "Fixing permissions within squashfs image" 2
88-
chmod -R ugo+rwX _inst_dir
89-
fi
90-
9186
# Save old configurations in separate folder so they are not overridden
9287
counter=0
9388
while true;do
@@ -104,6 +99,13 @@ for fp in "${CW_INSTALLATION_FILE_PATHS[@]}";do
10499
done
105100
#######
106101

102+
103+
104+
if [[ ! ${CW_NO_FIX_PERM+defined} ]];then
105+
print_info "Fixing permissions within squashfs image" 2
106+
chmod -R ugo+rwX _inst_dir
107+
fi
108+
107109
mksquashfs _inst_dir/ _deploy/$CW_SQFS_IMAGE -processors $_cpus $CW_SQFS_OPTIONS
108110

109111
# Check if we need to fix group permissions

0 commit comments

Comments
 (0)