diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-06-15 15:22:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-06-15 15:22:02 +0000 |
commit | 67138a37ec97ac4b1cdd8e3696dfb3f35c532146 (patch) | |
tree | 5b7655eea330399d07b4b4e4981b25535130b45c /perl-install/install_any.pm | |
parent | 46b1995265e459270c87ca745342db96abb4602f (diff) | |
download | drakx-67138a37ec97ac4b1cdd8e3696dfb3f35c532146.tar drakx-67138a37ec97ac4b1cdd8e3696dfb3f35c532146.tar.gz drakx-67138a37ec97ac4b1cdd8e3696dfb3f35c532146.tar.bz2 drakx-67138a37ec97ac4b1cdd8e3696dfb3f35c532146.tar.xz drakx-67138a37ec97ac4b1cdd8e3696dfb3f35c532146.zip |
remove some broken sparc code
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 7806cdc3c..ed20cf048 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -729,40 +729,7 @@ sub getAndSaveAutoInstallFloppies { eval { modules::load('loop') }; - if (arch() =~ /sparc/) { - my $mountdir = "$o->{prefix}/tmp/mount"; mkdir_p($mountdir); - my $workdir = "$o->{prefix}/tmp/work"; -d $workdir or rmdir $workdir; - - my ($imagefile) = getAndSaveInstallFloppies($o, "$o->{prefix}/tmp", $name) or return; - devices::make($_) foreach qw(/dev/loop6 /dev/ram); - - run_program::run("losetup", "/dev/loop6", $imagefile); - fs::mount("/dev/loop6", $mountdir, "romfs", 'readonly'); - cp_af($mountdir, $workdir); - fs::umount($mountdir); - run_program::run("losetup", "-d", "/dev/loop6"); - - substInFile { s/timeout.*//; s/^(\s*append\s*=\s*".*)"/$1 kickstart=floppy"/ } "$workdir/silo.conf"; #" for po -#-TODO output "$workdir/ks.cfg", generate_ks_cfg($o); - output "$workdir/boot.msg", "\n7m", -"!! If you press enter, an auto-install is going to start. - ALL data on this computer is going to be lost, - including any Windows partitions !! -", "7m\n"; - - local $o->{partitioning}{clearall} = 1; - output("$workdir/auto_inst.cfg", g_auto_install()); - - run_program::run("genromfs", "-d", $workdir, "-f", "/dev/ram", "-A", "2048,/..", "-a", "512", "-V", "DrakX autoinst"); - fs::mount("/dev/ram", $mountdir, 'romfs', 0); - run_program::run("silo", "-r", $mountdir, "-F", "-i", "/fd.b", "-b", "/second.b", "-C", "/silo.conf"); - fs::umount($mountdir); - require commands; - commands::dd("if=/dev/ram", "of=$dest_dir/replay_install.img", "bs=1440", "count=1024"); - - rm_rf($workdir, $mountdir, $imagefile); - $imagefile; - } elsif (arch() =~ /ia64/) { + if (arch() =~ /ia64/) { #- nothing yet } else { my $mountdir = "$o->{prefix}/root/aif-mount"; -d $mountdir or mkdir $mountdir, 0755; |