diff options
author | Francois Pons <fpons@mandriva.com> | 2001-04-25 15:24:53 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-04-25 15:24:53 +0000 |
commit | 04c2a7c878eb1c0a5df0673d651343dab52ef6d6 (patch) | |
tree | 95bcc0ca374c9c43960e30a12221cc22f94e92a1 /rescue/tree/etc | |
parent | 581d955fb90b1093c3a137f03d4ac9e3af1f8a43 (diff) | |
download | drakx-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar drakx-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.gz drakx-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.bz2 drakx-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.tar.xz drakx-04c2a7c878eb1c0a5df0673d651343dab52ef6d6.zip |
added option to enable oem mode.
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-x | rescue/tree/etc/oem | 5 |
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) { |