Skip to content

Commit 8d4d776

Browse files
committed
Makefile: recursively install dracut module
1 parent 1041f68 commit 8d4d776

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ EXAMPLES=$(PREFIX)/share/examples/zfsbootmenu
1111
default:
1212

1313
install:
14+
# Recursively install non-executable parts of the Dracut module
15+
find 90zfsbootmenu -type f -not -perm /111 -exec \
16+
install -Dm 0644 "{}" "$(DESTDIR)$(MODDIR)/{}" \;
17+
# Executable parts of the module
18+
find 90zfsbootmenu -type f -perm /111 -exec \
19+
install -Dm 0755 "{}" "$(DESTDIR)$(MODDIR)/{}" \;
1420
install -m 0644 -t "$(DESTDIR)$(CONFDIR)" -D etc/zfsbootmenu/config.yaml
1521
install -m 0644 -t "$(DESTDIR)$(CONFDIR)/dracut.conf.d/" -D etc/zfsbootmenu/dracut.conf.d/*
16-
install -m 0755 -t "$(DESTDIR)$(MODDIR)/90zfsbootmenu" -D 90zfsbootmenu/*.sh
17-
install -m 0644 -t "$(DESTDIR)$(MODDIR)/90zfsbootmenu" -D 90zfsbootmenu/*.conf
1822
install -m 0755 -t "$(DESTDIR)$(BINDIR)" -D bin/generate-zbm
1923
install -m 0644 -t "$(DESTDIR)$(MANDIR)/man5" -D man/generate-zbm.5
2024
install -m 0644 -t "$(DESTDIR)$(MANDIR)/man7" -D man/zfsbootmenu.7

0 commit comments

Comments
 (0)