T42 | <edp_17> @elros34 : "sh: getenforce: command not found" | 06:50 |
---|---|---|
T42 | <elros34> should be somwhere in /system | 06:51 |
T42 | <edp_17> Oh, yeah, it was in /system/bin/getenforce: Disabled | 06:55 |
T42 | <elros34> so you disabled selinux | 06:56 |
T42 | <edp_17> Setting the selinux=1 probably wasn't enough. I think there is something about it in defconfig too. | 06:57 |
T42 | <edp_17> I just checked and I have this in BoardConfigCommon.mk: BOARD_KERNEL_CMDLINE := selinux=1 | 06:59 |
T42 | <elros34> selinux=1 is not even needed unless you added =0. On android selinux is enabled | 06:59 |
T42 | <edp_17> In defconfig I still have: CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 | 07:01 |
T42 | <elros34> so you know what was the reason now | 07:01 |
T42 | <edp_17> That line in BoardConfigCommon.mk wasn't there, I've added. Can I remove it? (this: BOARD_KERNEL_CMDLINE := selinux=1) | 07:02 |
T42 | <edp_17> Oh, and what about if I remove both from defconfig: | 07:03 |
T42 | <edp_17> CONFIG_SECURITY_SELINUX_BOOTPARAM=y | 07:03 |
T42 | <elros34> sure you can remove all selinux changes you made, the only relevant may be about setting permissive mode | 07:03 |
T42 | <edp_17> and CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 | 07:03 |
T42 | <edp_17> I see. I have this in defconfig: CONFIG_SECURITY_SELINUX_PERMISSIVE=y (re @elros34: sure you can remove ...) | 07:04 |
T42 | <edp_17> I'll remove the other two *BOOTPARAM* and *CMDLINE* | 07:05 |
T42 | <edp_17> Thanks and I'll come back with a report. | 07:05 |
T42 | <Masterarson> https://t.me/+3n-HgdvuTFViNzJk | 07:08 |
T42 | <edp_17> @elros34 : Another question. When I try changing password of defaultuser, I get this: "passwd: Unknown user name 'defaultuser'." | 07:09 |
T42 | <elros34> not sure, maybe it's not created. defaultuser/nemo is set up at first boot but not sure at which point | 07:11 |
T42 | <edp_17> I see. | 07:12 |
T42 | <edp_17> There were some missing libs: "libandroidicu.so" "libicui18n.so" "libicuuc.so" | 07:12 |
T42 | <elros34> it's common and you can find solution even in collabedit | 07:13 |
T42 | <edp_17> and added file_contexts and policy.30 files from device to /etc/selinux | 07:13 |
T42 | <edp_17> Before I did this two fixes, defaultuser was created. I mean the start process went further than this time. | 07:14 |
T42 | <edp_17> So, it looks like fixing those two problems ended up the device is crashing earlier than before. I'll install the new kernel to see what happens. | 07:16 |
T42 | <edp_17> @elros34 : Enabling selinux has solved a few things. The device started the init setup process. Then crashed before setting up the login pin. It rebooted and continued the init process and crashed again when started to search for wifi networks. It rebooted and now it sucks on the sailfish os logo. | 07:33 |
T42 | <edp_17> I'll rebuild/install droid-hal packages aswell to see whether that makes any difference. | 07:34 |
T42 | <edp_17> When the device is attached to the PC it keeps chrashing/rebooting in the middle of init process. | 07:38 |
T42 | <edp_17> And there are some more missing libs: https://paste.ubuntu.com/p/KB3ghwfYGg/ | 07:39 |
T42 | <elros34> do you have ld.config*.txt somewhere in /system? | 07:43 |
T42 | <edp_17> Yes, I have two: | 08:44 |
T42 | <edp_17> /system/etc/ld.config.txt | 08:44 |
T42 | <edp_17> /system/etc/swcodec/ld.config.txt | 08:44 |
T42 | <edp_17> @elros34 ^ | 08:45 |
T42 | <edp_17> @elros34 : Tried to get better logcat after reboot: https://paste.ubuntu.com/p/PvB93cH7MY/ | 08:51 |
T42 | <edp_17> Now the /system/bin/getenforce returns Permissive | 08:55 |
T42 | <edp_17> @elros34 : Do you remember the error I mentioned regarding lib{dl,c,m}.so files when building droid-hal? The solution was to add these three unlink lines into droid-hal-device.inc: https://paste.ubuntu.com/p/QdKD7wmnGx/ | 11:08 |
T42 | <edp_17> The script couldn't copy the files because they were there as symlinks already. | 11:08 |
T42 | <edp_17> I've build a new image and installed it on device. That's sorted the reboot issue and the initial process went through fine. However, there are problems. | 11:33 |
T42 | <edp_17> The main one is with media.swcodec: https://paste.ubuntu.com/p/P3JJ7WkZ58/ | 11:35 |
T42 | <edp_17> I got that log when turned wifi on. | 11:37 |
T42 | <elros34> @edp_17 compare that ld.config.txt in /system with ld.config.29.txt in sparse-10. If they are similar then adjust droid-hal-early-init.sh | 18:06 |
T42 | <elros34> next time use either '| grep -v audit' when generating logs or figure out how to suppress this useless spam | 18:28 |
T42 | <edp_17> I'll compare them. Can I turn that audit off somehow? Is necessary to keep it on? | 18:44 |
T42 | <elros34> I do not know, maybe audit=0 will not break selinux but I didn't try | 18:50 |
T42 | <edp_17> I've nothing to lose so will try that. :) Thanks. | 18:57 |
T42 | <b100dian> I remember this :( https://piggz.co.uk/sailfishos-porters-archive/index.php?log=2021-04-28.txt#line6 (re @edp_17: The script couldn't ...) | 19:43 |
T42 | <b100dian> Always thought it was PBKAC | 19:44 |
Mister_Magister | tfw you click random logs and find yourself | 19:54 |
Mister_Magister | good old PEBKAC | 19:55 |
T42 | <edp_17> What's PBKAC or PEBKAC? | 22:40 |
T42 | <edp_17> @b100dian : What was your solution for those lib{dl,c,m}.so files? | 22:41 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!