**** BEGIN LOGGING AT Sat Oct 01 02:59:58 2016 Oct 01 04:48:32 morning Oct 01 04:48:40 OK test with renamed recipes seems to work fine Oct 01 04:49:27 So I'll try to remove them 1:1 from webos-systemd-services to their component and see where it breaks Oct 01 07:02:34 morning Oct 01 07:05:28 Herrie: imho we could do that in service file, just like it was done before in upstart (there is no direct connection between bootmanager and confugurator imho). Oct 01 07:05:44 but just ignore ^ because i'm grumbling from time to time Oct 01 07:06:00 nizovn: Well maybe, just not sure how we would trigger that Oct 01 07:06:26 It needs to be triggered after both first use flag & profile created flag are there... Oct 01 07:06:27 https://github.com/webOS-ports/luna-appmanager/pull/18/files#diff-c36613f4583b38b40e72dd2422b2afc4R169 looks incorrect Oct 01 07:07:01 nizovn: No that actually works Oct 01 07:07:36 hm, isn't the second () false always Oct 01 07:08:34 nizovn: Ah wrong filename there :S Oct 01 07:12:06 nizovn: updated Oct 01 07:13:06 am i right that configurator will be run after any file in /var/luna/preferences is changed? Oct 01 07:13:20 e.g. systemprefs Oct 01 07:15:08 nizovn: Configurator runs twice: 1. early on boot before first use to create necessary stuff for first use. Then when first use is done, teh ran-first-use flag is written by https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/plugin/plugin.cpp#L36 Oct 01 07:15:55 luna-appmanager, bootmanager then runs the createLocalAccount similar as per https://github.com/webOS-ports/app-services/blob/webOS-ports/master/com.palm.service.accounts/files/etc/event.d/createLocalAccount Oct 01 07:17:36 Once that is created it will write the /var/lun/prefernces/first-use-profile-created and we need to run configurator again for the remaining activities as per https://github.com/openwebos/configurator/blob/18ebce9af19d635b9c8765c7165d2ac2e7b007d0/desktop-support/configurator.upstart#L48 Oct 01 07:17:51 This will then add the remaining missing activities and will sort 865 :P Oct 01 07:18:59 seems https://github.com/webOS-ports/luna-appmanager/pull/18/files#diff-c36613f4583b38b40e72dd2422b2afc4R441 will run configurator much more frequently Oct 01 07:21:02 I'll double check the log, but I recall seeing it only did it once Oct 01 07:21:06 Just flashing image now Oct 01 07:21:21 ok Oct 01 07:32:16 nizovn: It seems OK, but I'll double check with added logging to confirm Oct 01 07:33:02 Gimme a few more mins :P Oct 01 07:33:37 btw what is this file for https://github.com/webOS-ports/configurator/blob/webOS-ports/master/files/systemd/configurator-async.service ? is it used ? Oct 01 07:34:24 I guess we can drop that one now ;) Oct 01 07:34:49 this one was starting too early? Oct 01 07:34:56 I think morphis added this one. It runs only on 2nd boot Oct 01 07:35:11 Which caused the issue of the missing activities Oct 01 07:35:23 After first use on 1st boot Oct 01 07:36:45 Should ask feniksa when he's around, he's a lot more familiar with activitymanager & configurator LOL :P Oct 01 07:40:21 I'll first get this systemd reorganizing sorted and will play around a bit then with removing all these upstart bits Oct 01 07:41:41 fwiw, we can make configurator-async to start only after both files are created with 1 systemd file containing 6 lines :P Oct 01 07:42:40 :) Oct 01 07:43:23 I'm in favor of less C++ :P Oct 01 07:50:25 if you want, you can try this https://bpaste.net/show/3d6dd8bc5ce6 Oct 01 07:53:40 well, i'm wrong, it will run on every boot then Oct 01 07:55:54 Morning! Oct 01 07:56:07 Herrie: for your PR for bootmanager, have you tested it? Oct 01 07:57:22 Tofe: In general yes :P Oct 01 07:57:28 Just tested it again, this is the log: https://bpaste.net/show/697e260d299e Oct 01 07:58:13 See lines 3433, 3472, 3483, 3486 and 3500 Oct 01 07:58:18 Seems the sequence is fine Oct 01 07:58:34 And I have 40+ activities afterwards + the 2 files in /var/luna/preferences/ Oct 01 07:58:47 Let me squash the 3 commits Oct 01 07:59:19 yes, looks good Oct 01 08:00:31 OK cleaned up Oct 01 08:00:42 nizovn: You OK with current solution or you have other ideas? Oct 01 08:01:36 Herrie: so if you change e.g. timezone, do you see configurator rerun logs? Oct 01 08:01:51 i'm ok if it works Oct 01 08:03:04 Let me check Oct 01 08:03:18 In First Use or Settings? Oct 01 08:03:31 after first use Oct 01 08:03:44 yes, maybe in settings Oct 01 08:05:06 Doesn't look like it: https://bpaste.net/show/c43b425c7aac Oct 01 08:05:57 ActivityId 39 = com.palm.app.calendar Oct 01 08:06:01 So that makes sense Oct 01 08:06:07 That it would adjust bits there Oct 01 08:08:21 I.e. meeting times Oct 01 08:10:33 is it bad if we run configurator many times? i'm still thinking it's being run on settings change, just doesn't say about that :P Oct 01 08:13:32 nizovn: It should matter really Oct 01 08:13:43 At least I think Oct 01 08:13:55 How come you think it's beign run on settings change? Oct 01 08:15:09 this is executed every time any file in /var/luna/prefereces is changed(but after first use). https://github.com/webOS-ports/luna-appmanager/pull/18/files#diff-c36613f4583b38b40e72dd2422b2afc4R441 Oct 01 08:17:01 ok, i'm wrong, sorry Oct 01 08:17:24 I think when bootmgr goes to NORMAL state this won't apply anymore? Oct 01 08:17:31 yup, sorry Oct 01 08:17:34 :) Oct 01 08:17:45 OK good, well this at least improves a lot of things on first boot :) Oct 01 08:18:43 yup, it's good, thanks :) Oct 01 08:28:49 so ok for merge? Oct 01 08:29:17 yes from my side Oct 01 08:29:33 Then merged :) Oct 01 08:41:51 Morning :) Oct 01 08:42:47 Herrie: Is a build with your new-merged first-use commit likely to boot on my N4? Oct 01 08:44:05 * elvispre has the impression that there have been a few "won't boot" issues lately. Oct 01 08:45:38 elvispre: No there's been only 1 mainly Oct 01 08:45:48 And that was me trying to rework systemd bits Oct 01 08:45:58 But seems that's going to be sorted shortly Oct 01 08:47:11 Herrie: So will it be safe to try the build I have running right now? Oct 01 08:47:21 Should be fine Oct 01 08:47:30 Yay :) Oct 01 08:48:36 Herrie: I'm interested to see what you've done to the buttons in Settings Oct 01 08:48:51 Made them blue :P Oct 01 12:38:28 * DougReeder checks in Oct 01 22:32:22 Tofe, the latest version of Testr should make testing quota easier: https://github.com/webOS-ports/org.webosports.app.testr/pull/35 Oct 01 22:37:05 * DougReeder waves to EricBlade Oct 02 00:47:49 Hey, is http://webos-ports.org/wiki/Build_Custom_LunaSysMgr_for_OWO up to date? Oct 02 01:48:56 Tofe, I rebuild from souces today, and the 1st time I ran the “file writing” test in Testr, the app crashed (wasn’t able to save a log), but thereafter it worked fine. Oct 02 01:49:25 …and file access is working for Serene Notes, too! Thanks much! Oct 02 01:58:20 So, all my automated tests pass! Yay! **** ENDING LOGGING AT Sun Oct 02 02:59:58 2016