From 8bfa2d4f0c5a7c898f5d6f3591e70282509882ac Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 28 Jan 2021 10:18:56 +0100 Subject: give iso version if available --- hook/uname | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hook/uname b/hook/uname index d82d822..58fda04 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 } -- cgit v1.2.3-70-g09d2