Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random-seed file of systemd-boot gives warning at every boot #24

Open
solsticedhiver opened this issue Dec 23, 2019 · 1 comment
Open

Comments

@solsticedhiver
Copy link

May be that could be realted to issue #2, but it is a little different.

Since systemd-boot changes the /boot/loader/random-seed file on the ESP partition that you are encourage to mount at /boot with systemd-boot, one gets a warning at every boot.

So, if feasable, it would be good that that file was ignored to avoid triggereing a warning/false alarm.

@solsticedhiver
Copy link
Author

solsticedhiver commented Dec 25, 2019

I submit that naive fix/work-around:

--- src/chkboot-1.3/chkboot	2020-01-07 19:34:30.459462693 +0100
+++ src/chkboot-1.3/chkboot	2019-04-16 23:00:54.000000000 +0200

@@ -68,7 +68,7 @@
 
 pushd "$BOOTDIR" > /dev/null 2>&1
     files=`find . -type f` # get file infos
-    files=`echo $files | sed "s/.\/grub\/grubenv//"` # remove files that should be skipped
+    files=`echo $files | sed -e "s/.\/grub\/grubenv//" -e "s/\.\/loader\/random-seed//"` # remove files that should be skipped
 
     # generate hashes of each file
     for fname in $files; do

That should be security scrutinized to check if it does not introduce any security hole

solsticedhiver added a commit to solsticedhiver/chkboot that referenced this issue Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant