diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-01-29 15:05:10 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-01-29 15:05:35 -0500 |
commit | ecc95534d52ac51a52b7938abd1192e47581061f (patch) | |
tree | 8a29d88967c37b2c5c87028953fb6f0b4ce723e1 | |
parent | fd78b9d6b0a374058433a7d378dd8746dd0813c7 (diff) |
first attempt at supporting new things from holo and systemd
-rwxr-xr-x | drain | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright 2016-2017 Luke Shumaker +# Copyright 2016-2018 Luke Shumaker # This work is free. You can redistribute it and/or modify it under the # terms of the Do What The Fuck You Want To Public License, Version 2, # as published by Sam Hocevar. See the COPYING file for more details. @@ -10,7 +10,8 @@ declare -r workdir=/var/lib/pristine-etc watchdirs=( /etc - /usr/share/holo/files + /usr/share/holo + /usr/lib/sysusers.d ) readonly watchdirs @@ -70,6 +71,12 @@ commit() ( ln -srT ../etc.git etc/.git + # The holo libalpm hook runs before the systemd-sysusers + # libalpm hook; but ignore that and run systemd-sysusers + # first, because I said so. + if type systemd-sysusers &>/dev/null; then + systemd-sysusers --root=. + fi if type holo &>/dev/null; then mkdir -p -- run usr/lib ln -sT /usr/lib/holo usr/lib/holo @@ -80,6 +87,12 @@ commit() ( fi HOLO_ROOT_DIR=. holo apply fi + if type pwck &>/dev/null; then + pwck --root "$PWD" --sort + fi + if type grpck &>/dev/null; then + grpck --root "$PWD" --sort + fi cd etc/ etckeeper update-ignore -d "$PWD" if etckeeper unclean -d "$PWD"; then |