diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 2131ffcb..dd3c1381 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -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(