You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
683 B
19 lines
683 B
modules.d/99base/switch_root: switch_root.c |
|
gcc -o modules.d/99base/switch_root switch_root.c |
|
|
|
all: modules.d/99base/switch_root |
|
|
|
install: |
|
mkdir -p $(DESTDIR)/usr/libexec/dracut |
|
mkdir -p $(DESTDIR)/sbin |
|
mkdir -p $(DESTDIR)/usr/libexec/dracut/modules.d |
|
install -m 0755 dracut $(DESTDIR)/sbin/dracut |
|
install -m 0755 dracut-functions $(DESTDIR)/usr/libexec/dracut/functions |
|
for module in modules/*/*; do install -D -m 0755 $$module $(DESTDIR)/usr/libexec/dracut/modules.d ; done |
|
|
|
clean: |
|
rm -f *~ |
|
rm -f modules.d/99base/switch_root |
|
|
|
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
|
|
|