diff options
author | Matthias Schiffer <matthias.schiffer@ew.tq-group.com> | 2021-07-21 16:10:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-24 16:33:46 +0100 |
commit | 9448e5f17dc5fd3646b6412f547300a4753521b3 (patch) | |
tree | eb9f16b9487372b43ea43702c2545900bcb6c460 /meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | |
parent | 34159787df2d93bd0d3b54e33ac153e010bec6a7 (diff) | |
download | poky-9448e5f17dc5fd3646b6412f547300a4753521b3.tar.gz |
initscripts: populate-volatile.sh: do not log to tty0
tty0 may not be the intended console for log messages, or it may not
exist at all in kernel configurations without CONFIG_VT. Just use the
default stdout/stderr instead.
(From OE-Core rev: 669e74d358db59768862515fe584aa1edf6cec04)
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh index f21f48dd30..f8b42c6893 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh | |||
@@ -37,8 +37,8 @@ create_file() { | |||
37 | fi | 37 | fi |
38 | EXEC=" | 38 | EXEC=" |
39 | ${EXEC} | 39 | ${EXEC} |
40 | chown ${TUSER}:${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; | 40 | chown ${TUSER}:${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\"; |
41 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 " | 41 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" " |
42 | 42 | ||
43 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build | 43 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build |
44 | 44 | ||
@@ -60,8 +60,8 @@ create_file() { | |||
60 | mk_dir() { | 60 | mk_dir() { |
61 | EXEC=" | 61 | EXEC=" |
62 | mkdir -p \"$1\"; | 62 | mkdir -p \"$1\"; |
63 | chown ${TUSER}:${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; | 63 | chown ${TUSER}:${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\"; |
64 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 " | 64 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" " |
65 | 65 | ||
66 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build | 66 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build |
67 | if [ -e "$1" ]; then | 67 | if [ -e "$1" ]; then |