Opened 8 weeks ago

Last modified 8 weeks ago

#19269 new enhancement

Allow more system components to be "overridden" by non-packaged counterparts.

Reported by: bipolar Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/launch_daemon Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

While trying to test a custom version of mount_server, I've noticed that it wasn't possible to just black-list the system provided one, and just place the custom server under non-packaged locations.

I think the issue (or at least part of the problem) is that launch_daemon uses absolute paths pointing to things under /system/ in both system and user files.

Given that we generally can override system libs/addons/etc by placing them under non-packaged, I think it would make sense if launch_daemon tried those locations first (except on safe-mode) to see if the user wants them to be overridden.

Change History (3)

comment:1 by bipolar, 8 weeks ago

Now I wonder if I can just "override" those data/{system,user} files instead?

comment:2 by waddlesplash, 8 weeks ago

Component: - GeneralServers/launch_daemon
Owner: changed from nobody to axeld

in reply to:  1 comment:3 by bipolar, 8 weeks ago

Replying to bipolar:

Now I wonder if I can just "override" those data/{system,user} files instead?

Seems like launch_daemon does reads files from [...]/non-packaged/data/launch/, but my attempts at changing the binary used for mount_server:

service x-vnd.Haiku-mount_server {
	launch /system/non-packaged/servers/mount_server
}

only resulted on getting the system stuck at the last boot icon.

Note: See TracTickets for help on using tickets.