summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-29 13:52:16 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-29 13:52:16 +0000
commitb2c3adcd272d1d078e9a8f908d0b44fc4545c46b (patch)
treeafac0bd91e1b08064d6935427e6be7945cf24407 /tools
parentba3824ffb7d930d59edf937917a1a29551a2fe6e (diff)
downloaddrakx-backup-do-not-use-b2c3adcd272d1d078e9a8f908d0b44fc4545c46b.tar
drakx-backup-do-not-use-b2c3adcd272d1d078e9a8f908d0b44fc4545c46b.tar.gz
drakx-backup-do-not-use-b2c3adcd272d1d078e9a8f908d0b44fc4545c46b.tar.bz2
drakx-backup-do-not-use-b2c3adcd272d1d078e9a8f908d0b44fc4545c46b.tar.xz
drakx-backup-do-not-use-b2c3adcd272d1d078e9a8f908d0b44fc4545c46b.zip
require root capabilities
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/draklive b/tools/draklive
index d9e51c7bb..445b2da15 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -702,7 +702,7 @@ sub copy_wizard {
my @available_devices;
require interactive;
require wizards;
- my $in = 'interactive'->vnew;
+ my $in = 'interactive'->vnew('su');
my $w = wizards->new;
my ($storage, $device, $format);
$w->process({
@@ -799,6 +799,8 @@ my @actions = (
);
my @all = qw(install boot loop master);
+require_root_capability();
+
my (%live, $copy_wizard);
GetOptions(
"help" => sub { pod2usage('-verbose' => 1) },