mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Add symlink for site, and placeholder for addons
Will need to detect the proper 'category' for the addons link.
This commit is contained in:
parent
1a30876a2d
commit
044ae53ae3
@ -248,6 +248,12 @@ def pack_image(opts, args):
|
||||
initrdname = os.path.join(args[0], 'boot/initramfs-diskless-{0}.img'.format(mostrecent))
|
||||
mkdirp(os.path.join(outdir, 'boot/efi/boot'))
|
||||
mkdirp(os.path.join(outdir, 'boot/initramfs'))
|
||||
os.symlink(
|
||||
'/var/lib/confluent/public/site/initramfs.cpio',
|
||||
os.path.join(outdir, 'boot/initramfs/site.cpio'))
|
||||
#os.symlink(
|
||||
# '/var/lib/confluent/public/site/initramfs.cpio',
|
||||
# os.path.join(outdir, 'boot/initramfs/site.cpio'))
|
||||
shutil.copyfile(kvermap[mostrecent], os.path.join(outdir, 'boot/kernel'))
|
||||
shutil.copyfile(initrdname, os.path.join(outdir, 'boot/initramfs/distribution'))
|
||||
shutil.copyfile(os.path.join(args[0], 'boot/efi/EFI/BOOT/BOOTX64.EFI'), os.path.join(outdir, 'boot/efi/boot/BOOTX64.EFI'))
|
||||
|
Loading…
Reference in New Issue
Block a user