grub-btrfs-runit: use posix shell for the service

This commit is contained in:
FollieHiyuki 2021-02-20 17:23:20 +03:00 committed by Érico Nogueira Rolim
parent 8e4286fc53
commit 0cc5823111

View file

@ -5,7 +5,7 @@ exec 2>&1
if [ -d "${SNAPSHOTS_PATH}" ] if [ -d "${SNAPSHOTS_PATH}" ]
then then
exec wendy ${OPTS} -m 960 -w "${SNAPSHOTS_PATH}" bash -c \ exec wendy ${OPTS} -m 960 -w "${SNAPSHOTS_PATH}" sh -c \
'if [ -s "/boot/grub/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else update-grub; fi' 'if [ -s "/boot/grub/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else update-grub; fi'
else else
exit 1 exit 1