aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiurt_root_command13
1 files changed, 0 insertions, 13 deletions
diff --git a/iurt_root_command b/iurt_root_command
index 28c1394..417ebc8 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -108,10 +108,6 @@ $run{todo} = [];
"Remove files",
\&rm, "Removing files" ],
- [ "", "initdb", 1 , "<chroot>",
- "perform a rpm --initdb in the chroot.",
- \&initdb, "Initializing the rpm database" ],
-
[ "v", "verbose", 1, "<verbose level>",
"modprobe try to modprobe the given module if authorized.",
sub { $run{verbose} = $_[0]; 1 }, "Setting verbose level" ],
@@ -234,15 +230,6 @@ sub mkdir {
1;
}
-sub initdb {
- my ($_run, $chroot) = @_;
- if (-d $chroot && $chroot !~ /chroot|unionfs/) {
- plog('FAIL', "rpm --initdb not authorized in $chroot");
- return 0;
- }
- !system('rpm', '--initdb', '--root', $chroot);
-}
-
sub rm {
my ($_run, $opt, @files) = @_;
my $ok = 1;