2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 04:32:11 +00:00

Fix distribution link for SUSE

SUSE needs to be pointed at the
parent directory, not the media
specific path.
This commit is contained in:
Jarrod Johnson 2020-05-12 15:51:08 -04:00
parent b73c561ca9
commit 393c3ac38e

View File

@ -343,6 +343,7 @@ class MediaImporter(object):
self.osname = identity['name']
self.oscategory = identity.get('category', None)
targpath = identity['name']
self.distpath = '/var/lib/confluent/distributions/' + targpath
if identity.get('subname', None):
targpath += '/' + identity['subname']
self.targpath = '/var/lib/confluent/distributions/' + targpath
@ -418,7 +419,7 @@ class MediaImporter(object):
os.symlink(
'/var/lib/confluent/public/site/initramfs.cpio',
'{0}/boot/initramfs/site.cpio'.format(dirname))
os.symlink(self.targpath, '{0}/distribution'.format(dirname))
os.symlink(self.distpath, '{0}/distribution'.format(dirname))
subprocess.check_call(
['sh', '{0}/initprofile.sh'.format(dirname),
self.targpath, dirname])