Ignore:
Timestamp:
09/20/2021 07:37:34 AM (3 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
multilib
Children:
60870bc
Parents:
e680022 (diff), 7e62bbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge upstream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/cleanfs

    re680022 r716db1f  
    2323# Short-Description:   Cleans temporary directories early in the boot process.
    2424# Description:         Cleans temporary directories /run, /var/lock, and
    25 #                      optionally, /tmp.  cleanfs also creates /run/utmp 
     25#                      optionally, /tmp.  cleanfs also creates /run/utmp
    2626#                      and any files defined in /etc/sysconfig/createfiles.
    2727# X-LFS-Provided-By:   LFS
     
    3131
    3232# Function to create files/directory on boot.
    33 create_files() 
     33create_files()
    3434{
    3535   # Input to file descriptor 9 and output to stdin (redirection)
     
    6464                     mknod "${name}" p
    6565                     ;;
    66                   *) 
    67                      log_warning_msg "\nUnknown device type: ${dtype}" 
     66                  *)
     67                     log_warning_msg "\nUnknown device type: ${dtype}"
    6868                     ;;
    6969               esac
    7070               ;;
    7171            *)
    72                log_warning_msg "\nUnknown type: ${type}" 
     72               log_warning_msg "\nUnknown type: ${type}"
    7373               continue
    7474               ;;
     
    8888case "${1}" in
    8989   start)
    90       log_info_msg "Cleaning file systems:" 
     90      log_info_msg "Cleaning file systems:"
    9191
    9292      if [ "${SKIPTMPCLEAN}" = "" ]; then
    93          log_info_msg2 " /tmp" 
     93         log_info_msg2 " /tmp"
    9494         cd /tmp &&
    9595         find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1
Note: See TracChangeset for help on using the changeset viewer.