From f51dc05f7f0e512e5856ae580d8941eedbea2b7e Mon Sep 17 00:00:00 2001 From: Eduard Shishkin Date: Fri, 8 Apr 2022 01:04:38 +0200 Subject: [PATCH] zipl/Makefile: create an empty environment file /etc/ziplenv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create an empty environment file /etc/ziplenv at make install time if that file doesn't exist Reviewed-by: Stefan Haberland Signed-off-by: Eduard Shishkin Signed-off-by: Jan Höppner --- zipl/Makefile | 3 +++ zipl/doc/ziplenv.minimal | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 zipl/doc/ziplenv.minimal diff --git a/zipl/Makefile b/zipl/Makefile index 931b1135..0a087e2f 100644 --- a/zipl/Makefile +++ b/zipl/Makefile @@ -9,6 +9,9 @@ install: all $(MAKE) -C src install $(MAKE) -C man install $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 doc/zipl.conf.minimal $(DESTDIR)$(TOOLS_LIBDIR)/zipl.conf +ifeq ($(wildcard $(DESTDIR)$(SYSCONFDIR)/ziplenv),) + $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 doc/ziplenv.minimal $(DESTDIR)$(SYSCONFDIR)/ziplenv +endif clean: $(MAKE) -C src clean diff --git a/zipl/doc/ziplenv.minimal b/zipl/doc/ziplenv.minimal new file mode 100644 index 00000000..1782cd77 --- /dev/null +++ b/zipl/doc/ziplenv.minimal @@ -0,0 +1,2 @@ +# This file defines initial zIPL environment being installed by zipl(8) +# See manual page of zipl-editenv(8) tool for more information