search for: boottype

Displaying 6 results from an estimated 6 matches for "boottype".

Did you mean: boot_type
2009 Sep 23
0
[PATCH server] add network boot protocol 'none'
...es changed, 29 insertions(+), 1 deletions(-) create mode 100644 src/db/migrate/043_add_bootproto_none.rb diff --git a/src/app/models/boot_type.rb b/src/app/models/boot_type.rb index 6cfdb04..20761b0 100644 --- a/src/app/models/boot_type.rb +++ b/src/app/models/boot_type.rb @@ -22,5 +22,5 @@ class BootType < ActiveRecord::Base validates_uniqueness_of :label, :message => 'Label must be unique' validates_inclusion_of :proto, - :in => %w( static dhcp bootp ) + :in => %w( static dhcp bootp none ) end diff --git a/src/db/migrate/043_add_bootproto_none.rb b/src/db/migr...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...abel]]) + end - def show + def show + svc_show(params[:id]) respond_to do |format| format.html { render :layout => 'selection' } format.xml { render :xml => @network.to_xml } end - end + end - def new + def new + svc_new() @boot_types = BootType.find(:all) @usage_types = Usage.find(:all) render :layout => 'popup' - end + end - def create - begin - @network = PhysicalNetwork.new(params[:network]) if params[:network][:type] == 'PhysicalNetwork' - @network = Vlan.new(params[:network]) if params[:...
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...dex 4f58113..c831869 100644 --- a/src/ovirt-agent/lib/ovirt/controllers/ovirt_controller.rb +++ b/src/ovirt-agent/lib/ovirt/controllers/ovirt_controller.rb @@ -27,6 +27,31 @@ module Ovirt [ @@instance ] end + def create_vlan_network + extend NetworkService + + boot_type = BootType.find(:first, :conditions => ["proto = ?", args['proto']]) + raise "Unknown boot protocol #{args['proto']}." if not boot_type + puts "in create_vlan_network, boot_type id is #{boot_type.id}" + hash = { :name => args['name'],...
2020 Aug 27
1
Re: Weird results from g.sh()
I see, thanks for the clarification. On Thu, Aug 27, 2020 at 12:05 PM Richard W.M. Jones <rjones@redhat.com> wrote: > > On Thu, Aug 27, 2020 at 11:24:57AM +0300, Sam Eiderman wrote: > > Yes, I understand that, I am just surprised to know that we bind /sys > > for g.sh() commands. > > > > However, "g.command([self.mkconfig, '-o', self.config])"
2020 Aug 27
2
Re: Weird results from g.sh()
...config is set to non efi commands due to # a weak uefi detection algorithm which doesn't work from a chrooted # environment (checks for [ -d /sys/firmware/efi ]) if (self.root.family, self.boot_type) != (LinuxFamily.RHEL, BootType.UEFI): return grub_config = g.read_file(self.config).decode('utf-8') write = False for old, new in [('linux16', 'linuxefi'), ('initrd16', 'initrdefi')]: if f'\t{old} ' in grub_co...
2020 Aug 27
2
Weird results from g.sh()
Hi, I'm using libguestfs 1.42, When I run the following python3 commands on a rhel7.8: print(g.ls('/sys')) print(g.sh('ls /sys')) I get: [] block bus class dev devices firmware fs hypervisor kernel module power It seems that g.ls('/sys') is chrooted correctly. But g.sh('ls /sys') isn't. I came across this behavior when I used