diff --git a/Makefile.common b/Makefile.common index 1fb8a11..13a1b29 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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)