I realized this would cause issues for auto updates since binary will be in /usr/bin and data in /usr/share/factorio and those locations are owned by root.
Using chown I could get around this for the update but I got into unexpected issues that I cannot resolve myself regarding file integrity checks.
The following was done to prepare the update:
- Downloaded update zip file and put in ~/
- Completely reinstalled factorio to 0.11.22
Code: Select all
chown devilholk /usr/bin/factorio
chown -R devilholk /usr/share/factorio
#Make sure factorio looks where I want it to
mkdir -p t/x64
cd t/x64
ln /usr/bin/factorio
cd ..
./x64/factorio --apply-update ~/core-linux64-0.11.22-0.12.0-update.zip > factorio_errorlog.txt
How can I investigate why the integrity check is failing?
The contents of factorio_errorlog.txt is the following:
Code: Select all
0.000 2016-03-28 10:09:00; Factorio 0.11.22 (Build 14011, linux64)
0.000 Operating system: Linux
0.000 Read data path: /usr/share/factorio
0.000 Write data path: /home/devilholk/.factorio
0.000 Binaries path: /home/devilholk/t
0.354 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all]
0.406 Loading mod core 0.0.0 (data.lua)
0.426 Loading mod base 0.11.22 (data.lua)
0.664 Loading mod base 0.11.22 (data-updates.lua)
1.337 Initial atlas bitmap size is 16384
1.343 Created atlas bitmap 16384x6556
8.835 Info Updater.cpp:717: Downloading https://www.factorio.com/updater/get-available-versions?username=devilholk&token=<private>&apiVersion=2
9.918 30 packages available to download (experimental updates disabled).
9.948 Factorio initialised
9.949 Info Updater.cpp:355: Applying update /home/devilholk/core-linux64-0.11.22-0.12.0-update.zip
10.278 Error Util.cpp:43: File /home/devilholk/t/x64/factorio has unexpected content