Update for 0.18; new options -l (generates a local repo) and -r to set rootdir.

-l "pkg pkg1 ..." If set generates a local repository (/packages)
		  in the live image with the package list.
-r rootdir	  To specify an alternative rootdir to build the image.
This commit is contained in:
Juan RP
2012-11-22 14:35:37 +01:00
parent 5159224c3d
commit 8783414cc7
3 changed files with 261 additions and 248 deletions

View File

@@ -1,11 +1,12 @@
VERSION = 0.9.8
GITVER := $(shell git rev-parse HEAD)
VERSION = 0.10
PREFIX ?= /usr/local
SBINDIR ?= $(PREFIX)/sbin
SHAREDIR ?= $(PREFIX)/share
DRACUTMODDIR ?= $(PREFIX)/lib/dracut/modules.d/01vmklive
all:
sed -e "s|@@MKLIVE_VERSION@@|${VERSION}|g" mklive.sh.in > mklive.sh
sed -e "s|@@MKLIVE_VERSION@@|$(VERSION) $(GITVER)|g" mklive.sh.in > mklive.sh
install: all
install -d $(DESTDIR)$(SBINDIR)