diff options
| author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2021-03-08 15:17:15 +0100 |
|---|---|---|
| committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2026-01-19 17:37:50 +0100 |
| commit | 17b8ec62c1ec6006e52b0303273e392941dad834 (patch) | |
| tree | 2eefcb0866afc9573c0c61f96a3ecc1f94290bb3 /perl-install/install/any.pm | |
| parent | 74d3f9dd8a47e444ff6ea4b04deec51edbe84785 (diff) | |
| download | drakx-17b8ec62c1ec6006e52b0303273e392941dad834.tar drakx-17b8ec62c1ec6006e52b0303273e392941dad834.tar.gz drakx-17b8ec62c1ec6006e52b0303273e392941dad834.tar.bz2 drakx-17b8ec62c1ec6006e52b0303273e392941dad834.tar.xz drakx-17b8ec62c1ec6006e52b0303273e392941dad834.zip | |
PODify the installer
Diffstat (limited to 'perl-install/install/any.pm')
| -rw-r--r-- | perl-install/install/any.pm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index fecd03c1b..1176c8e0a 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -208,6 +208,12 @@ sub prep_net_suppl_media { sleep(3); } +=item ask_suppl_media_url($o, $method, $o_url) + +Ask which actual server or mirror to use + +=cut + sub ask_suppl_media_url { my ($o, $method, $o_url) = @_; @@ -707,6 +713,14 @@ sub set_rpmsrate_category_flags { } + +=item rpmsrate_always_flags($o) + +Set flags for selecting packages in rpmsrate according to available hardware. +Eg selecting software to burn CD/DVDs if a CD/DVD writer is installed + +=cut + sub rpmsrate_always_flags { my ($o) = @_; @@ -752,6 +766,13 @@ sub rpmsrate_always_flags { $rpmsrate_flags_chosen; } + +=item default_bootloader() + +Return the default bootloader to use according to the platform (UEFI, bios, ...) + +=cut + sub default_bootloader() { require bootloader; my (undef, $p) = bootloader::get_grub2_pkg(); @@ -848,6 +869,14 @@ Do you really want to remove these packages? } } + +=item addToBeDone($f, $step) + +The I<$f> function will be executed if $step has already been completed. +Else it is stored to be run later when $step is completed. + +=cut + sub addToBeDone(&$) { my ($f, $step) = @_; @@ -900,6 +929,13 @@ sub log_system_info { #-############################################################################### sub auto_inst_file() { "$::prefix/root/drakx/auto_inst.cfg.pl" } +=item report_bug() + +Write the Drakx report in order to review eg a failed installation. +See any::report_bug() + +=cut + sub report_bug() { any::report_bug('auto_inst' => g_auto_install('', 1)); } @@ -1028,6 +1064,22 @@ sub selected_leaves_pl { $str; } +=item loadO($O, $f) + +Retrieve the auto installation configuration + +=over 4 + +=item * Retrieveing auto_inst.cfg.pl file, either on a local disk or by downloading it + +=item * Adusting $o for the parameters loaded from auto_inst.cfg.pl + +=item * Handling any old format parameter + +=back + +=cut + sub loadO { my ($O, $f) = @_; $f ||= auto_inst_file(); if ($f =~ /^(floppy|patch)$/) { @@ -1082,6 +1134,12 @@ sub loadO_ { $o; } +=item sub handle_old_auto_install_format($o) + +Convert the auto install parameter for any API change. + +=cut + sub handle_old_auto_install_format { my ($o) = @_; |
