mirror of
https://github.com/clearlinux/common.git
synced 2026-09-04 04:31:42 +00:00
Add rootshell target and change shell to be unprivileged
Change the "make shell" command to invoke a shell as the "mockbuild" user and starting in ~mockbuild. This is typically what you want when you enter the build environment. Add a new target, "rootshell", which gives the old behavior, a root shell starting at /. Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
This commit is contained in:
committed by
Patrick McCarty
parent
c18abdb9db
commit
f99b2de07e
+6
-2
@@ -101,10 +101,14 @@ build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||
fmvpatches: results/build.log
|
||||
@perl $(TOPLVL)/projects/common/fmvpatches.pl $(PKG_NAME)
|
||||
|
||||
#help shell: Puts you in a shell into your build root.
|
||||
shell:
|
||||
#help rootshell: Puts you in a root shell at the top of your build root.
|
||||
rootshell:
|
||||
$(MOCK) --result=results/ --no-cleanup-after --shell --uniqueext=$(PKG_NAME)
|
||||
|
||||
#help shell: Puts you in a user shell in the home directory in the build root.
|
||||
shell:
|
||||
$(MOCK) --result=results/ --no-cleanup-after --shell --uniqueext=$(PKG_NAME) --unpriv "/bin/sh -c 'cd ; exec \$$SHELL -l -i'"
|
||||
|
||||
# Always rebuild the source rpm
|
||||
.PHONY: $(SRPMFILE)
|
||||
$(SRPMFILE): $(SPECFILE) $(__allsources)
|
||||
|
||||
Reference in New Issue
Block a user