summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-25 15:24:53 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-25 15:24:53 +0000
commit04c2a7c878eb1c0a5df0673d651343dab52ef6d6 (patch)
tree95bcc0ca374c9c43960e30a12221cc22f94e92a1
parent581d955fb90b1093c3a137f03d4ac9e3af1f8a43 (diff)
downloaddrakx-backup-do-not-use-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar
drakx-backup-do-not-use-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.gz
drakx-backup-do-not-use-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.bz2
drakx-backup-do-not-use-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.xz
drakx-backup-do-not-use-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.zip
added option to enable oem mode.
-rwxr-xr-xrescue/tree/etc/oem5
1 files changed, 2 insertions, 3 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index d4155b0c5..a6c5d7e4b 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -4,8 +4,7 @@ if ($ARGV[0] ne '-f') {
print "Call it with option -f, but don't fear loosing all your data, this command is dangerous!";
exit 1;
}
-
-my ($yes, $hd, $cd);
+my ($mode, $yes, $hd, $cd) = ($ARGV[1]);
#- avoid globing as it is not available in rescue ramdisk.
foreach my $device (split ' ', `/bin/ls -d /proc/ide/hd*`) {
@@ -355,7 +354,7 @@ sub select_packages {
$o->{compssUsersChoice}{$_} = 1 foreach map { @{$o->{compssUsers}{$_}} } @{$o->{compssUsersSorted}};
$o->{compssUsersChoice}{SYSTEM} = 1;
- @{$o->{compssUsersChoice}}{grep { /SERVER/ } keys %{$o->{compssUsersChoice}}} = ();
+ $mode =~ /server/i or @{$o->{compssUsersChoice}}{grep { /SERVER/ } keys %{$o->{compssUsersChoice}}} = ();
my $lang_pkg = $lang && pkgs::packageByName($o->{packages}, "locales-$lang");
if ($lang_pkg) {