Changeset 716db1f for bootscripts/lfs/init.d/cleanfs
- Timestamp:
- 09/20/2021 07:37:34 AM (3 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/cleanfs
re680022 r716db1f 23 23 # Short-Description: Cleans temporary directories early in the boot process. 24 24 # Description: Cleans temporary directories /run, /var/lock, and 25 # optionally, /tmp. cleanfs also creates /run/utmp 25 # optionally, /tmp. cleanfs also creates /run/utmp 26 26 # and any files defined in /etc/sysconfig/createfiles. 27 27 # X-LFS-Provided-By: LFS … … 31 31 32 32 # Function to create files/directory on boot. 33 create_files() 33 create_files() 34 34 { 35 35 # Input to file descriptor 9 and output to stdin (redirection) … … 64 64 mknod "${name}" p 65 65 ;; 66 *) 67 log_warning_msg "\nUnknown device type: ${dtype}" 66 *) 67 log_warning_msg "\nUnknown device type: ${dtype}" 68 68 ;; 69 69 esac 70 70 ;; 71 71 *) 72 log_warning_msg "\nUnknown type: ${type}" 72 log_warning_msg "\nUnknown type: ${type}" 73 73 continue 74 74 ;; … … 88 88 case "${1}" in 89 89 start) 90 log_info_msg "Cleaning file systems:" 90 log_info_msg "Cleaning file systems:" 91 91 92 92 if [ "${SKIPTMPCLEAN}" = "" ]; then 93 log_info_msg2 " /tmp" 93 log_info_msg2 " /tmp" 94 94 cd /tmp && 95 95 find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1
Note:
See TracChangeset
for help on using the changeset viewer.