diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-09 23:17:35 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-09 23:17:35 +0000 |
commit | 63555aa270059488b013e6c802cca64a8d6eebdc (patch) | |
tree | 75c481453e459dc2aea279a86eb89ceedfd0ecf1 /lib/MGA/DrakISO/BuildMedia.pm | |
parent | 71146812d733fdc46abe1d77b7d68f9859cdc124 (diff) | |
download | drakiso-63555aa270059488b013e6c802cca64a8d6eebdc.tar drakiso-63555aa270059488b013e6c802cca64a8d6eebdc.tar.gz drakiso-63555aa270059488b013e6c802cca64a8d6eebdc.tar.bz2 drakiso-63555aa270059488b013e6c802cca64a8d6eebdc.tar.xz drakiso-63555aa270059488b013e6c802cca64a8d6eebdc.zip |
draklive: allow installer GUI to be used and run as normal user.
Read all configuration from the main config file and automatically
generate the auto_inst.cfg.pl file. Run the installer GUI in a nested
X server if any items are not specified in the config file. Use sudo
to run any steps that need root privileges, to avoid running the X
server as root.
Diffstat (limited to 'lib/MGA/DrakISO/BuildMedia.pm')
-rw-r--r-- | lib/MGA/DrakISO/BuildMedia.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/BuildMedia.pm b/lib/MGA/DrakISO/BuildMedia.pm index 8fe59bd..5e75c1c 100644 --- a/lib/MGA/DrakISO/BuildMedia.pm +++ b/lib/MGA/DrakISO/BuildMedia.pm @@ -175,7 +175,7 @@ sub get_available_packages { $urpm = urpm->new; - urpm::set_files($urpm, $build->get_system_root); + urpm::set_files($urpm, $build->get_chroot_dir); urpm::get_global_options($urpm); $urpm->{info} = sub { }; @@ -600,7 +600,7 @@ sub create_index { sub run_urpm { my ($build, $cmd, $parameters, $o_not_fatal) = @_; - my $urpmi_root = '--urpmi-root ' . $build->get_system_root; + my $urpmi_root = '--urpmi-root ' . $build->get_chroot_dir; my $error = system("LC_ALL=C sudo $cmd $urpmi_root $parameters"); $error == 0 || $o_not_fatal or die "ERROR: $cmd command failed\n"; |