summaryrefslogtreecommitdiffstats
path: root/mkosi.build (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-09tools: add one more SPDX license headerYu Watanabe1-1/+3
2018-12-09lgtm: use python3Yu Watanabe1-0/+3
2018-12-09tools: drop unused variableYu Watanabe1-1/+0
2018-12-09hwdb: drop unused imported objectYu Watanabe1-2/+1
2018-12-09hwdb: drop commentYu Watanabe1-1/+0
2018-12-09travis: mount tmpfs on /tmp before running the testsEvgeny Vereshchagin1-0/+3
To judge from https://api.travis-ci.org/v3/job/465547774/log.txt, overlayfs on Travis CI is having trouble delivering inotify events, which is why `test-path` and `test-event` are failing there.
2018-12-09travis: use systemd as PID1 in debian containersEvgeny Vereshchagin1-7/+4
Turns out some tests like `test-execute` are tightly coupled with systemd as PID1 (which should be fixed of course). In the meantime, let's see how it goes.
2018-12-08mount-point: honour AT_SYMLINK_FOLLOW correctlyLennart Poettering1-1/+1
Fixes: #11092
2018-12-08hwdb: Add accelerometer orientation quirk for the PoV P1005W-232 tabletHans de Goede1-0/+4
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2018-12-08hwdb: Add accelerometer orientation quirk for the Prowise PT301 tabletHans de Goede1-0/+6
2018-12-08coding style: reduce text width to 109 charactersZbigniew Jędrzejewski-Szmek4-8/+8
Patches are shown on github with a fixed width (no matter how wide the window is). When line numbers are high (we have some files with 5 digit line numbers), the diff does not fit, and horizontal scrolling must be used when viewing the patch. This is super annoying. Let's reduce the width a bit. I think 109 is still very wide, but at least the github issue should be alleviated.
2018-12-08journal-remote: define main through macroYu Watanabe1-38/+45
Also, this fixes memleaks on failure.
2018-12-08journal-remote: destroy RemoteServer object by using _cleanup_ attributeYu Watanabe3-6/+3
2018-12-08journal-upload: define main through macroYu Watanabe1-29/+24
2018-12-08journal-upload: use _cleanup_ attribute to clear uploaderYu Watanabe1-3/+1
2018-12-08journal-gateway: define main through macroYu Watanabe1-70/+68
2018-12-08journal-gateway: use _cleanup_ attribute to stop microhttpd daemonYu Watanabe2-4/+3
2018-12-08wait-online: define main through macroYu Watanabe1-28/+21
2018-12-08timesync: define main through macroYu Watanabe1-39/+27
2018-12-08network: define main through macroYu Watanabe1-55/+31
2018-12-08resolve: define main through macroYu Watanabe1-45/+26
2018-12-08sd-daemon: add notify_start() and notify_on_cleanup() helper functionYu Watanabe2-0/+23
2018-12-08meson: rename sd_event_c to sd_event_sourcesYu Watanabe1-2/+2
2018-12-07swap: always add in extras when we load a swap unitLennart Poettering1-9/+11
Much like for the mount units we need fields such as the slice initialized by the time we activate the swap, hence when the kernel let's us know about a new swap that appeared we need to initialize the slice in any Swap object we allocated for that right-away, even if we can't read the real unit file for the swap device.
2018-12-07swap: drop return valueLennart Poettering1-1/+1
We don't actually return any valid 'r' here, let's explicitly return 0 here hence instead.
2018-12-07swap: don't propagate issues with processing /proc/swapsLennart Poettering1-5/+2
This follows similar recent changes in mount.c: error should be consider local, and not be propagated.
2018-12-07swap: when loading a unit from /proc/swaps, mark its load state as goodLennart Poettering1-1/+7
This follows similar logic in the mount unit.
2018-12-07swap: split out code adding in additional unit props into a function of its ownLennart Poettering1-50/+63
This adds swap_add_extras() similar to mount_add_extras(). No change in behaviour, just some refactoring.
2018-12-07swap: fix misplaced commentLennart Poettering1-1/+1
2018-12-07swap: flush out state when activating a unit, not when deactivating itLennart Poettering1-6/+11
This is similar to the previous commit which did the same change for mount units.
2018-12-07mount: flush out cycle state on DEAD→MOUNTED only, not the other way roundLennart Poettering1-11/+16
For services (and other units) we generally follow the rule that at the beginning of each cycle, i.e. when the INACTIVE/FAILED state is left for ACTIVATING/ACTIVE we flush out various state variables. Mount units handled this differently so far when the unit state change was effected outside of systemd: in that case these variables would be flushed out when going back to INACTIVE/FAILED already. Let's fix that, and flush out this state always during the activating transition, not during the deactivating transition.
2018-12-07mount: replace three closely related mount flags into a proper flags enumLennart Poettering2-41/+33
We pass these flags around, and even created a structure for them. Let's fix things properly, and make them a flags value of its own.
2018-12-07mount: strdup() device paths we collectLennart Poettering1-3/+4
We never know what the changes triggered by mount_set_state() do to the unit. Let's be safe and copy the device path into our set, so that we are safe against that.
2018-12-07mount: when the kernel reports a mount to be established reset all kinds of ↵Lennart Poettering1-1/+3
load failures It doesn't matter what kind of precise failure we had earlier with loading the unit, let's report that it loaded successfully now, after all the kernel is an OK source for that, like any other.
2018-12-07mount: regenerate all deps whenever a mount's parameters changesLennart Poettering1-24/+10
Whenever we notice a change on an existing /proc/self/mountinfo line, let's update the deps generated from it. For that, let's flush out the old deps generated this way, and add in the new ones. This takes benefit of the fact that today (unlike a comment this patch removes says) we can remove deps in a somewhat reasonable way.
2018-12-07mount: when allocating a Mount object based on /proc/self/mountinfo mark it soLennart Poettering1-0/+7
Let's set 'from_proc_self_mountinfo' right away, since we know its from there. This is important so that when the load queue is dispatched (and thus mount_load() called) this fact is already known.
2018-12-07mount: let mount_add_extras() take care of remote-fs.target depsLennart Poettering1-16/+1
In a previous commit we added logic that mount_add_extras() (or more precisely mount_add_default_dependencies()) adds in dependencies on remote-fs.target and local-fs.target, hence we can drop this from mount_setup_new_unit() and let the usual load queue dispatching take care of this.
2018-12-07mount: use free_and_strdup() over plain strdup()Lennart Poettering1-6/+6
Let's initialize two fields with free_and_strdup() rather than directly with strdup(). The fields should not be initialized so far, but it's still nicer to be prepared for futzre code changes and always free what's stored before replacing it.
2018-12-07mount: generate error message matching the error locationLennart Poettering1-4/+2
2018-12-07mount: move allocation of Unit object into mount_setup_new_unit()Lennart Poettering1-16/+18
This should encapsulate things in a nicer way.
2018-12-07mount: add a common helper for filling in info from /proc/self/mountinfoLennart Poettering1-19/+41
2018-12-07mount: don't propagate errors from mount_setup_unit() further upLennart Poettering1-6/+3
If we can't process a specific line in /proc/self/mountinfo we should log about it (which we do), but this should not affect other lines, nor further processing of mount units. Let's keep these failures local. Fixes: #10874
2018-12-07mount: simplify de-serialization of control PID a bitLennart Poettering1-4/+2
2018-12-07mount: serialize umount retry counter across reloads/reexecLennart Poettering1-1/+9
2018-12-07mount: make sure mount_add_extras() is always invoked when we load a mount unitLennart Poettering1-12/+17
We need to make sure that the slice property is initialized whenever mount_load() is invoked, even if we fail to load things properly off disk. This is important since we generally don't allow changing the slice after a unit has been started. But given that we must track the state of external objects with mount units we must hence initialize the property no matter what.
2018-12-07mount: document that mount_add_extras() must work with active units, tooLennart Poettering1-0/+4
2018-12-07mount: set up local-fs.target/remote-fs.target deps in ↵Lennart Poettering1-3/+10
mount_add_default_dependencies() too This deps are very similar to the -pre deps, hence establish them at the same place, in particular as they should only be generated if default deps are on. This allows us to later on remove similar code that adds in these deps whenever /proc/self/mountinfo changes.
2018-12-07mount: remove unnecessary initialization of device_wants_mount and 'if'Lennart Poettering1-3/+3
2018-12-07mount: use mfree() where appropriateLennart Poettering1-5/+3
2018-12-07mount: rename needs_quota() → mount_needs_quota()Lennart Poettering1-4/+4
No change of logic, just some renaming, in order to match more closely the naming of the other, similar functions.