]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut.sh): handle symlinks appropriately while using '-i' option
authorKairui Song <kasong@redhat.com>
Fri, 11 Jun 2021 18:25:09 +0000 (02:25 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 29 Jun 2021 07:53:19 +0000 (09:53 +0200)
commitc7fbc0c8901917baf0d1f0822568e65c6ec00d18
tree6056b0236034fe1a0b90fb0a0d1dccda52efb501
parentf1138012c9dc44e6614466c0a8e929fc55e4a5dd
fix(dracut.sh): handle symlinks appropriately while using '-i' option

[[ -d $symlink ]] will return true if the symlink points to a directory.
So the symlink will not be copied, instead a directory is created with
the symlink name and the content is copied.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut.sh