mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +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:
parent
743f984b3d
commit
ee950ca8a2
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user