2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 17:02:22 +00:00

Merge pull request #364 from Obihoernchen/fix/capture-kernelargs

Point out kernel arguments for captured profiles
This commit is contained in:
Jarrod Johnson
2026-11-04 10:04:35 -05:00
committed by GitHub
+4 -1
View File
@@ -412,12 +412,15 @@ def capture_remote(args):
label = '{0} {1} ({2})'.format(finfo['name'], finfo['version'], profname)
with open(os.path.join(outdir, 'profile.yaml'), 'w') as profileout:
profileout.write('label: {}\n'.format(label))
profileout.write('kernelargs: quiet installtodisk # remove installtodisk to boot stateless')
profileout.write('kernelargs: quiet installtodisk # remove installtodisk to boot stateless\n')
profileout.write('# A diskless boot only gets the kernelargs above, not the kernel arguments\n'
'# of the source. Add those it relies on and run osdeploy updateboot.\n')
subprocess.check_call(['chmod', 'o+r,go-w,a-t', '-R', outdir])
subprocess.check_call(['chown', '-R', 'confluent', outdir])
sys.stdout.write('Updating boot image... ')
sys.stdout.flush()
subprocess.check_call(['osdeploy', 'updateboot', profname])
print('Review {0} before deploying {1}'.format(os.path.join(outdir, 'profile.yaml'), profname))
# Processes the initramfs starts before the policy loads keep kernel_t: