mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
ec1ad3347c
Any script placed in /pre-udev will be sourced just before udev starts device scanning and loading. Any script placed in /pre-mount will be sourced just before we try to mount a root filesystem. Any script placed in /pre-pivot will be sourced just before we switch to the new root filesystem. These hooks should be the minimum needed to add back plymouth and deal with more advanced filesysem mounting needs (multipath, iscsi, nfs, nbd, etc.)
23 lines
958 B
Makefile
23 lines
958 B
Makefile
all:
|
|
@echo "Nothing to do"
|
|
|
|
install:
|
|
mkdir -p $(DESTDIR)/usr/libexec/dracut
|
|
mkdir -p $(DESTDIR)/sbin
|
|
mkdir -p $(DESTDIR)/usr/libexec/dracut/pre-mount
|
|
mkdir -p $(DESTDIR)/usr/libexec/dracut/pre-udev
|
|
mkdir -p $(DESTDIR)/usr/libexec/dracut/pre-pivot
|
|
install -m 0755 dracut $(DESTDIR)/sbin/dracut
|
|
install -m 0755 init $(DESTDIR)/usr/libexec/dracut/init
|
|
install -m 0755 switch_root $(DESTDIR)/usr/libexec/dracut/switch_root
|
|
install -m 0755 dracut-functions $(DESTDIR)/usr/libexec/dracut/functions
|
|
install -m 0755 echoer $(DESTDIR)/usr/libexec/dracut/echoer
|
|
mkdir $(DESTDIR)/usr/libexec/dracut/rules.d
|
|
for rule in rules.d/*.rules ; do install -m 0644 $$rule $(DESTDIR)/usr/libexec/dracut/rules.d ; done
|
|
for hooks in pre-*/* ; do install -m 0755 $$hook $(DESTDIR/usr/libexec/dracut ; done
|
|
clean:
|
|
rm -f *~
|
|
|
|
archive:
|
|
git archive --format=tar HEAD --prefix=dracut/ |bzip2 > dracut-$(shell git rev-list --abbrev-commit -n 1 HEAD |cut -b 1-8).tar.bz2
|