mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
cosmetic fix for --force-timestamps, avoid touching other filesystems
by using find-option -xdev and so: do not try to operate on e.g. /proc which avoid messages like: touch: setting times of '/proc/fs/nfsd': Operation not permitted touch: setting times of '/proc/1': Operation not permitted closes #264
This commit is contained in:
parent
db813f5e98
commit
464433c911
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ default() {
|
||||||
# This function needs `touch` that supports --no-dereference
|
# This function needs `touch` that supports --no-dereference
|
||||||
# (at least coreutils 8.1).
|
# (at least coreutils 8.1).
|
||||||
canonicalise_all_files_timestamp() {
|
canonicalise_all_files_timestamp() {
|
||||||
find / -exec touch --no-dereference -t 197001010000.00 {} +
|
find / -xdev -exec touch --no-dereference -t 197001010000.00 {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
populate_device_nodes() {
|
populate_device_nodes() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue