aboutsummaryrefslogtreecommitdiffstats
path: root/hook/uname
diff options
context:
space:
mode:
Diffstat (limited to 'hook/uname')
-rw-r--r--hook/uname8
1 files changed, 6 insertions, 2 deletions
diff --git a/hook/uname b/hook/uname
index d82d822..34858e4 100644
--- a/hook/uname
+++ b/hook/uname
@@ -1,6 +1,10 @@
#!/bin/sh
-run_earlyhook() {
- echo " Booting $(uname -srm)."
+run_latehook() {
+ if [ -s /new_root/version ]; then
+ echo " Booting $(cat /new_root/version) with $(uname -srm)."
+ else
+ echo " Booting $(uname -srm)."
+ fi
echo
}