Bob Mottram 9 年前
父节点
当前提交
961cf68f58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-image-customise

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

@@ -195,7 +195,7 @@ create_generic_image() {
195 195
     # The presence of this file indicates that the initial
196 196
     # setup has not yet been completed
197 197
     touch $rootdir/home/$MY_USERNAME/.initial_setup
198
-    chown $MY_USERNAME:$MY_USERNAME $rootdir/home/$MY_USERNAME/.initial_setup
198
+    chroot $rootdir chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.initial_setup
199 199
     touch $rootdir/root/.initial_setup
200 200
 
201 201
     cat >> $rootdir/home/$MY_USERNAME/.bashrc <<EOF