mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Add Usb to nodesetboot
Particularly for redfish, this is a more specific target
This commit is contained in:
		@@ -32,7 +32,7 @@ if path.startswith('/opt'):
 | 
			
		||||
import confluent.client as client
 | 
			
		||||
 | 
			
		||||
argparser = optparse.OptionParser(
 | 
			
		||||
    usage='Usage: %prog [options] noderange [default|cd|network|setup|hd|floppy]')
 | 
			
		||||
    usage='Usage: %prog [options] noderange [default|cd|network|setup|hd|usb|floppy]')
 | 
			
		||||
argparser.add_option('-b', '--bios', dest='biosmode',
 | 
			
		||||
                     action='store_true', default=False,
 | 
			
		||||
                     help='Request BIOS style boot (rather than UEFI)')
 | 
			
		||||
 
 | 
			
		||||
@@ -91,7 +91,7 @@ _confluent_nodeidentify_completion()
 | 
			
		||||
 | 
			
		||||
_confluent_nodesetboot_completion()
 | 
			
		||||
{
 | 
			
		||||
    COMP_CANDIDATES=("default,cd,network,setup,hd,floppy -h -b -p")
 | 
			
		||||
    COMP_CANDIDATES=("default,cd,network,setup,hd,floppy,usb -h -b -p")
 | 
			
		||||
    _confluent_generic_completion
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ nodesetboot(8) -- Check or set next boot device for noderange
 | 
			
		||||
## SYNOPSIS
 | 
			
		||||
 | 
			
		||||
`nodesetboot <noderange>`  
 | 
			
		||||
`nodesetboot [options] <noderange> [default|cd|network|setup|hd|floppy]`
 | 
			
		||||
`nodesetboot [options] <noderange> [default|cd|network|setup|hd|usb|floppy]`
 | 
			
		||||
 | 
			
		||||
## DESCRIPTION
 | 
			
		||||
 | 
			
		||||
@@ -46,6 +46,10 @@ control.
 | 
			
		||||
  Request boot from floppy.  Generally speaking firmware uses this to mean a USB
 | 
			
		||||
  flash drive or similar (whether virtual or physical).
 | 
			
		||||
 | 
			
		||||
* `usb`:
 | 
			
		||||
  Request boot from usb.  Generally speaking firmware uses this to mean a USB
 | 
			
		||||
  flash drive or similar (whether virtual or physical).
 | 
			
		||||
 | 
			
		||||
* `network`:
 | 
			
		||||
  Request boot to network
 | 
			
		||||
  
 | 
			
		||||
 
 | 
			
		||||
@@ -1147,6 +1147,7 @@ class BootDevice(ConfluentChoiceMessage):
 | 
			
		||||
        'default',
 | 
			
		||||
        'cd',
 | 
			
		||||
        'floppy',
 | 
			
		||||
        'usb',
 | 
			
		||||
    ])
 | 
			
		||||
 | 
			
		||||
    valid_bootmodes = set([
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user