kdump-steamos: Move configuration file out of /etc
This patch main goal is to "un-Debianize" the configuration file for kdump-steamos - thanks Emil (@xexaxo) for the discussions; it is with a bit of a heavy heart I do that, but let's comply with the modern distros ;-) We hereby put the config file in a more standard path: /usr/share. Usually users could override that with /etc/ file, but not in this case, or at least, not for now. Kdump/pstore is expected to work quietly, with no users' interference. Advanced users might want to play with the configs though; and those can just go ahead and edit the /usr/share/kdump/kdump.conf - it's all documented in the README. In the future we can improve that by having the override mechanism with the /etc file, let's see if we have a demand for that. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
@ -67,13 +67,13 @@ get_steam_account_id() {
|
||||
|
||||
|
||||
# We do some validation to be sure KDUMP_MNT pointed path is valid...
|
||||
# That and having a valid /etc/default/kdump are essential conditions.
|
||||
if [ ! -s "/etc/default/kdump" ]; then
|
||||
logger "kdump-steamos: /etc/default/kdump not present - aborting..."
|
||||
# That and having a valid /usr/share/kdump/kdump.conf are essential conditions.
|
||||
if [ ! -s "/usr/share/kdump/kdump.conf" ]; then
|
||||
logger "kdump-steamos: /usr/share/kdump/kdump.conf is missing, aborting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. /etc/default/kdump
|
||||
. /usr/share/kdump/kdump.conf
|
||||
|
||||
KDUMP_MAIN_FOLDER="$(cat "${KDUMP_MNT}")"
|
||||
rm -f "${KDUMP_MNT}"
|
||||
|
||||
Reference in New Issue
Block a user