mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-05 04:16:33 +02:00
[cloud] Update disk log console tool descriptions
Update the descriptive text for the disk log console tools to remove
references to INT13, since these now work for both BIOS and UEFI disk
log consoles.
Leave the script names as {aws,gce,ali}-int13con, to avoid breaking
any existing tooling that might use these names.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
304904dbb6
commit
1c32a17822
@ -226,7 +226,9 @@ def force_power_off(clients, instance):
|
||||
rsp = clients.ecs.run_command(req)
|
||||
|
||||
# Parse command-line arguments
|
||||
parser = argparse.ArgumentParser(description="Import Google Cloud image")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Get Alibaba Cloud disk console output"
|
||||
)
|
||||
parser.add_argument('--region', '-r', required=True,
|
||||
help="AliCloud region")
|
||||
parser.add_argument('--family', '-f',
|
||||
|
||||
@ -44,8 +44,8 @@ def get_block0_content(region, instance_id):
|
||||
return block
|
||||
|
||||
|
||||
def get_int13con_output(region, instance_id):
|
||||
"""Get INT13 console output"""
|
||||
def get_disklog_output(region, instance_id):
|
||||
"""Get disk log console output"""
|
||||
block = get_block0_content(region, instance_id)
|
||||
logpart = block[IPXELOG_OFFSET:]
|
||||
magic = logpart[:len(IPXELOG_MAGIC)]
|
||||
@ -56,13 +56,13 @@ def get_int13con_output(region, instance_id):
|
||||
|
||||
|
||||
# Parse command-line arguments
|
||||
parser = argparse.ArgumentParser(description="Get AWS INT13 console output")
|
||||
parser = argparse.ArgumentParser(description="Get AWS EC2 disk console output")
|
||||
parser.add_argument('--region', '-r', help="AWS region")
|
||||
parser.add_argument('id', help="Instance ID")
|
||||
args = parser.parse_args()
|
||||
|
||||
# Get console output from INT13CON partition
|
||||
output = get_int13con_output(args.region, args.id)
|
||||
# Get console output from disk log partition
|
||||
output = get_disklog_output(args.region, args.id)
|
||||
|
||||
# Print console output
|
||||
print(output)
|
||||
|
||||
@ -94,7 +94,9 @@ def get_log_output(instances, project, zone, name):
|
||||
|
||||
# Parse command-line arguments
|
||||
#
|
||||
parser = argparse.ArgumentParser(description="Import Google Cloud image")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Get Google Cloud disk console output"
|
||||
)
|
||||
parser.add_argument('--project', '-j', default="ipxe-images",
|
||||
help="Google Cloud project")
|
||||
parser.add_argument('--zone', '-z', required=True,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user