dev j
dev j

Reputation: 39

How to remove systemd's service in yocto?

I want to delete unnecessary systemd services. I tried a few method in my custom layer, but nothing is working. Is there another way?

  1. layer.conf
    PACKAGECONFIG_remove_pn-systemd = " timesyncd connman nfs-server bluetooth psplash-basic atd"
    
  2. recipes-core/systemd/systemd_%.bbappend
    PACKAGECONFIG_remove = "timesyncd connman nfs-server bluetooth psplash-basic atd"
    

Upvotes: 1

Views: 5072

Answers (3)

hj Ge
hj Ge

Reputation: 1

1: Change

#PACKAGECONFIG[networkd] = "-Dnetworkd=true,-Dnetworkd=false"

To

PACKAGECONFIG[networkd] = "-Dnetworkd=false,-Dnetworkd=true"

please refer to systemd_253.1

I removed networkd from systemd but not audit, so you need to test:

2: werther can be built by "bitbake systemd "

3:bitbake imx-image-core(or full) if above be passed and then find folder or run cmd to test services whether exist.

Upvotes: 0

fabioberton
fabioberton

Reputation: 11

If I understand correctly, these packageconfigs aren't in systemd recipe, you can only remove packageconfig that are in this list systemd_239.bb

Upvotes: 1

Alexander Kanavin
Alexander Kanavin

Reputation: 643

'bitbake -e systemd' should tell you the final value of PACKAGECONFIG, and how it was formed.

Upvotes: 0

Related Questions