root: separate out udev rules and kernel modules

This commit is contained in:
lelgenio 2022-02-24 09:36:32 -03:00
parent 129213e46a
commit 3353a41950
4 changed files with 14 additions and 3 deletions

View File

@ -129,9 +129,13 @@ dotfiles:
actions:
- sysctl_apply
zram:
src: zram
dst: /etc/
kernel_modules:
src: kernel-modules
dst: /etc/modules-load.d/
udev_rules:
src: udev-rules
dst: /etc/udev/rules.d/
vconsole:
src: vconsole.conf

View File

@ -0,0 +1,7 @@
ACTION=="remove", GOTO="persistent_storage_end"
ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="persistent_storage_end"
# by-label/by-uuid links (filesystem metadata)
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
LABEL="persistent_storage_end"