mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-28 20:39:40 +00:00
Fix imgutil profile path and osdeploy diskless layout
This commit is contained in:
parent
1d148afd70
commit
62ac393721
@ -68,6 +68,7 @@ for os in rhvh4 el7 el8 genesis suse15 ubuntu20.04 esxi6 esxi7 coreos; do
|
||||
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
||||
if [ -d ${os}disklessout ]; then
|
||||
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
|
||||
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/profiles
|
||||
cp ${os}disklessout/addons.* %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
|
||||
cp -a ${os}-diskless/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os-diskless/profiles
|
||||
fi
|
||||
|
@ -373,7 +373,7 @@ def pack_image(opts, args):
|
||||
os.symlink('{}/initramfs/addons.cpio'.format(confdir),
|
||||
os.path.join(outdir, 'boot/initramfs/addons.cpio'))
|
||||
if os.path.exists('{}/profiles/default'.format(confdir)):
|
||||
shutil.copytree('{}/profiles/default', outdir)
|
||||
shutil.copytree('{}/profiles/default'.format(confdir), outdir)
|
||||
try:
|
||||
pwd.getpwnam('confluent')
|
||||
subprocess.check_call(['chown', '-R', 'confluent', outdir])
|
||||
|
Loading…
Reference in New Issue
Block a user