scripts: MOK enrollment related debug flags
1. Adds the --fake-pci-devices flag which will pass `fake-pci-devices` on the kernel command line. 2. Adds the --server-force-no-gpgpu flag which will pass `server-force-no-gpgpu` on the kernel command line. These flags are used in conjunction with the --secure-boot flag to simulate systems which require MOK enrollment.
This commit is contained in:
parent
82f5930543
commit
2f92ddee53
|
@ -238,6 +238,12 @@ parser.add_argument('--with-tpm2', action='store_true',
|
||||||
package)''')
|
package)''')
|
||||||
parser.add_argument('--profile', default="server",
|
parser.add_argument('--profile', default="server",
|
||||||
help='load predefined memory, disk size and qemu options')
|
help='load predefined memory, disk size and qemu options')
|
||||||
|
parser.add_argument('--fake-pci-devices', action='store_true', default=False,
|
||||||
|
help='trick ubuntu-drivers into installing drivers')
|
||||||
|
parser.add_argument('--server-force-no-gpgpu', action='store_true', default=False,
|
||||||
|
help=('Allows for broadcom driver install on Server but only'
|
||||||
|
' during online install'),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
cc_group = parser.add_mutually_exclusive_group()
|
cc_group = parser.add_mutually_exclusive_group()
|
||||||
|
@ -588,6 +594,12 @@ def install(ctx):
|
||||||
if ctx.args.update:
|
if ctx.args.update:
|
||||||
appends.append('subiquity-channel=' + ctx.args.update)
|
appends.append('subiquity-channel=' + ctx.args.update)
|
||||||
|
|
||||||
|
if ctx.args.fake_pci_devices:
|
||||||
|
appends.append('fake-pci-devices')
|
||||||
|
|
||||||
|
if ctx.args.server_force_no_gpgpu:
|
||||||
|
appends.append('server-force-no-gpgpu')
|
||||||
|
|
||||||
match ctx.args.disk_interface:
|
match ctx.args.disk_interface:
|
||||||
case 'virtio':
|
case 'virtio':
|
||||||
kvm.extend(drive(ctx.target, if_='virtio'))
|
kvm.extend(drive(ctx.target, if_='virtio'))
|
||||||
|
|
Loading…
Reference in New Issue