Changeset a44ae577 for bootscripts/lfs/init.d/cleanfs
- Timestamp:
- 09/07/2021 09:01:23 PM (3 years ago)
- Branches:
- 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 408fb782
- Parents:
- e7fb2ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/cleanfs
re7fb2ca ra44ae577 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.