summaryrefslogtreecommitdiff
path: root/auto/functions
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-02-25 11:07:43 +0100
committerHolger Paradies <retabell@gmx.de>2024-02-25 11:07:43 +0100
commit1a02b80f77a18bdbac6aa1a24e1ecfaf174105f2 (patch)
treeea085212dc10c4f9293b8d2de5032e9246d94b12 /auto/functions
parent13c736c4d639ffd9c32736c36cee94c7392771af (diff)
downloadkanotix-1a02b80f77a18bdbac6aa1a24e1ecfaf174105f2.zip
kanotix-1a02b80f77a18bdbac6aa1a24e1ecfaf174105f2.tar.gz
Check initrd.img size
Diffstat (limited to 'auto/functions')
-rw-r--r--auto/functions/livebuild-hacks9
1 files changed, 9 insertions, 0 deletions
diff --git a/auto/functions/livebuild-hacks b/auto/functions/livebuild-hacks
index 6ba721f..ca4b587 100644
--- a/auto/functions/livebuild-hacks
+++ b/auto/functions/livebuild-hacks
@@ -136,3 +136,12 @@ if [ "$current_script" = "binary_grub2" ]; then
}
fi
+if [ "$current_script" = "binary_checksums" ]; then
+ echo "HOOK: livebuild-hacks@binary_checksums: check for initrd.img"
+ if [ -s binary/live/initrd.img ];then
+ KINITRDSIZE=$(stat -c %s "binary/live/initrd.img")
+ echo "INFO: initrd size=$KINITRDSIZE"
+ else
+ echo "E: no initrd found"
+ fi
+fi