You are not logged in.

#1 2017-08-04 14:26:07

bachtiar
Member
Registered: 2005-02-08
Posts: 75

[SOLVED] Persist /sys settings

Hi all,

I'd need to adjust some settings for bcache after every boot. To do this, I have to write some stuff to /sys.

Is there a recommended way to do it? Or should I just write a systemd unit? In the latter case, what are the appropriate systemd dependencies for "all block devices should be available"?

Thanks!

Last edited by bachtiar (2017-08-05 07:13:46)

Offline

#2 2017-08-04 15:44:18

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [SOLVED] Persist /sys settings

I would use tmpfiles: https://wiki.archlinux.org/index.php/Im … d-tmpfiles

Depending on what it is you're doing, you may want to look at the udev rule option immediately below the linked section.

Mod note: Not a Networking/Server/Protection issue, moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-08-05 07:14:29

bachtiar
Member
Registered: 2005-02-08
Posts: 75

Re: [SOLVED] Persist /sys settings

I will try to do it with udev rules. Thanks.

Offline

Board footer

Powered by FluxBB