Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #2572 - FreeBSD unattended installation support via mfsbsd
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
class Freebsd < Operatingsystem | ||
# We don't fetch any PXEFILES! | ||
# Please copy your mfsbsd boot image into the tftp area. | ||
# | ||
# -as kernel we will use memdisk | ||
# -as initrd we will use your custom FreeBSD-<arch>-<version>-mfs.img in boot | ||
PXEFILES = {} | ||
|
||
# Simple output of the media url | ||
def mediumpath host | ||
medium_uri(host).to_s | ||
end | ||
|
||
def class | ||
Operatingsystem | ||
end | ||
|
||
def pxe_type | ||
"memdisk" | ||
end | ||
|
||
def pxedir | ||
"boot/$arch/images" | ||
end | ||
|
||
def url_for_boot(file) | ||
pxedir + "/" + PXEFILES[file] | ||
end | ||
|
||
def kernel arch | ||
"memdisk" | ||
end | ||
|
||
def initrd arch | ||
"boot/FreeBSD-#{arch}-#{release}-mfs.img" | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters