Bob Mottram 9 lat temu
rodzic
commit
961cf68f58
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise Wyświetl plik

@@ -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