summaryrefslogtreecommitdiffstats
path: root/rescue
Commit message (Expand)AuthorAgeFilesLines
* - unsetting LD_LIBRARY_PATH: setting LD_LIBRARY_PATH to libraries in /mnt isPascal Rigaux2003-03-041-2/+1
* removed dmidecode.Francois Pons2003-02-251-1/+0
* added dmidecode for rescue (from lm_sensors)Francois Pons2003-02-251-0/+1
* replace ext2resize with resize2fs in rescue (already done in DrakX)Pascal Rigaux2003-02-173-3/+3
* remove "cooker" from the issue of the rescue since we'reGuillaume Cottenceau2003-02-081-1/+1
* /usr/share/magic has moved to /usr/share/misc/magicPascal Rigaux2003-01-141-1/+1
* init doesn't like anymore that /etc/initctl is already hereGuillaume Cottenceau2003-01-071-1/+0
* version 9.1 cookerGuillaume Cottenceau2003-01-071-1/+1
* synced with latest change to HP version (and now HP is in CVS).Francois Pons2002-11-251-4/+5
* add extra partition support as primary/logical with configurable size and fs.Francois Pons2002-11-061-12/+57
* Reflect changes in yaboot package.Stew Benedict2002-10-291-5/+5
* reduced version of oem script which allow installing in oem mode butFrancois Pons2002-10-251-0/+606
* remove initrd images before umounting and exiting.Francois Pons2002-10-141-0/+3
* add st devicesGuillaume Cottenceau2002-09-231-0/+1
* remove modules files even when modprobe failsGuillaume Cottenceau2002-09-161-1/+3
* don't drvinst SERIAL_USB when noauto (it needs a lspcidrake -v)Guillaume Cottenceau2002-09-101-1/+1
* drvinst <param> is broken when we don't -vGuillaume Cottenceau2002-09-101-1/+4
* drvinst serial_usb in rc.sysinit so that legacy free machines mayGuillaume Cottenceau2002-09-041-0/+2
* add gpart (per Giuseppe Ghibò request)Pascal Rigaux2002-09-031-0/+1
* - adapt to thread-multiPascal Rigaux2002-08-057-10/+5
* While stripping libraries, note that we may need to have both /lib andGwenolé Beauchesne2002-08-011-1/+2
* Add x86_64-specific filelistGwenolé Beauchesne2002-08-011-0/+6
* - MDK::Common'ize for arch() supportGwenolé Beauchesne2002-08-012-21/+18
* remove traceroute (c naze dixit gc)Pascal Rigaux2002-07-261-2/+0
* ensure rescue is built and uploadedPascal Rigaux2002-07-261-0/+2
* switch to vendor_perlPascal Rigaux2002-07-111-1/+1
* adapt to the move all.modules -> kernel/all.modules and all.kernels -> kern...Pascal Rigaux2002-07-041-3/+5
* final candidate.Francois Pons2002-04-171-10/+1
* add gcc-cpp to oem install.Francois Pons2002-04-171-1/+1
* sync with oem-prepareFrancois Pons2002-04-161-7/+7
* fixed stupid error.Francois Pons2002-04-161-1/+6
* forget packdrake module invocation.Francois Pons2002-04-161-0/+1
* fixed to support non standard rpm filename.Francois Pons2002-04-161-10/+21
* rpm 4.0.4Guillaume Cottenceau2002-03-201-1/+1
* update lang according to lang.pm of 8.2 (remove @euro appended for 8.1).Francois Pons2002-03-151-4/+4
* remove Mach32 XF3.3.6 server too.Francois Pons2002-03-131-1/+1
* remove Mach8 and Mono driver for oem only.Francois Pons2002-03-131-1/+1
* remove bzflag.Francois Pons2002-03-131-2/+1
* fixed closure selection on sub groups (like 3D),Francois Pons2002-03-131-31/+40
* english fixes thx to philGuillaume Cottenceau2002-03-071-32/+34
* allow oem script to be executable from standard cd set (powerpack or other).Francois Pons2002-03-061-0/+8
* added ext3 support.Francois Pons2002-03-011-16/+36
* added curl as a bonus for oem install (it will be used by urpmi)Francois Pons2002-02-281-1/+1
* added a2ps as a bonus (it fetch tetex where oem limited disk usage do not agreeFrancois Pons2002-02-281-1/+1
* resolve conflicts for short keytable names (eg: "no" could be either "no-dvor...Pascal Rigaux2002-02-281-2/+11
* fixed bad copy of install packages.Francois Pons2002-02-281-6/+12
* include /sbin/fsck.ext3 since our users are so dumbGuillaume Cottenceau2002-02-282-1/+2
* add "restore Windows Boot Loader" to rescueGuillaume Cottenceau2002-02-273-0/+112
* add mt-st DAT stuff for joeghi (ghibo)Guillaume Cottenceau2002-02-251-0/+2
* synced with newer rpmsrate of DrakX and newer method to select INSTALL packages.Francois Pons2002-02-201-5/+12
>$stdout_raw) eq 'ARRAY') { @$stdout_raw = cat_($stdout); } else { $$stdout_raw = cat_($stdout); } unlink $stdout; } if ($stderr_raw && ref($stderr_raw)) { if (ref($stderr_raw) eq 'ARRAY') { @$stderr_raw = cat_($stderr); } else { $$stderr_raw = cat_($stderr); } unlink $stderr; } $ok; } } else { sub die_exit { log::l($_[0]); c::_exit(128); } if ($stderr && $stderr eq 'STDERR') { } elsif ($stderr) { $stderr_mode =~ s/2//; open STDERR, "$stderr_mode $stderr" or die_exit("run_program can not output in $stderr (mode `$stderr_mode')"); } elsif ($::isInstall) { open STDERR, ">> /tmp/ddebug.log" or open STDOUT, ">> /dev/tty7" or die_exit("run_program can not log, give me access to /tmp/ddebug.log"); } if ($stdout && $stdout eq 'STDOUT') { } elsif ($stdout) { open STDOUT, "$stdout_mode $stdout" or die_exit("run_program can not output in $stdout (mode `$stdout_mode')"); } elsif ($::isInstall) { open STDOUT, ">> /tmp/ddebug.log" or open STDOUT, ">> /dev/tty7" or die_exit("run_program can not log, give me access to /tmp/ddebug.log"); } $root and chroot $root; chdir "/"; my $ok = ref $name ? do { exec { $name->[0] } $name->[1], @args; } : do { exec $name, @args; }; if (!$ok) { die_exit("exec of $real_name failed: $!"); } } } # run in background a sub that give back data through STDOUT a la run_program::get_stdout but w/ arbitrary perl code instead of external program package bg_command; sub new { my ($class, $sub) = @_; my $o = bless {}, $class; if ($o->{pid} = open(my $fd, "-|")) { $o->{fd} = $fd; $o; } else { $sub->(); c::_exit(0); } } sub DESTROY { my ($o) = @_; close $o->{fd} or warn "kid exited $?"; waitpid $o->{pid}, 0; } 1;