[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#750360: systemd-sysv: breaks NFS root systems



Am 03.06.2014 22:10, schrieb Sven Joachim:

> I guess the following should work (untested):
> 
> --8<---------------cut here---------------start------------->8---
> diff --git a/scripts/nfs b/scripts/nfs
> index 967e67f..3b7ade2 100644
> --- a/scripts/nfs
> +++ b/scripts/nfs
> @@ -67,7 +67,7 @@ mountroot()
>  	# loop until nfsmount succeeds
>  	do_nfsmount
>  	while [ ${retry_nr} -lt ${delay} ] \
> -		&& ! chroot "${rootmnt}" test -x "${init}" ; do
> +		&& ! chroot "${rootmnt}" /bin/sh -c "test -x ${init}" ; do
>  		[ "$quiet" != "y" ] && log_begin_msg "Retrying nfs mount"
>  		/bin/sleep 1
>  		do_nfsmount
> --8<---------------cut here---------------end--------------->8---

While the attached patch looks correct, I'd very much prefer if we could
just mount /usr from the initramfs, which would make this issue obsolete.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: