Merge "Make growvols config path platform independent"
This commit is contained in:
commit
1ec7f1c238
@ -5,7 +5,7 @@ After=systemd-udev-settle.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=-/etc/sysconfig/growvols
|
EnvironmentFile=-/etc/default/growvols
|
||||||
User=root
|
User=root
|
||||||
ExecStart=/usr/local/sbin/growvols --verbose --yes
|
ExecStart=/usr/local/sbin/growvols --verbose --yes
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
|
@ -12,7 +12,7 @@ case ${DIB_GROWVOLS_TRIGGER} in
|
|||||||
*) echo "Unsupported DIB_GROWVOLS_TRIGGER: ${DIB_GROWVOLS_TRIGGER}"; exit 1 ;;
|
*) echo "Unsupported DIB_GROWVOLS_TRIGGER: ${DIB_GROWVOLS_TRIGGER}"; exit 1 ;;
|
||||||
esac
|
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_ARGS="${DIB_GROWVOLS_ARGS}"
|
||||||
GROWVOLS_GROUP="${DIB_GROWVOLS_GROUP}"
|
GROWVOLS_GROUP="${DIB_GROWVOLS_GROUP}"
|
||||||
GROWVOLS_DEVICE="${DIB_GROWVOLS_DEVICE}"
|
GROWVOLS_DEVICE="${DIB_GROWVOLS_DEVICE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user