Browse Source

fix(squash): create relative symlinks

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>
master
Kairui Song 4 years ago committed by Jóhann B. Guðmundsson
parent
commit
a2b6be4479
  1. 4
      modules.d/99squash/module-setup.sh

4
modules.d/99squash/module-setup.sh

@ -53,8 +53,8 @@ installpost() { @@ -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
}


Loading…
Cancel
Save