Skip to content

Commit

Permalink
99-write-log: FHS says state file should be in misc
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ammerlaan <[email protected]>
  • Loading branch information
Nowa-Ammerlaan committed Aug 5, 2024
1 parent f2093f7 commit ba95265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/99-write-log.install
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ main() {
fi
fi

local state=/var/lib/installkernel
local state=/var/lib/misc/installkernel
local log=/var/log/installkernel.log

einfo "Appending installed kernel to ${log}..."
Expand Down
2 changes: 1 addition & 1 deletion hooks/systemd/99-write-log.install
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [[ -z ${KERNEL_INSTALL_CONF_ROOT} ]]; then
fi
fi

STATE=/var/lib/installkernel
STATE=/var/lib/misc/installkernel
LOG=/var/log/installkernel.log

[[ ${KERNEL_INSTALL_VERBOSE} == 1 ]] && echo "Appending installed kernel to ${LOG}..."
Expand Down

0 comments on commit ba95265

Please sign in to comment.