#47 Fedora Support

open
nobody
5
2004-01-29
2004-01-29
No

I have fedora support for SystemInstaller.

I have to create the Fedora/stages directory and file in
/usr/share/systeminstaller/distinfo/Fedora

[root@Terminator SystemInstaller]# cat
/usr/share/systeminstaller/distinfo/Fedora/stages
# Default fedora stage file
# basesystem and its prereqs
SISstage
filesystem
setup
basesystem
glibc-common
glibc
tzdata
libgcc
libtermc

Then the detection system mechanism has to be modifed
in order to detect fedora. Add
# Is it Fedora ?
@relfiles=glob("$pkgdir/fedora-release*.rpm");
if (scalar(@relfiles) == 1) {
$distro="Fedora";
# Now find the version
$relfiles[0]=~s/.*\///;
my
($j1,$j2,$version,$j3)=split(/-/,$relfiles[0]);
return($distro,$version);
}
undef @relfiles;

to /usr/lib/systeminstaller/SystemInstaller/Image.pm

Discussion