https://www.linuxfromscratch.org/blfs/view/stable/postlfs/initramfs.html
apply the patch with patch /usr/share/mkinitramfs/init.in < init.in.patch
if that appears as < instead, it's not, it's left arrow <
https://www.linuxfromscratch.org/blfs/view/stable/postlfs/initramfs.html
apply the patch with patch /usr/share/mkinitramfs/init.in < init.in.patch
if that appears as < instead, it's not, it's left arrow <
--- init.in.a | |
+++ init.in.b | |
@@ -40,10 +40,16 @@ | |
"" ) echo "No root device specified." ; problem ;; | |
esac | |
- while [ ! -b "$device" ] ; do | |
- no_device $device | |
- problem | |
- done | |
+ if [ -z "$rootwait" ] ; then | |
+ while [ ! -b "$device" ] ; do | |
+ no_device $device | |
+ problem | |
+ done | |
+ else | |
+ until [ -b "$device" ] ; do | |
+ sleep 0.005 | |
+ done | |
+ fi | |
if ! mount -n -t "$rootfstype" -o "$rootflags" "$device" /.root ; then | |
no_mount $device | |
@@ -93,6 +99,7 @@ | |
rootflags=* ) rootflags=${param#rootflags=} ;; | |
resume=* ) resume=${param#resume=} ;; | |
noresume ) noresume=true ;; | |
+ rootwait ) rootwait=true ;; | |
ro ) ro="ro" ;; | |
rw ) ro="rw" ;; | |
esac |