Artix Linux Forum

Init systems => OpenRC => Topic started by: Pragma Once on 04 February 2024, 14:35:09

Title: Wrong script execution order with encrypted swap
Post by: Pragma Once on 04 February 2024, 14:35:09
For some reason, even if /etc/init.d/dmcrypt has before swap, it still runs after swap, which makes encrypted swaps fail to mount on boot. I can fix it by adding want dmcrypt to /etc/init.d/swap, but, of course, every time there's an OpenRC update, I'm back to square one.
Title: Re: Wrong script execution order with encrypted swap
Post by: nous on 15 February 2024, 00:15:59
The default pacman behaviour is to leave changed files alone and create a /etc/init.d/swap.pacnew instead. To explicitly protect a file, put this in /etc/pacman.conf:
Code: [Select]
NoUpgrade   = etc/init.d/swap