* Starting work on adding "Install Target" function (will likely rename this, but basic same function as IT in m2).
* Added 'sys::database::failed_connection_log_level' to allow silencing of log messages when a Striker peer database is not available. * Started updating the .spec for the new release to add supported packages needed for PXE/dhcp/tftpboot. * Added to repo tftpboot files as pulling them out of the packages and moving them into the right place relative to the modest size of adding them directly to our source wasn't justified. * Created the still very very early 'tools/anvil-manage-firewall' tool. Signed-off-by: Digimer <digimer@alteeve.ca>main
parent
9a4cefe3fb
commit
07c3b405ad
17 changed files with 362 additions and 23 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,9 @@ |
|||||||
|
default vesamenu.c32 |
||||||
|
prompt 1 |
||||||
|
timeout 600 |
||||||
|
|
||||||
|
label linux |
||||||
|
menu label ^Install Anvil! M3 - Striker |
||||||
|
menu default |
||||||
|
kernel fedora28/vmlinuz |
||||||
|
append initrd=fedora28/initrd.img inst.stage2=http://10.1.4.1/fedora28/x86_64/iso/ ip=dhcp ks=http://10.1.4.1/fedora28/x86_64/kickstart/striker.ks |
@ -0,0 +1,16 @@ |
|||||||
|
function load_video { |
||||||
|
insmod efi_gop |
||||||
|
insmod efi_uga |
||||||
|
insmod video_bochs |
||||||
|
insmod video_cirrus |
||||||
|
insmod all_video |
||||||
|
} |
||||||
|
|
||||||
|
load_video |
||||||
|
set gfxpayload=keep |
||||||
|
insmod gzio |
||||||
|
|
||||||
|
menuentry 'Install Anvil! M3 - Striker' --class fedora --class gnu-linux --class gnu --class os { |
||||||
|
linuxefi fedora28/vmlinuz ip=dhcp inst.repo=http://10.1.4.1/fedora28/x86_64/iso/ |
||||||
|
initrdefi fedora28/initrd.img |
||||||
|
} |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,45 @@ |
|||||||
|
#!/usr/bin/perl |
||||||
|
# |
||||||
|
# This manages the firewall on the host. |
||||||
|
# |
||||||
|
# Examples; |
||||||
|
# |
||||||
|
# |
||||||
|
# Exit codes; |
||||||
|
# 0 = Normal exit. |
||||||
|
# |
||||||
|
# |
||||||
|
|
||||||
|
use strict; |
||||||
|
use warnings; |
||||||
|
use Anvil::Tools; |
||||||
|
|
||||||
|
# Disable buffering |
||||||
|
$| = 1; |
||||||
|
|
||||||
|
my $THIS_FILE = ($0 =~ /^.*\/(.*)$/)[0]; |
||||||
|
my $running_directory = ($0 =~ /^(.*?)\/$THIS_FILE$/)[0]; |
||||||
|
if (($running_directory =~ /^\./) && ($ENV{PWD})) |
||||||
|
{ |
||||||
|
$running_directory =~ s/^\./$ENV{PWD}/; |
||||||
|
} |
||||||
|
|
||||||
|
my $anvil = Anvil::Tools->new({log_level => 2, log_secure => 1}); |
||||||
|
|
||||||
|
$anvil->Storage->read_config({file => $anvil->data->{path}{configs}{'anvil.conf'}}); |
||||||
|
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, secure => 0, key => "log_0115", variables => { program => $THIS_FILE }}); |
||||||
|
|
||||||
|
# Read switches |
||||||
|
$anvil->data->{switches}{'y'} = ""; |
||||||
|
$anvil->Get->switches; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# We're done |
||||||
|
$anvil->nice_exit({exit_code => 0}); |
||||||
|
|
||||||
|
|
||||||
|
############################################################################################################# |
||||||
|
# Private functions. # |
||||||
|
############################################################################################################# |
||||||
|
|
Loading…
Reference in new issue