瀏覽代碼

Revert "Try with no su"

This reverts commit 411e3834e5864aa880473384dad94b4d2d974271.
Bob Mottram 8 年之前
父節點
當前提交
ad501c1083
沒有帳戶連結到提交者的電子郵件
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise 查看文件

@@ -374,7 +374,7 @@ continue_installation() {
374 374
 		if [ ${#CONFIG_FILENAME} -gt 2 ]; then
375 375
 			cp $CONFIG_FILENAME $rootdir/root/$PROJECT_NAME.cfg
376 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 378
 		fi
379 379
 	fi
380 380
 }