From aef1db89aaa531c921cd77fb07c2ff371ab44083 Mon Sep 17 00:00:00 2001 From: jkeating <> Date: Fri, 30 Nov 2007 15:41:58 -0500 Subject: [PATCH] Only check root when necessary. --- Changelog | 3 +++ pungi | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 24363a80..f8458d1d 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Fri Nov 30 2007 Jesse Keating +- Only check for root if you're doing root level tasks (buildinstall) + * Thu Nov 29 2007 Jesse Keating - Add a split option to the doCreateIsos call diff --git a/pungi b/pungi index eba64671..a4677cde 100755 --- a/pungi +++ b/pungi @@ -22,8 +22,8 @@ import pykickstart.version def main(): - # You must be this high to ride. - if os.geteuid () != 0: + # You must be this high to ride if you're going to do root tasks + if os.geteuid () != 0 and (opts.do_all or opts.do_buildinstall): print >> sys.stderr, "You must run pungi as root" return 1