Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generator: Fix creation of target directory
This attempts to fix a regression introduced in commit e13aa77 since this commit the `usr/lib` target directroy is not created if the host system does not ship any files in `usr/lib` (e.g. Alpine). This causes initramfs images generated on such systems to not be bootable as `lib` is a symlink to the non-existend `usr/lib` then. The problem is the current implementation: filepath.Dir(filepath.Join(filepath.Dir(l.src), l.target)) Would return `/usr` for `{"/lib", "usr/lib"}` and hence `/usr/lib` was never created. I believe this was intended to be: filepath.Join(filepath.Dir(l.src), l.target) This commit changes this accordingly and fixes booting Booster images on Alpine.
- Loading branch information