FreeBSD Bugzilla – Attachment 254993 Details for
Bug 277601
[nanoBSD] enabled entropy_boot_file leads to warning/error from dd during boot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Overlayed /etc/rc.d/random
bz_277601.patch (text/plain), 1.60 KB, created by
Jose Luis Duran
on 2024-11-07 06:13:45 UTC
(
hide
)
Description:
Overlayed /etc/rc.d/random
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2024-11-07 06:13:45 UTC
Size:
1.60 KB
patch
obsolete
>diff --git libexec/rc/rc.d/random libexec/rc/rc.d/random >index c34f0d1f86b4..aa2d227f61ef 100755 >--- libexec/rc/rc.d/random >+++ libexec/rc/rc.d/random >@@ -54,10 +54,12 @@ random_start() > > echo -n 'Feeding entropy: ' > >+ checkyesno root_rw_mount || mount -uw / > if [ ! -w /dev/random ] ; then > warn "/dev/random is not writeable" > return 1 > fi >+ checkyesno root_rw_mount || mount -ur / > > # Reseed /dev/random with previously stored entropy. > case ${entropy_dir:=/var/db/entropy} in >@@ -74,8 +76,10 @@ random_start() > [Nn][Oo]) > ;; > *) >+ checkyesno root_rw_mount || mount -uw / > feed_dev_random "${entropy_file}" /var/db/entropy-file > save_dev_random "${entropy_file}" >+ checkyesno root_rw_mount || mount -ur / > ;; > esac > >@@ -83,7 +87,9 @@ random_start() > [Nn][Oo]) > ;; > *) >+ checkyesno root_rw_mount || mount -uw / > save_dev_random "${entropy_boot_file}" >+ checkyesno root_rw_mount || mount -ur / > ;; > esac > >@@ -100,6 +106,7 @@ random_stop() > ;; > *) > echo -n 'Writing entropy file: ' >+ checkyesno root_rw_mount || mount -uw / > rm -f ${entropy_file} 2> /dev/null > oumask=`umask` > umask 077 >@@ -123,6 +130,7 @@ random_stop() > ;; > esac > umask ${oumask} >+ checkyesno root_rw_mount || mount -ur / > ;; > esac > case ${entropy_boot_file:=/boot/entropy} in >@@ -130,6 +138,7 @@ random_stop() > ;; > *) > echo -n 'Writing early boot entropy file: ' >+ checkyesno root_rw_mount || mount -uw / > rm -f ${entropy_boot_file} 2> /dev/null > oumask=`umask` > umask 077 >@@ -146,6 +155,7 @@ random_stop() > ;; > esac > umask ${oumask} >+ checkyesno root_rw_mount || mount -ur / > ;; > esac > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277601
:
249054
|
249541
| 254993 |
255014
|
255015