This is OK release-wise. However, there's one mistake that I can see here:
else mkdir -p /target/home/$TARGET_USERNAME/.local/share/orca + mkdir -p /var/lib/gdm/.local/share/orca echo "import orca.settings" >> /target/home/$TARGET_USERNAME/.local/share/orca/user-settings.py echo "orca.settings.enableSpeech = False" >> /target/home/$TARGET_USERNAME/.local/share/orca/user-settings.py echo "orca.settings.enableBraille = True" >> /target/home/$TARGET_USERNAME/.local/share/orca/user-settings.py chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.local/share/orca - cp -r /home/$TARGET_USERNAME/.local/share/orca /target/var/lib/gdm + cp -r /home/$TARGET_USERNAME/.local/share/orca /target/var/lib/gdm/.local/share/orca chroot /target chown -R gdm.gdm /var/lib/gdm/.local/share/orca fi
This will result in /target/var/lib/gdm/.local/share/orca/orca/ being created. I think if you just don't add that mkdir then it should work?
This is OK release-wise. However, there's one mistake that I can see here:
+ mkdir -p /var/lib/
- cp -r /home/$
+ cp -r /home/$
This will result in /target/ var/lib/ gdm/.local/ share/orca/ orca/ being created. I think if you just don't add that mkdir then it should work?