pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Testprotokoll -> systemd: Fix dependency to /var/spool at runtime
Posted by Anonymous on Thu 8th Oct 2020 11:20
raw | new post

  1. Situation without the patch
  2.  
  3. root 00:01 : /usr/lib/tmpfiles.d # systemctl status systemd-tmpfiles-setup.service
  4. * systemd-tmpfiles-setup.service - Create Volatile Files and Directories
  5.      Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; st>
  6.      Active: active (exited) since Tue 2020-09-01 00:00:12 UTC; 1min 39s ago
  7.        Docs: man:tmpfiles.d(5)
  8.              man:systemd-tmpfiles(8)
  9.     Process: 139 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot ->
  10.    Main PID: 139 (code=exited, status=73)
  11.         CPU: 343ms
  12.  
  13. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  14. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  15. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Failed to open directory 'spool': >
  16. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  17. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  18. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  19. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  20. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  21. Sep 01 00:00:12 ecu02 systemd-tmpfiles[139]: Detected unsafe path transition / >
  22. Sep 01 00:00:12 ecu02 systemd[1]: Finished systemd-tmpfiles-setup.service.
  23.  
  24.  
  25. Now with the patched systemd.in in project/rules -> menuconfig
  26.  
  27. diff --git a/ptxdist/configs/ecu02/ptxconfig b/ptxdist/configs/ecu02/ptxconfig
  28. index 2422a2563..130cfbd90 100644
  29. --- a/ptxdist/configs/ecu02/ptxconfig
  30. +++ b/ptxdist/configs/ecu02/ptxconfig
  31. @@ -96,7 +96,6 @@ PTXCONF_HOST_EXPAT=y
  32.  PTXCONF_HOST_FIGLET=y
  33.  PTXCONF_HOST_FILE=y
  34.  PTXCONF_HOST_FLEX=y
  35. -PTXCONF_HOST_GETTEXT=y
  36.  PTXCONF_HOST_GLIB=y
  37.  PTXCONF_HOST_GPERF=y
  38.  PTXCONF_HOST_LIBARCHIVE=y
  39. @@ -222,7 +221,7 @@ PTXCONF_ROOTFS_VAR_LOG=y
  40.  PTXCONF_ROOTFS_VAR_LOCK=y
  41.  PTXCONF_ROOTFS_VAR_LIB=y
  42.  PTXCONF_ROOTFS_VAR_CACHE=y
  43. -# PTXCONF_ROOTFS_VAR_SPOOL is not set
  44. +PTXCONF_ROOTFS_VAR_SPOOL=y
  45.  # PTXCONF_ROOTFS_VAR_SPOOL_CRON is not set
  46.  PTXCONF_ROOTFS_VAR_TMP=y
  47.  
  48.  
  49. Now build again and reboot DUT
  50.  
  51. [schenk:~/projects/jcng/ptxdist] master(+1/-2)* 3m29s ± cd platform-ecu02/root/var/
  52. l[schenk:~/projects/jcng/ptxdist/platform-ecu02/root/var] master(+1/-2)* ± ls
  53. cache  dyn  lib  lock  log  run  spool  stat  tmp
  54.  
  55.  
  56. root 00:00 : ~ # systemctl status systemd-tmpfiles-setup.service
  57. * systemd-tmpfiles-setup.service - Create Volatile Files and Directories
  58.      Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; st>
  59.      Active: active (exited) since Tue 2020-09-01 00:00:12 UTC; 39s ago
  60.        Docs: man:tmpfiles.d(5)
  61.              man:systemd-tmpfiles(8)
  62.     Process: 138 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot ->
  63.    Main PID: 138 (code=exited, status=73)
  64.         CPU: 356ms
  65.  
  66. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  67. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  68. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  69. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  70. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  71. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  72. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  73. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  74. Sep 01 00:00:12 ecu02 systemd-tmpfiles[138]: Detected unsafe path transition / >
  75. Sep 01 00:00:12 ecu02 systemd[1]: Finished systemd-tmpfiles-setup.service.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at