Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #1620 - Basic support for Archlinux
- Loading branch information
1 parent
ad7ccf6
commit ba71c56
Showing
4 changed files
with
29 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class Archlinux < Operatingsystem | ||
|
||
PXEFILES = {:kernel => "linux", :initrd => "initrd"} | ||
|
||
# Override the class representation, as this breaks many rails helpers | ||
def class | ||
Operatingsystem | ||
end | ||
|
||
def pxe_type | ||
"aix" # Fairly pointless as we have to set up NBD separately for now | ||
end | ||
|
||
def pxedir | ||
"boot/$arch/loader" | ||
end | ||
|
||
def url_for_boot(file) | ||
pxedir + "/" + PXEFILES[file] | ||
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.