summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2020-10-30 16:13:02 -0400
committerGitHub <noreply@github.com>2020-10-30 16:13:02 -0400
commit82578fc72513fe3a75ccaf6d78b61a52ac5841b5 (patch)
tree7056060e0c70a7cb1d61e8b4e33778ba7e67b8bc
parentb34cf366aa4c54c698fc016b244cde5f8a180b9b (diff)
parenta179781696271602ee317455aff5e7fa051f5218 (diff)
downloadnixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar.gz
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar.bz2
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar.lz
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar.xz
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.tar.zst
nixpkgs-82578fc72513fe3a75ccaf6d78b61a52ac5841b5.zip
Merge pull request #102172 from grahamc/stage-1-datestamps
stage-1: add datestamps to logs
-rw-r--r--nixos/modules/system/boot/stage-1-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh
index 8558c7546d7..e5cafe237cd 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -120,7 +120,7 @@ eval "exec $logOutFd>&1 $logErrFd>&2"
 if test -w /dev/kmsg; then
     tee -i < /tmp/stage-1-init.log.fifo /proc/self/fd/"$logOutFd" | while read -r line; do
         if test -n "$line"; then
-            echo "<7>stage-1-init: $line" > /dev/kmsg
+            echo "<7>stage-1-init: [$(date)] $line" > /dev/kmsg
         fi
     done &
 else