summaryrefslogtreecommitdiffstats
path: root/hook
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-28 10:18:56 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-28 10:18:56 +0100
commit8bfa2d4f0c5a7c898f5d6f3591e70282509882ac (patch)
treead4fa41881a19b2e7314d0003654b9f77771db66 /hook
parent980a4560a0803420c16b9f86a4bac4ecaeacd533 (diff)
downloadmkinitcpio-uname-8bfa2d4f0c5a7c898f5d6f3591e70282509882ac.tar.gz
mkinitcpio-uname-8bfa2d4f0c5a7c898f5d6f3591e70282509882ac.tar.zst
give iso version if available
Diffstat (limited to 'hook')
-rw-r--r--hook/uname8
1 files 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
}