Changeset 46c6113 for LFS/lfs.xsl


Ignore:
Timestamp:
07/09/2020 05:02:10 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
88a8275
Parents:
ee842e2
Message:

Prevent overwriting /var/run and lock symlinks with PM

/var/run and /var/lock are created as symlinks in creatingdirs. But
if a package install something into those dirs (with DESTDIR install),
they get overwritten with true directories if using a package
manager. Note that without PM, anything installed into those dirs
is lost at next reboot. So remove those dirs before packaging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    ree842e2 r46c6113  
    312312[ -d $PKG_DEST/lib64 ] &amp;&amp; [ -z "$(ls $PKG_DEST/lib64)" ] &amp;&amp;
    313313  rmdir -v $PKG_DEST/lib64
     314<!-- prevent overwriting symlinks: if a package install something in
     315     these directories, it'll be lost if not using package management,
     316     since they are symlinks to tmpfs. So, remove it too if using PM. -->
     317rm -rf $PKG_DEST/var/{run,lock}
     318<!-- Remove /var if it is empty, then -->
     319[ -d $PKG_DEST/var ] &amp;&amp; [ -z "$(ls $PKG_DEST/var)" ] &amp;&amp; rmdir -v $PKG_DEST/var
    314320PREV_SEC=${SECONDS}
    315321packInstall
Note: See TracChangeset for help on using the changeset viewer.