Browse Source

Revert "Try with no su"

This reverts commit 411e3834e5864aa880473384dad94b4d2d974271.
Bob Mottram 9 years ago
parent
commit
ad501c1083
No account linked to committer's email
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise View File

374
 		if [ ${#CONFIG_FILENAME} -gt 2 ]; then
374
 		if [ ${#CONFIG_FILENAME} -gt 2 ]; then
375
 			cp $CONFIG_FILENAME $rootdir/root/$PROJECT_NAME.cfg
375
 			cp $CONFIG_FILENAME $rootdir/root/$PROJECT_NAME.cfg
376
 			cat $rootdir/root/$PROJECT_NAME.cfg
376
 			cat $rootdir/root/$PROJECT_NAME.cfg
377
-			chroot "$rootdir" $PROJECT_NAME -c /root/$PROJECT_NAME.cfg
377
+			chroot "$rootdir" su -c "$PROJECT_NAME -c /root/$PROJECT_NAME.cfg" - root
378
 		fi
378
 		fi
379
 	fi
379
 	fi
380
 }
380
 }