diff options
author | NeilBrown <neilb@suse.de> | 2010-02-04 16:31:49 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-02-04 16:47:28 +1100 |
commit | 5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f (patch) | |
tree | 86261d4f1521d7953bdbde959fd96bd0fb744d9c /Makefile | |
parent | 24f6f99b3630b1a89aaa57930c5c9de8a3df9ded (diff) | |
download | mdadm-5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f.tar.gz mdadm-5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f.tar.xz mdadm-5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f.zip |
mdmon: allow pid to be stored in different directory.
/var/run probably doesn't persist from early boot.
So if necessary, store in in /lib/init/rw or somewhere else
that does persist.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -58,7 +58,13 @@ CONFFILE = $(SYSCONFDIR)/mdadm.conf CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf MAILCMD =/usr/sbin/sendmail -t CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\" -CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) +# ALT_RUN should be somewhere that persists across the pivotroot +# from early boot to late boot. +# If you don't have /lib/init/rw you might want to use /dev/.something +# e.g. make ALT_RUN=/dev/.mdadm +ALT_RUN = /lib/init/rw +ALTFLAGS = -DALT_RUN=\"$(ALT_RUN)\" +CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(ALTFLAGS) # If you want a static binary, you might uncomment these # LDFLAGS = -static |