Skip to content

Commit

Permalink
fix(squash): create relative symlinks
Browse files Browse the repository at this point in the history
Don't use absolute path, or it may resolve to wrong files after unpack
the initramfs to a sub path on a running system.

Signed-off-by: Kairui Song <kasong@redhat.com>
  • Loading branch information
ryncsn authored and johannbg committed Jun 28, 2021
1 parent 78557f0 commit a2b6be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules.d/99squash/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ installpost() {
dracut_kernel_post

# Install squash image init script.
ln -sfn /usr/bin "$initdir/bin"
ln -sfn /usr/sbin "$initdir/sbin"
ln_r /usr/bin /bin
ln_r /usr/sbin /sbin
inst_simple "$moddir"/init-squash.sh /init
}

Expand Down

0 comments on commit a2b6be4

Please sign in to comment.