diff --git a/filesystem.changes b/filesystem.changes index 11ce9b5..43e76cd 100644 --- a/filesystem.changes +++ b/filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 3 16:02:28 UTC 2022 - Thorsten Kukuk + +- Create tmpfiles.d which creates /usr/local on the fly + ------------------------------------------------------------------- Fri Aug 27 07:26:40 UTC 2021 - Ludwig Nussel diff --git a/filesystem.spec b/filesystem.spec index e10e7d3..91ef0a0 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -1,7 +1,7 @@ # # spec file for package filesystem # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -88,7 +88,7 @@ EOF while read MOD OWN GRP NAME ; do [ "$OWN" = root -a "$GRP" = root ] echo "[\"$NAME\"] = $MOD," -done < ghost.list >> pretrans.lua +done < ghost.list >> pretrans.lua cat >> pretrans.lua <<'EOF' } function mkdir_p(path) @@ -166,6 +166,9 @@ function create_dir () { /var/*) echo "d $NAME $MODE $OWNR $GRUP -" >> fs-var.conf ;; + /usr/local/*) + echo "d $NAME $MODE $OWNR $GRUP -" >> fs-usr-local.conf + ;; esac } mkdir -p $RPM_BUILD_ROOT @@ -315,14 +318,17 @@ test -n "$NON_EXISTING_DIR" && { install -m 0644 fs-tmp.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-tmp.conf install -m 0644 fs-var.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-var.conf install -m 0644 fs-var-tmp.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-var-tmp.conf +install -m 0644 fs-usr-local.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-usr-local.conf %pretrans -p -f pretrans.lua %pre -p -f pre.lua + %posttrans -p -f posttrans.lua %files -f filesystem.list /usr/lib/tmpfiles.d/fs-tmp.conf /usr/lib/tmpfiles.d/fs-var.conf /usr/lib/tmpfiles.d/fs-var-tmp.conf +/usr/lib/tmpfiles.d/fs-usr-local.conf %changelog