-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 713 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Makefile
#
build:
DRACUT_OVERLAYROOT_D = dracut/modules.d/50overlayroot
install:
mkdir -p "$(BUILDROOT)/$(DESTDIR)/$(DRACUT_OVERLAYROOT_D)"
for f in mount-overlayroot.sh module-setup.sh; do \
install "overlayroot/$$f" \
"$(BUILDROOT)/$(DESTDIR)/$(DRACUT_OVERLAYROOT_D)/" ; \
done
mkdir -p "$(BUILDROOT)/usr/sbin"
for f in bin/*; do \
install "$$f" \
"$(BUILDROOT)/usr/sbin" ; \
done
mkdir -p "$(BUILDROOT)/etc"
install "etc/overlayroot.conf" "$(BUILDROOT)/etc"
rpm:
rpmbuild -ba specs/dracut-modules-overlayroot.spec
publish:
aws s3 cp /usr/src/rpm/RPMS/noarch/dracut-modules-overlayroot-0.1-beta.amzn1.noarch.rpm s3://gfleury --acl public-read
# vi: ts=4 noexpandtab syntax=make