2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Skip directories in initramfs symlink

If part of a debug effort leaves stray directories,
ignore them as they can't possibly be initramfs content.
This commit is contained in:
Jarrod Johnson 2021-12-13 15:43:12 -05:00
parent 743f984b3d
commit ee950ca8a2

View File

@ -658,6 +658,8 @@ def generate_stock_profiles(defprofile, distpath, targpath, osname,
yout.write(profdata)
for initrd in os.listdir('{0}/initramfs'.format(defprofile)):
fullpath = '{0}/initramfs/{1}'.format(defprofile, initrd)
if os.path.isdir(fullpath):
continue
os.symlink(fullpath,
'{0}/boot/initramfs/{1}'.format(dirname, initrd))
os.symlink(