Make growvols config path platform independent

Change-Id: I9b8fdf96c8543bff92019fb82f10493de7728a26
This commit is contained in:
Ramil Minishev 2022-02-04 00:23:13 +03:00
parent 256eeaba40
commit a27de3f8a2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ After=systemd-udev-settle.service
[Service]
Type=oneshot
EnvironmentFile=-/etc/sysconfig/growvols
EnvironmentFile=-/etc/default/growvols
User=root
ExecStart=/usr/local/sbin/growvols --verbose --yes
RemainAfterExit=true

View File

@ -12,7 +12,7 @@ case ${DIB_GROWVOLS_TRIGGER} in
*) echo "Unsupported DIB_GROWVOLS_TRIGGER: ${DIB_GROWVOLS_TRIGGER}"; exit 1 ;;
esac
cat << EOF | sudo tee /etc/sysconfig/growvols > /dev/null
cat << EOF | sudo tee /etc/default/growvols > /dev/null
GROWVOLS_ARGS="${DIB_GROWVOLS_ARGS}"
GROWVOLS_GROUP="${DIB_GROWVOLS_GROUP}"
GROWVOLS_DEVICE="${DIB_GROWVOLS_DEVICE}"