mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 13:42:23 +00:00
trivial: allow configuring ESP location (#94)
This commit is contained in:
parent
ec7f3ab02e
commit
5b6103ce97
@ -57,6 +57,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
|
|||||||
--enable-uefi \
|
--enable-uefi \
|
||||||
--enable-dell \
|
--enable-dell \
|
||||||
--with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
|
--with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
|
||||||
|
--with-bootdir=$$dc_install_base/$(bootdir) \
|
||||||
--with-systemdunitdir=$$dc_install_base/$(systemdunitdir)
|
--with-systemdunitdir=$$dc_install_base/$(systemdunitdir)
|
||||||
|
|
||||||
GITIGNOREFILES = \
|
GITIGNOREFILES = \
|
||||||
|
@ -335,6 +335,13 @@ AC_ARG_WITH([systemdunitdir],
|
|||||||
[with_systemdunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
[with_systemdunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
||||||
AC_SUBST([systemdunitdir], [$with_systemdunitdir])
|
AC_SUBST([systemdunitdir], [$with_systemdunitdir])
|
||||||
|
|
||||||
|
# EFI system partition location
|
||||||
|
AC_ARG_WITH([bootdir],
|
||||||
|
AS_HELP_STRING([--with-bootdir=DIR], [Directory for EFI system partition]),
|
||||||
|
[],
|
||||||
|
[with_bootdir=/boot/efi])
|
||||||
|
AC_SUBST([bootdir], [$with_bootdir])
|
||||||
|
|
||||||
# udev rules
|
# udev rules
|
||||||
AC_ARG_WITH([udevrulesdir],
|
AC_ARG_WITH([udevrulesdir],
|
||||||
AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules files]),
|
AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules files]),
|
||||||
|
@ -19,6 +19,7 @@ $(dbusservicemain_DATA): $(dbusservicemain_in_files) Makefile
|
|||||||
%.service: %.service.in Makefile
|
%.service: %.service.in Makefile
|
||||||
$(AM_V_GEN)sed -e 's|\@servicedir\@|$(libexecdir)|' \
|
$(AM_V_GEN)sed -e 's|\@servicedir\@|$(libexecdir)|' \
|
||||||
-e 's|\@localstatedir\@|$(localstatedir)|' \
|
-e 's|\@localstatedir\@|$(localstatedir)|' \
|
||||||
|
-e 's|\@bootdir\@|$(bootdir)|' \
|
||||||
-e 's|\@bindir\@|$(bindir)|' \
|
-e 's|\@bindir\@|$(bindir)|' \
|
||||||
-e 's|\@daemon_user\@|$(daemon_user)|' $< > $@.tmp && mv $@.tmp $@
|
-e 's|\@daemon_user\@|$(daemon_user)|' $< > $@.tmp && mv $@.tmp $@
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@ ProtectKernelModules=yes
|
|||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
RestrictAddressFamilies=AF_NETLINK AF_UNIX
|
RestrictAddressFamilies=AF_NETLINK AF_UNIX
|
||||||
RestrictRealtime=yes
|
RestrictRealtime=yes
|
||||||
ReadWritePaths=@localstatedir@/lib/fwupd /boot/efi
|
ReadWritePaths=@localstatedir@/lib/fwupd @bootdir@
|
||||||
|
Loading…
Reference in New Issue
Block a user